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

Add nested union test cases

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • None
    • None
    • SQL
    • None

    Description

      The following SQL can not be parsed with current parser:

      SELECT  `u_1`.`id` FROM (((SELECT  `t0`.`id` FROM `default`.`t0`) UNION ALL (SELECT  `t0`.`id` FROM `default`.`t0`)) UNION ALL (SELECT  `t0`.`id` FROM `default`.`t0`)) AS u_1
      

      We should fix it.

      The above description is for ANTLR3 parser. As ANTLR4 parser supports it now, we just need to add test cases.

      Attachments

        Activity

          People

            viirya L. C. Hsieh
            viirya L. C. Hsieh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: