Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-6835 Schema Provision using File / Table Function
  3. DRILL-7159

After renaming MAP to STRUCT typeString method still outputs MAP name

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.16.0
    • Component/s: None
    • Labels:

      Description

      After renaming MAP to STRUCT typeString method still outputs MAP name.

      Reproduce:

      apache drill> CREATE or replace SCHEMA
      . .semicolon> (
      . . . . . .)>     varchar_column VARCHAR(10) NOT NULL, 
      . . . . . .)>     struct_column STRUCT<s1 INT NOT NULL, s2 array<INT>>
      . . . . . .)> )
      . .semicolon>  FOR TABLE dfs.tmp.`text_table`;
      

      Error:

      apache drill> describe schema for table dfs.tmp.`text_table`;
      Error: RESOURCE ERROR: Cannot construct instance of `org.apache.drill.exec.record.metadata.AbstractColumnMetadata`, problem: Line [1], position [16], offending symbol [@1,16:18='MAP',<26>,1:16]: no viable alternative at input '`struct_column`MAP'
       at [Source: (org.apache.hadoop.fs.ChecksumFileSystem$FSDataBoundedInputStream); line: 14, column: 7] (through reference chain: org.apache.drill.exec.record.metadata.schema.SchemaContainer["schema"]->org.apache.drill.exec.record.metadata.TupleSchema["columns"]->java.util.ArrayList[1])
      
      Error while accessing table location for [dfs.tmp.text_table]
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                arina Arina Ielchiieva
                Reporter:
                arina Arina Ielchiieva
                Reviewer:
                Vova Vysotskyi
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: