Skip to content

Commit 481c823

Browse files
committed
apply spotless
Signed-off-by: xinyual <xinyual@amazon.com>
1 parent 1c246be commit 481c823

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
import org.opensearch.sql.ast.expression.subquery.ScalarSubquery;
7070
import org.opensearch.sql.ast.tree.UnresolvedPlan;
7171
import org.opensearch.sql.calcite.type.ExprSqlType;
72-
import org.opensearch.sql.calcite.type.ExprTimeStampType;
7372
import org.opensearch.sql.calcite.utils.OpenSearchTypeFactory;
7473
import org.opensearch.sql.calcite.utils.PlanUtils;
7574
import org.opensearch.sql.common.utils.StringUtils;
@@ -232,9 +231,10 @@ public RexNode visitCompare(Compare node, CalcitePlanContext context) {
232231
private RexNode transferCompareForDateRelated(
233232
RexNode candidate, CalcitePlanContext context, boolean whetherCompareByTime) {
234233
if (whetherCompareByTime) {
235-
if (!(candidate.getType() instanceof ExprSqlType && ((ExprSqlType) candidate.getType()).getUdt() == EXPR_TIMESTAMP)) {
234+
if (!(candidate.getType() instanceof ExprSqlType
235+
&& ((ExprSqlType) candidate.getType()).getUdt() == EXPR_TIMESTAMP)) {
236236
RexNode transferredStringNode =
237-
context.rexBuilder.makeCall(PPLBuiltinOperators.TIMESTAMP, candidate);
237+
context.rexBuilder.makeCall(PPLBuiltinOperators.TIMESTAMP, candidate);
238238
return transferredStringNode;
239239
}
240240
}

0 commit comments

Comments
 (0)