Skip to content

Commit 345cdeb

Browse files
committed
remove useless code
Signed-off-by: xinyual <xinyual@amazon.com>
1 parent 9148512 commit 345cdeb

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import static org.apache.calcite.sql.SqlKind.AS;
1010
import static org.opensearch.sql.ast.expression.SpanUnit.NONE;
1111
import static org.opensearch.sql.ast.expression.SpanUnit.UNKNOWN;
12-
import static org.opensearch.sql.calcite.CalcitePlanContext.create;
1312
import static org.opensearch.sql.calcite.utils.OpenSearchTypeFactory.TYPE_FACTORY;
1413

1514
import java.math.BigDecimal;
@@ -323,8 +322,7 @@ public CalcitePlanContext prepareLambdaContext(
323322
String functionName,
324323
@Nullable RelDataType defaultTypeForReduceAcc) {
325324
try {
326-
CalcitePlanContext lambdaContext =
327-
create(context.config, context.querySizeLimit, context.queryType);
325+
CalcitePlanContext lambdaContext = context.clone();
328326
List<RelDataType> candidateType = new ArrayList<>();
329327
candidateType.add(
330328
((ArraySqlType) previousArgument.get(0).getType())

0 commit comments

Comments
 (0)