This is an automated email from the ASF dual-hosted git repository.

chunwei pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/calcite.git

commit 0ae65494d3b20964a779bcb2b2600fda332b1162
Author: Daniel Henneberger <[email protected]>
AuthorDate: Tue Jun 14 12:14:47 2022 -0700

    Remove other instance of JsonTable
    
    Signed-off-by: Daniel Henneberger <[email protected]>
---
 .../main/java/org/apache/calcite/adapter/csv/CsvTableScan.java    | 8 --------
 1 file changed, 8 deletions(-)

diff --git 
a/example/csv/src/main/java/org/apache/calcite/adapter/csv/CsvTableScan.java 
b/example/csv/src/main/java/org/apache/calcite/adapter/csv/CsvTableScan.java
index fbf3b9fe6a..6de7542834 100644
--- a/example/csv/src/main/java/org/apache/calcite/adapter/csv/CsvTableScan.java
+++ b/example/csv/src/main/java/org/apache/calcite/adapter/csv/CsvTableScan.java
@@ -21,7 +21,6 @@ import org.apache.calcite.adapter.enumerable.EnumerableRel;
 import org.apache.calcite.adapter.enumerable.EnumerableRelImplementor;
 import org.apache.calcite.adapter.enumerable.PhysType;
 import org.apache.calcite.adapter.enumerable.PhysTypeImpl;
-import org.apache.calcite.adapter.file.JsonTable;
 import org.apache.calcite.linq4j.tree.Blocks;
 import org.apache.calcite.linq4j.tree.Expressions;
 import org.apache.calcite.linq4j.tree.Primitive;
@@ -107,13 +106,6 @@ public class CsvTableScan extends TableScan implements 
EnumerableRel {
             getRowType(),
             pref.preferArray());
 
-    if (table instanceof JsonTable) {
-      return implementor.result(
-          physType,
-          Blocks.toBlock(
-              Expressions.call(table.getExpression(JsonTable.class),
-                  "enumerable")));
-    }
     return implementor.result(
         physType,
         Blocks.toBlock(

Reply via email to