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

LikeSimplification should be skipped if pattern contains any escapeChar

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.0
    • Fix Version/s: 3.0.2, 3.1.0, 3.2.0
    • Component/s: SQL
    • Labels:
      None

      Description

      LikeSimplification rule does not work correctly for many cases that have patterns containing escape characters:

      SELECT s LIKE 'm%aca' ESCAPE '%' from t;
      SELECT s LIKE 'maacaa' ESCAPE 'a' FROM t;
      

        Attachments

          Activity

            People

            • Assignee:
              luluorta Lu Lu
              Reporter:
              luluorta Lu Lu
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: