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

JdbcTable.scan throws NullPointerException

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.26.0, 1.27.0
    • 1.28.0
    • None

    Description

      Calling JdbcTable.scan will result in a NullPointerException because inside JdbcTable.fieldClasses protoRowType is null.

      This could easily be fixed by replacing

       final RelDataType rowType = requireNonNull(protoRowType, "protoRowType").apply(typeFactory);
      

      with

       final RelDataType rowType = getRowType(typeFactory);
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              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 - 1h 40m
                  1h 40m