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

REPEATED_CONTAINS sometimes doesn't work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0
    • None
    • None

    Description

      Here are three queries. It seems that they should all work (the first is the most intuitive one), but only one of them does.

      0: jdbc:drill:zk=localhost:2181> SELECT name FROM dfs.root.`Users/tshiran/Development/demo/data/yelp/business.json` WHERE REPEATED_CONTAINS(categories, 'Mediterranean') LIMIT 1;
      Query failed: Failure while running sql.
      
      Error: exception while executing query: Failure while executing query. (state=,code=0)
      0: jdbc:drill:zk=localhost:2181> SELECT name FROM dfs.root.`Users/tshiran/Development/demo/data/yelp/business.json` WHERE true and REPEATED_CONTAINS(categories, 'Mediterranean') LIMIT 1;
      +------------+
      |    name    |
      +------------+
      | People's Bakery |
      +------------+
      1 row selected (0.15 seconds)
      
      
      0: jdbc:drill:zk=localhost:2181> SELECT name FROM dfs.root.`Users/tshiran/Development/demo/data/yelp/business.json` WHERE 1 and REPEATED_CONTAINS(categories, 'Mediterranean') LIMIT 1;
      Query failed: Failure while running sql.
      
      Error: exception while executing query: Failure while executing query. (state=,code=0)
      

      Attachments

        Activity

          People

            mehant Mehant Baid
            tshiran Tomer Shiran
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: