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

Rajat Khandelwal commented on LENS-850:
---------------------------------------

Committed. Thanks [~puneet884]

> Queries with column name alias like "year" fails on some DBs
> ------------------------------------------------------------
>
>                 Key: LENS-850
>                 URL: https://issues.apache.org/jira/browse/LENS-850
>             Project: Apache Lens
>          Issue Type: Improvement
>    Affects Versions: 2.0, 2.1, 2.3
>            Reporter: Puneet Gupta
>            Assignee: Puneet Gupta
>             Fix For: 2.5
>
>         Attachments: lens-850.patch
>
>
> "Select column_year year from Test_Table" 
> fails on some DBs.
> Reason: 
> This is because "year" is a keyword in some DBs and the query needs to be 
> rewritten with alias name quoted before it is executed.
> "Select coulm_year as `year` from Test_Table"
>  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to