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)
      

        Activity

        Show
        julianhyde Julian Hyde added a comment - Fixed in http://git-wip-us.apache.org/repos/asf/incubator-calcite/commit/bf86ef9d .
        Hide
        julianhyde Julian Hyde added a comment -

        Resolved in release 1.3.0-incubating (2015-05-30).

        Show
        julianhyde Julian Hyde added a comment - Resolved in release 1.3.0-incubating (2015-05-30).

          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:

              Development