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

SELECT NULL AS C causes NoSuchMethodException: java.sql.ResultSet.getVoid(int)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.32.0
    • None
    • Calcite 1.31.0

    Description

      Adding the following unit test to JdbcAdapterTest will reproduce the bug

       

        @Test void testNullSelect() {
          final String sql = "select NULL AS C from  \"days\"";
          CalciteAssert.model(FoodmartSchema.FOODMART_MODEL)
              .query(sql)
              .runs()
              .returnsCount(14);
        }
      

       

      Attachments

        Issue Links

          Activity

            People

              4wei Mou Wu
              kramerul Ulrich Kramer
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m