You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (Jira)" <ji...@apache.org> on 2021/12/02 19:25:00 UTC

[jira] [Commented] (CALCITE-4916) Need more exception information about "Non-query expression encountered in illegal context"

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

Julian Hyde commented on CALCITE-4916:
--------------------------------------

What are the existing issues? Please link to them.

I agree that this message is not very helpful. Can you come up with a few example queries that produce this message? Then perhaps we can craft something better. Possibly even split into different messages for different scenarios.

> Need more exception information about "Non-query expression encountered in illegal context"
> -------------------------------------------------------------------------------------------
>
>                 Key: CALCITE-4916
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4916
>             Project: Calcite
>          Issue Type: Improvement
>            Reporter: xuyang
>            Priority: Major
>
> As a user, in most cases I was confused with the exception with "Non-query expression encountered in illegal context", and re-check my entire sql even if the sql is too long. I see some issues about this exception have been existed. The root cause is that the exception lacks some necessary information such asĀ  position and expected sequences following. So, maybe the exception information can be improved to be more clear to users.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)