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

RLIKE/REGEXP should allow matching partial strings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.5.0
    • Query Processor
    • None
    • Reviewed
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: