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

ASF subversion and git services commented on NIFI-4047:
-------------------------------------------------------

Commit d8dc2bb00b6ccfe3faa42481ae541616401b4075 in nifi's branch 
refs/heads/master from [~markap14]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=d8dc2bb ]

NIFI-4047: Addressed issue with inconsistent Lexical policy between used cached 
schemas and non-cached schemas

This closes #1907

Signed-off-by: Joe Percivall <[email protected]>


> QueryRecord hits a run time exception when using double quotes 
> ---------------------------------------------------------------
>
>                 Key: NIFI-4047
>                 URL: https://issues.apache.org/jira/browse/NIFI-4047
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Joseph Percivall
>            Assignee: Mark Payne
>             Fix For: 1.4.0
>
>         Attachments: NIFI-4047.xml
>
>
> To reproduce:
> Attempt to run the below query. "first" is a reserved word so it needs to be 
> surrounded it in quotes. 
> SELECT "first" AS first_seen
> FROM FLOWFILE
> In doing so, the processor successfully validates and is ready to run. When 
> run, it hits the following RunTimeException:
> 16:16:31 EDT ERROR 82ec3eda-015c-1000-5f5e-3dbf6d4b3145
> QueryRecord[id=82ec3eda-015c-1000-5f5e-3dbf6d4b3145] Unable to query 
> StandardFlowFileRecord[uuid=cd8d94cb-96b4-4daf-96a5-454d4d4640d9,claim=StandardContentClaim
>  [resourceClaim=StandardResourceClaim[id=1496946569360-1, container=default, 
> section=1], offset=6721, length=167],offset=0,name=22416107244401,size=167] 
> due to java.lang.RuntimeException: parse failed: Encountered "\"" at line 1, 
> column 8.
> Was expecting one of:
>     "UNION" ...
>     "INTERSECT" ...
> (where it continues to list all the expected values)
> I think the double quote is somehow getting mis-translated when being parsed 
> by the Calcite backend.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to