Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-33100

Support parse the sql statements with c-style comments

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.1
    • 3.0.2, 3.1.1, 3.2.0
    • SQL
    • None

    Description

      Now the spark-sql does not support parse the sql statements with C-style comments.
      For the sql statements:

      /* SELECT 'test'; */
      SELECT 'test';
      

      Would be split to two statements:
      The first: "/* SELECT 'test'"
      The second: "*/ SELECT 'test'"

      Then it would throw an exception because the first one is illegal.

      Attachments

        Activity

          People

            hzfeiwang feiwang
            hzfeiwang feiwang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: