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

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.16.0
    • None

    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

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

              Dates

                Created:
                Updated:
                Resolved: