Skip to content

Commit 1fe81b3

Browse files
committed
Chores: tweak code order
Signed-off-by: Yuanchun Shen <[email protected]>
1 parent 2c8d632 commit 1fe81b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/java/org/opensearch/sql/calcite/CalciteRelNodeVisitor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2137,12 +2137,12 @@ public RelNode visitChart(Chart node, CalcitePlanContext context) {
21372137
SqlStdOperatorTable.LESS_THAN_OR_EQUAL,
21382138
relBuilder.field(ROW_NUM_COL),
21392139
relBuilder.literal(limit));
2140-
RexNode nullCondition = relBuilder.isNull(colSplitPostJoin);
2141-
RexNode columnSplitExpr;
21422140
if (!config.useOther) {
21432141
relBuilder.filter(lteCondition);
21442142
}
2143+
RexNode nullCondition = relBuilder.isNull(colSplitPostJoin);
21452144

2145+
RexNode columnSplitExpr;
21462146
if (config.useNull) {
21472147
columnSplitExpr =
21482148
relBuilder.call(

0 commit comments

Comments
 (0)