Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-730

ClassCastException in table from CloneSchema

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.0-incubating
    • Component/s: None
    • Labels:
      None

      Description

      ClassCastException in table from CloneSchema. Use the schema for CALCITE-729, then:

      > select * from scott_clone.emp;
      +-------+------------+-----------+-------+----------+---------+---------+--------+
      | EMPNO |   ENAME    |    JOB    |  MGR  | HIREDATE |   SAL   |  COMM   | DEPTNO |
      +-------+------------+-----------+-------+----------+---------+---------+--------+
      java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Short
      	at org.apache.calcite.avatica.util.AbstractCursor$ShortAccessor.getShort(AbstractCursor.java:466)
      	at org.apache.calcite.avatica.AvaticaSite.get(AvaticaSite.java:362)
      	at org.apache.calcite.avatica.AvaticaResultSet.getObject(AvaticaResultSet.java:381)
      	at sqlline.Rows$Row.<init>(Rows.java:157)
      

        Attachments

          Activity

            People

            • Assignee:
              julianhyde Julian Hyde
              Reporter:
              julianhyde Julian Hyde
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: