Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
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
- links to