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

JDBC DatabaseMetadata.getColumns returns a single column named *

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.4.0
    • None
    • Client - JDBC
    • None

    Description

      Calling DatabaseMedata.getColumns for a VIEW returns a single row of metadata for a column named * with a type ANY etc. instead of an expected projection list of the object T.

      Applications which expect to harvest metadata from the driver will not get an expected description of the projection list.

      create table TBOOL as
      select columns[0] as RNUM, case when columns[1] = '\N' then cast ( null as BOOLEAN) else columns[1] end as CBOOL from `dfs`.`CERTINPUTS`.`./TBOOL.tbl`
      ;
      create view VBOOL as select * from TBOOL;

      Attachments

        Activity

          People

            Unassigned Unassigned
            the6campbells N Campbell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: