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

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


The following commit(s) were added to refs/heads/master by this push:
     new f30f407  [CALCITE-4556] CalciteMetaImpl#createEmptyResultSet should 
not pass class to CursorFactory#deduce (Alessandro Solimando)
f30f407 is described below

commit f30f407654e150679ede6e8d8d4344e6dc26b346
Author: Alessandro Solimando <[email protected]>
AuthorDate: Sun Mar 28 12:31:14 2021 +0200

    [CALCITE-4556] CalciteMetaImpl#createEmptyResultSet should not pass class 
to CursorFactory#deduce (Alessandro Solimando)
    
    Close apache/calcite#2384
---
 core/src/main/java/org/apache/calcite/jdbc/CalciteMetaImpl.java | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/core/src/main/java/org/apache/calcite/jdbc/CalciteMetaImpl.java 
b/core/src/main/java/org/apache/calcite/jdbc/CalciteMetaImpl.java
index 11dbb3f..212cfe7 100644
--- a/core/src/main/java/org/apache/calcite/jdbc/CalciteMetaImpl.java
+++ b/core/src/main/java/org/apache/calcite/jdbc/CalciteMetaImpl.java
@@ -194,14 +194,6 @@ public class CalciteMetaImpl extends MetaImpl {
         new Frame(0, true, iterable));
   }
 
-  @Override protected <E> MetaResultSet
-  createEmptyResultSet(final Class<E> clazz) {
-    final List<ColumnMetaData> columns = fieldMetaData(clazz).columns;
-    final CursorFactory cursorFactory = CursorFactory.deduce(columns, clazz);
-    return createResultSet(Collections.emptyMap(), columns,
-        cursorFactory, Frame.EMPTY);
-  }
-
   @Override protected MetaResultSet createResultSet(
       Map<String, Object> internalParameters, List<ColumnMetaData> columns,
       CursorFactory cursorFactory, final Frame firstFrame) {

Reply via email to