Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-5937

The parsing error should not be thrown even if there is empty Hint

    XMLWordPrintableJSON

Details

    • Bug
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • None
    • None
    • core

    Description

      Hints are a special kind of SQL comment,so even if there is no Hint in Hint Statement,it should not throw the sql parser error.

      Now in the calcite,for the following sql query, it would throw an SQL parsing error:

      select /*+ */ deptno, min(foo) as x from emp  

      The exception is :

       

       

      Attachments

        1. image-2023-08-18-17-43-30-254.png
          353 kB
          LakeShen
        2. image-2023-08-19-21-01-52-505.png
          109 kB
          LakeShen

        Issue Links

          Activity

            People

              shenlang LakeShen
              shenlang LakeShen
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: