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

LikeSimplification should be skipped if pattern contains any escapeChar

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.0
    • 3.0.2, 3.1.0, 3.2.0
    • SQL
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: