Skip to content

Commit a70fd73

Browse files
committed
Fix compile error in JDK11
Signed-off-by: Lantao Jin <ltjin@amazon.com>
1 parent 76ec579 commit a70fd73

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

core/src/main/java/org/opensearch/sql/calcite/utils/CalciteToolsHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,8 @@ protected PreparedResult implement(RelRoot root) {
301301
Hook.PLAN_BEFORE_IMPLEMENTATION.run(root);
302302
RelDataType resultType = root.rel.getRowType();
303303
boolean isDml = root.kind.belongsTo(SqlKind.DML);
304-
if (root.rel instanceof Scannable scannable) {
305-
final Bindable bindable = dataContext -> scannable.scan();
304+
if (root.rel instanceof Scannable) {
305+
final Bindable bindable = dataContext -> ((Scannable) root.rel).scan();
306306

307307
return new PreparedResultImpl(
308308
resultType,

0 commit comments

Comments
 (0)