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

Add REGEXP, REGEXP_LIKE function (enabled in Spark library)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.37.0
    • None

    Description

      Add Spark functions that have been implemented but have different OperandTypes/Returns.

      Add Function REGEXP, REGEXP_LIKE

      1. Since this function has the same implementation as the Spark RLIKE function, the implementation can be directly reused.
      2. Since Spark 2.0, string literals (including regex patterns) are unescaped in SQL parser, also fix this bug in calcite.

       

       

      Attachments

        1. image-2024-03-09-11-38-08-797.png
          58 kB
          EveyWu
        2. image-2024-03-09-11-37-27-816.png
          72 kB
          EveyWu
        3. image-2024-03-09-11-13-49-064.png
          91 kB
          EveyWu
        4. image-2024-03-07-09-32-27-002.png
          183 kB
          EveyWu

        Issue Links

          Activity

            People

              eveywu EveyWu
              eveywu EveyWu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: