Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-236

RLIKE/REGEXP should allow matching partial strings

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.5.0
    • Component/s: Query Processor
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Release Note:
      HIVE-236. RLIKE/REGEXP allowing matching of partial strings. (Paul Yang via zshao)

      Description

      The current behavior is that the regexp needs to match the whole string.

      But from mysql: ( http://dev.mysql.com/doc/refman/5.0/en/regexp.html#operator_regexp )

      mysql> SELECT 'fofo' REGEXP '^fo'; -> 1

      We need to make it work the same way as MySQL.

        Attachments

        1. HIVE-236.3.patch
          5 kB
          Paul Yang
        2. HIVE-236.2.patch
          8 kB
          Paul Yang
        3. HIVE-236.1.patch
          5 kB
          Paul Yang

          Issue Links

            Activity

              People

              • Assignee:
                pauly Paul Yang
                Reporter:
                zshao Zheng Shao
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: