You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Matthias Rosenthaler (Jira)" <ji...@apache.org> on 2021/04/12 11:09:00 UTC

[jira] [Updated] (DRILL-7893) Column alias is not working for a parquet file

     [ https://issues.apache.org/jira/browse/DRILL-7893?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matthias Rosenthaler updated DRILL-7893:
----------------------------------------
    Description: 
The following query results in a column name of "shot_id" instead of the expected "x".

SELECT shot_id as x FROM values.parquet WHERE step = 'RPCurve_001'

The strange thing is, if I modify the query, like adding a limit clause, it is working:

SELECT shot_id as x FROM values.parquet WHERE step = 'RPCurve_001' LIMIT 1000

[^values.parquet]

  was:
The following query results in a column name of "shot_id" instead of the expected "x".

SELECT shot_id as x FROM values.parquet WHERE step = 'RPCurve_001'

The strange thing is, if I modify the query, like adding a limit clause, it is working:

SELECT shot_id as x FROM values.parquet WHERE step = 'RPCurve_001' LIMIT 1000[^values.parquet]


> Column alias is not working for a parquet file
> ----------------------------------------------
>
>                 Key: DRILL-7893
>                 URL: https://issues.apache.org/jira/browse/DRILL-7893
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Storage - Parquet
>    Affects Versions: 1.17.0
>            Reporter: Matthias Rosenthaler
>            Priority: Major
>         Attachments: values.parquet
>
>
> The following query results in a column name of "shot_id" instead of the expected "x".
> SELECT shot_id as x FROM values.parquet WHERE step = 'RPCurve_001'
> The strange thing is, if I modify the query, like adding a limit clause, it is working:
> SELECT shot_id as x FROM values.parquet WHERE step = 'RPCurve_001' LIMIT 1000
> [^values.parquet]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)