Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-16067

Flink's CalciteParser swallows error position information

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      The parser used to parse SQL queries submitted through TableEnvironmentImpl.sqlUpdate does not add the original exception from Calcite as a cause to Flink's org.apache.flink.table.api.SqlParserException.

      However, Calcite's exception contains the position in the SQL query where the parser failed.
      This info would help users to fix their queries.

      This used to work with Flink 1.9.x.

      CC Dawid Wysakowicz

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            dwysakowicz Dawid Wysakowicz
            fhueske Fabian Hueske
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m

                Issue deployment