Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-5326

Unit tests failures related to the SERVER_METADTA

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.10.0
    • Fix Version/s: 1.10.0
    • Component/s: Metadata
    • Labels:
      None

      Description

      1. In DRILL-5301 a new SERVER_META rpc call was introduced. The server will support this method only from 1.10.0 drill version. For drill 1.10.0-SNAPHOT it is disabled.
      When I enabled this method (by way of upgrading drill version to 1.10.0 or 1.11.0-SNAPSHOT) I found the following exception:

      java.lang.AssertionError: Unexpected/unhandled MinorType value GENERIC_OBJECT
      

      It appears in several tests (for example in DatabaseMetadataTest#testNullsAreSortedMethodsSaySortedHigh).
      The reason of it is "GENERIC_OBJECT" RPC-/protobuf-level type is appeared in the ServerMetadata#ConvertSupportList. (Supporting of GENERIC_OBJECT was added in DRILL-1126).

      The proposed solution is to add the appropriate "JAVA_OBJECT" sql type name for this "GENERIC_OBJECT" RPC-/protobuf-level data type.

      2. After fixing the first one the mentioned above test still fails by reason of the incorrect "NullCollation" value in the "ServerMetaProvider". According to the doc the default val should be NC_HIGH (NULL is the highest value).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vitalii Vitalii Diravka
                Reporter:
                vitalii Vitalii Diravka
                Reviewer:
                Jinfeng Ni
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: