Uploaded image for project: 'Apache AsterixDB'
  1. Apache AsterixDB
  2. ASTERIXDB-2280

RTree on an optional nested field can't be built.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • IDX - Indexes

    Description

      If there is an optional nested field, we can't build an RTree index.

       

      use twitter;
      
      create type typePlace if not exists as open{
      country : string,
      country_code : string,
      full_name : string,
      id : string,
      name : string,
      place_type : string,
      bounding_box : rectangle
      };
      
      create type typeTweet2 if not exists as open {
      create_at : datetime,
      id: int64,
      text: string,
      in_reply_to_status : int64,
      in_reply_to_user : int64,
      favorite_count : int64,
      coordinate: point?,
      retweet_count : int64,
      lang : string,
      is_retweet: boolean,
      hashtags : {{ string }} ?,
      user_mentions : {{ int64 }} ? ,
      place : typePlace?
      };
      
      create dataset ds_test(typeTweet2) primary key id with filter on create_at;
      
      // success
      CREATE INDEX dsTwIphoneIdx ON ds_test(create_at) TYPE BTREE;
      
      // success
      CREATE INDEX dsTwIphoneIdxCo ON ds_test(coordinate) TYPE RTREE;
      
      // fail
      CREATE INDEX dsTwIphoneIdxBBox ON ds_test(place.bounding_box) TYPE RTREE;
      
      

      Attachments

        Activity

          People

            luochen01 Chen Luo
            wangsaeu Taewoo Kim
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: