Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • 1.27.0
    • spark

    Description

      Enhance Calcite SQLParser to support SPARK SQL queries expressions   - RLIKE 

      Current Behavior : Parsing queries having rlike expression throws exception

      val query1 = "select cola from tableA where MAX(realm_email) rlike '.@.\\\\..+'"

      StatementMetadataFragment(com.intuit.superglue.pipeline.parsers.CalciteStatementParser,UNKNOWN,List(),List(),List(org.apache.calcite.sql.parser.SqlParseException: Encountered "rlike" at line 1, column 48.

      All these queries are correctly being parsed via SPARK SQL . But calcite's parser grammer file doesn't suport these tokens

      Since this is SPARK SQL specific , these changes will be implemented in BABEL Parser

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sambekar shradha
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 0.5h
                  0.5h