[ 
https://issues.apache.org/jira/browse/DRILL-7159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16812579#comment-16812579
 ] 

ASF GitHub Bot commented on DRILL-7159:
---------------------------------------

arina-ielchiieva commented on issue #1741: DRILL-7159: Fix typeString method to 
return correct name for MAP (aka STRUCT)
URL: https://github.com/apache/drill/pull/1741#issuecomment-480907197
 
 
   @vvysotskyi please review.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> After renaming MAP to STRUCT typeString method still outputs MAP name
> ---------------------------------------------------------------------
>
>                 Key: DRILL-7159
>                 URL: https://issues.apache.org/jira/browse/DRILL-7159
>             Project: Apache Drill
>          Issue Type: Sub-task
>            Reporter: Arina Ielchiieva
>            Assignee: Arina Ielchiieva
>            Priority: Major
>             Fix For: 1.16.0
>
>
> After renaming MAP to STRUCT typeString method still outputs MAP name.
> Reproduce:
> {noformat}
> 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`;
> {noformat}
> Error:
> {noformat}
> 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]
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to