Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-1757

Add support for wildcards within REPEATED_CONTAINS

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.6.0
    • Future
    • Functions - Drill
    • None
    • 0.7.0 on MacOSX, embedded mode

    Description

      REPEATED_CONTAINS does not seem to support the % or * wildcard. If this is expected behavior (I assume not), it needs to be documented.

      0: jdbc:drill:zk=local> select name, repeated_contains(categories, 'Doctors') from dfs.yelp.`yelp_academic_dataset_business.json` limit 1;
      ----------------------+

      name EXPR$1

      ----------------------+

      Eric Goldberg, MD true

      ----------------------+
      1 row selected (0.087 seconds)
      0: jdbc:drill:zk=local> select name, repeated_contains(categories, 'Doc%') from dfs.yelp.`yelp_academic_dataset_business.json` limit 1;
      ----------------------+

      name EXPR$1

      ----------------------+

      Eric Goldberg, MD false

      ----------------------+
      1 row selected (0.093 seconds)
      0: jdbc:drill:zk=local> select name, repeated_contains(categories, 'Doc*') from dfs.yelp.`yelp_academic_dataset_business.json` limit 1;
      ----------------------+

      name EXPR$1

      ----------------------+

      Eric Goldberg, MD false

      ----------------------+
      1 row selected (0.09 seconds)

      Attachments

        1. DRILL-1757.patch
          2 kB
          Venkata krishnan Sowrirajan

        Activity

          People

            mehant Mehant Baid
            brumsby Bob Rumsby
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: