You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@asterixdb.apache.org by im...@apache.org on 2019/11/13 20:44:15 UTC

[asterixdb] branch master updated: [NO ISSUE][TEST] Translated old aql tests to sqlpp

This is an automated email from the ASF dual-hosted git repository.

imaxon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/asterixdb.git


The following commit(s) were added to refs/heads/master by this push:
     new f133817  [NO ISSUE][TEST] Translated old aql tests to sqlpp
f133817 is described below

commit f1338177f5555e7ad7db879776a3e528ce0a07b1
Author: mileshong1 <mi...@uci.edu>
AuthorDate: Wed Nov 13 00:09:02 2019 -0800

    [NO ISSUE][TEST] Translated old aql tests to sqlpp
    
    -user model changes: no
    -storage format changes: no
    -interface changes: no
    
    Details:
    -Translated old aql tests to sqlpp and added them to queries_sqlpp
    -Added new translated tests to testsuite_sqlpp.xml
    
    Change-Id: Id73f4603898f95ccb05352ab5bc2fb193e421126
    Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/3946
    Contrib: Jenkins <je...@fulliautomatix.ics.uci.edu>
    Tested-by: Jenkins <je...@fulliautomatix.ics.uci.edu>
    Integration-Tests: Jenkins <je...@fulliautomatix.ics.uci.edu>
    Reviewed-by: Ian Maxon <im...@uci.edu>
---
 .../asterix-app/data/fbm-with-send-time-sqlpp.adm  |  15 +
 .../data/index-join/tw_messages_sqlpp.adm          |  13 +
 .../asterix-app/data/tinysocial/fbm_sqlpp.adm      |  15 +
 .../twitter/tw_for_indexleftouterjoinsqlpp.adm     | 250 ++++++++
 .../aggregate/group_only/group_only.1.ddl.sqlpp    |  34 ++
 .../aggregate/group_only/group_only.2.update.sqlpp |  25 +
 .../aggregate/group_only/group_only.3.query.sqlpp  |  30 +
 .../big_object_bulkload.1.ddl.sqlpp                |  35 ++
 .../big_object_bulkload.2.update.sqlpp             | 119 ++++
 .../big_object_bulkload.3.query.sqlpp              |  22 +
 .../big_object_feed_20M.1.ddl.sqlpp                |  45 ++
 .../big_object_feed_20M.2.update.sqlpp             |  34 ++
 .../big_object_feed_20M.3.query.sqlpp              |  23 +
 .../big_object_insert.1.ddl.sqlpp                  |  35 ++
 .../big_object_insert.2.update.sqlpp               | 119 ++++
 .../big_object_insert.3.query.sqlpp                |  24 +
 .../big_object_load_only_20M.1.ddl.sqlpp           |  36 ++
 .../big_object_load_only_20M.2.update.sqlpp        |  33 +
 .../big_object_load_only_20M.3.query.sqlpp         |  22 +
 .../binary/query_id/query_id.1.ddl.sqlpp           |  46 ++
 .../binary/query_id/query_id.2.update.sqlpp        |  24 +
 .../binary/query_id/query_id.3.query.sqlpp         |  24 +
 .../circle-point/circle-point.1.ddl.sqlpp          |  44 ++
 .../circle-point/circle-point.2.update.sqlpp       |  28 +
 .../circle-point/circle-point.3.query.sqlpp        |  27 +
 .../circle-point/circle-point.4.query.sqlpp        |  26 +
 .../circle-point/circle-point.5.query.sqlpp        |  26 +
 .../circle-point/circle-point.6.query.sqlpp        |  24 +
 .../polygon-from-open-list_issue1627.1.ddl.sqlpp   |  34 ++
 ...polygon-from-open-list_issue1627.2.update.sqlpp |  30 +
 .../polygon-from-open-list_issue1627.3.query.sqlpp |  27 +
 .../drop-dataverse/drop-dataverse.1.ddl.sqlpp      |  39 ++
 .../drop-dataverse/drop-dataverse.2.update.sqlpp   |  25 +
 .../drop-dataverse/drop-dataverse.3.ddl.sqlpp      |  27 +
 .../drop-type-used-elsewhere.1.ddl.sqlpp           |  41 ++
 .../drop-type-used-elsewhere.2.update.sqlpp        |  25 +
 .../drop-type-used-elsewhere.3.ddl.sqlpp           |  29 +
 .../drop-type-used-here-dataset.1.ddl.sqlpp        |  40 ++
 .../drop-type-used-here-dataset.2.update.sqlpp     |  25 +
 .../drop-type-used-here-type.1.ddl.sqlpp           |  42 ++
 .../drop-type-used-here-type.2.update.sqlpp        |  25 +
 .../query-dataset-with-foreign-type.1.ddl.sqlpp    |  41 ++
 .../query-dataset-with-foreign-type.2.update.sqlpp |  29 +
 .../query-dataset-with-foreign-type.3.query.sqlpp  |  28 +
 .../query-dataset-with-foreign-type.4.ddl.sqlpp    |  27 +
 .../delete-dataset-with-meta.1.ddl.sqlpp           |  36 ++
 .../delete-dataset-with-meta.2.update.sqlpp        |  28 +
 .../insert-dataset-with-meta.1.ddl.sqlpp           |  36 ++
 .../insert-dataset-with-meta.2.update.sqlpp        |  29 +
 .../insert-duplicated-keys-from-query.1.ddl.sqlpp  |  53 ++
 ...nsert-duplicated-keys-from-query.2.update.sqlpp |  43 ++
 .../insert-duplicated-keys-from-query.3.ddl.sqlpp  |  21 +
 ...nsert-returning-fieldname-qualified.1.ddl.sqlpp |  34 ++
 ...ert-returning-fieldname-qualified.3.query.sqlpp |  30 +
 .../load-with-autogenerated-no-field.1.ddl.sqlpp   |  34 ++
 .../load-with-index-open_02.1.ddl.sqlpp            |  30 +
 .../load-with-index-open_02.2.update.sqlpp         |  23 +
 .../load-with-index-open_02.3.query.sqlpp          |  21 +
 .../load-with-index-open_02.4.ddl.sqlpp            |  20 +
 .../query-ASTERIXDB-1406.1.ddl.sqlpp               |  28 +
 .../query-ASTERIXDB-1406.2.update.sqlpp            |  23 +
 .../query-ASTERIXDB-1406.3.query.sqlpp             |  23 +
 .../query-ASTERIXDB-867.1.ddl.sqlpp                |  47 ++
 .../query-ASTERIXDB-867.2.update.sqlpp             |  32 +
 .../query-ASTERIXDB-867.3.query.sqlpp              |  23 +
 .../query-ASTERIXDB-1463.1.ddl.sqlpp               |  81 +++
 .../query-ASTERIXDB-1463.2.update.sqlpp            |  24 +
 .../query-ASTERIXDB-1463.3.query.sqlpp             |  42 ++
 .../query-ASTERIXDB-1485.1.ddl.sqlpp               |  81 +++
 .../query-ASTERIXDB-1485.2.update.sqlpp            |  24 +
 .../query-ASTERIXDB-1485.3.query.sqlpp             |  42 ++
 .../fulltext/fulltext-04/fulltext-04.1.ddl.sqlpp   |  56 ++
 .../fulltext/fulltext-04/fulltext-04.2.query.sqlpp |  25 +
 .../fulltext/fulltext-05/fulltext-05.1.ddl.sqlpp   |  56 ++
 .../fulltext/fulltext-05/fulltext-05.2.query.sqlpp |  25 +
 .../fulltext/fulltext-06/fulltext-06.1.ddl.sqlpp   |  56 ++
 .../fulltext/fulltext-06/fulltext-06.2.query.sqlpp |  25 +
 .../fulltext/fulltext-07/fulltext-07.1.ddl.sqlpp   |  62 ++
 .../fulltext-07/fulltext-07.2.update.sqlpp         |  28 +
 .../fulltext/fulltext-07/fulltext-07.3.query.sqlpp |  25 +
 .../fulltext/fulltext-07/fulltext-07.5.query.sqlpp |  25 +
 .../fulltext/fulltext-08/fulltext-08.1.ddl.sqlpp   |  91 +++
 .../fulltext-08/fulltext-08.2.update.sqlpp         |  24 +
 .../fulltext/fulltext-08/fulltext-08.3.query.sqlpp |  26 +
 .../fulltext/fulltext-08/fulltext-08.4.query.sqlpp |  26 +
 .../fulltext/fulltext-08/fulltext-08.5.query.sqlpp |  26 +
 .../fulltext-index-04.1.ddl.sqlpp                  |  58 ++
 .../fulltext-index-04.2.query.sqlpp                |  25 +
 .../fulltext-index-05.1.ddl.sqlpp                  |  58 ++
 .../fulltext-index-05.2.query.sqlpp                |  25 +
 .../fulltext-index-06.1.ddl.sqlpp                  |  58 ++
 .../fulltext-index-06.2.query.sqlpp                |  25 +
 .../fuzzyjoin/basic-1_1/basic-1_1.1.ddl.sqlpp      |  40 ++
 .../fuzzyjoin/basic-1_1/basic-1_1.2.update.sqlpp   |  34 ++
 .../fuzzyjoin/basic-1_1/basic-1_1.3.query.sqlpp    | 160 +++++
 .../fuzzyjoin/basic-1_1_2/basic-1_1_2.1.ddl.sqlpp  |  21 +
 .../basic-1_1_2/basic-1_1_2.10.query.sqlpp         |  30 +
 .../basic-1_1_2/basic-1_1_2.2.update.sqlpp         |  18 +
 .../basic-1_1_2/basic-1_1_2.3.query.sqlpp          |  31 +
 .../basic-1_1_2/basic-1_1_2.4.query.sqlpp          |  31 +
 .../basic-1_1_2/basic-1_1_2.5.query.sqlpp          |  31 +
 .../basic-1_1_2/basic-1_1_2.6.query.sqlpp          |  31 +
 .../basic-1_1_2/basic-1_1_2.7.query.sqlpp          |  31 +
 .../basic-1_1_2/basic-1_1_2.8.query.sqlpp          |  31 +
 .../basic-1_1_2/basic-1_1_2.9.query.sqlpp          |  30 +
 .../fuzzyjoin/basic-1_1_3/basic-1_1_3.1.ddl.sqlpp  |  21 +
 .../basic-1_1_3/basic-1_1_3.2.update.sqlpp         |  18 +
 .../basic-1_1_3/basic-1_1_3.3.query.sqlpp          |  31 +
 .../basic-1_1_3/basic-1_1_3.4.query.sqlpp          |  39 ++
 .../btree-secondary-self-equi-join_01.1.ddl.sqlpp  |  57 ++
 ...tree-secondary-self-equi-join_01.2.update.sqlpp |  31 +
 ...btree-secondary-self-equi-join_01.3.query.sqlpp |  33 +
 .../rtree-spatial-self-intersect-point.1.ddl.sqlpp |  58 ++
 ...ree-spatial-self-intersect-point.2.update.sqlpp |  31 +
 ...tree-spatial-self-intersect-point.3.query.sqlpp |  33 +
 .../probe-pidx-with-join-btree-pidx1.1.ddl.sqlpp   |  56 ++
 ...probe-pidx-with-join-btree-pidx1.2.update.sqlpp |  30 +
 .../probe-pidx-with-join-btree-pidx1.3.query.sqlpp |  39 ++
 .../btree-index-composite-key-02.1.ddl.sqlpp       |  68 +++
 .../btree-index-composite-key-02.2.update.sqlpp    |  28 +
 .../btree-index-composite-key-02.3.query.sqlpp     |  25 +
 .../btree-index-composite-key-02.4.query.sqlpp     |  25 +
 .../tinysocial-intersect.1.ddl.sqlpp               |  46 ++
 .../tinysocial-intersect.2.update.sqlpp            |  23 +
 .../tinysocial-intersect.3.query.sqlpp             |  24 +
 .../intersection/tinysocial-intersect.1.ddl.sqlpp  |  47 ++
 .../tinysocial-intersect.2.update.sqlpp            |  23 +
 .../tinysocial-intersect.3.query.sqlpp             |  24 +
 .../intersection_with_nodegroup.1.ddl.sqlpp        |  51 ++
 .../intersection_with_nodegroup.2.update.sqlpp     |  23 +
 .../intersection_with_nodegroup.3.query.sqlpp      |  24 +
 .../intersection_with_nodegroup.4.ddl.sqlpp        |  21 +
 ...-edit-distance-with-two-ngram-index.1.ddl.sqlpp |  43 ++
 ...it-distance-with-two-ngram-index.2.update.sqlpp |  24 +
 ...-edit-distance-with-two-ngram-index.3.ddl.sqlpp |  23 +
 ...dit-distance-with-two-ngram-index.4.query.sqlpp |  24 +
 .../verify/index-verify.1.ddl.sqlpp                |  64 ++
 .../verify/index-verify.2.update.sqlpp             |  31 +
 .../verify/index-verify.3.query.sqlpp              |  28 +
 .../verify/index-verify.4.query.sqlpp              |  31 +
 .../nullablefield.1.query.sqlpp                    |  19 +
 .../query-ASTERIXDB-769.1.ddl.sqlpp                |  35 ++
 .../query-ASTERIXDB-769.2.update.sqlpp             |  52 ++
 .../query-ASTERIXDB-769.3.query.sqlpp              |  29 +
 .../query-ASTERIXDB-1131.1.query.sqlpp             |  21 +
 .../query-ASTERIXDB-1131.1.query.sqlpp             |  21 +
 .../query-ASTERIXDB-1212-2-open.1.query.sqlpp      |  24 +
 .../query-ASTERIXDB-1212-2.1.query.sqlpp           |  26 +
 .../query-ASTERIXDB-1212-open.1.query.sqlpp        |  23 +
 .../query-ASTERIXDB-1212.1.query.sqlpp             |  22 +
 .../query-ASTERIXDB-673.1.ddl.sqlpp                |  37 ++
 .../query-ASTERIXDB-673.2.update.sqlpp             |  25 +
 .../query-ASTERIXDB-673.3.query.sqlpp              |  28 +
 .../dataset-with-meta.1.ddl.sqlpp                  |  36 ++
 .../dataset-with-meta.2.update.sqlpp               |  27 +
 .../load/escapes-err-1/escapes-err-1.3.ddl.sqlpp   |  19 +
 .../load/file-not-found/file-not-found.1.ddl.sqlpp |  29 +
 .../file-not-found/file-not-found.2.update.sqlpp   |  30 +
 .../load_non-empty_index.1.ddl.sqlpp               |  33 +
 .../load_non-empty_index.2.update.sqlpp            |  32 +
 .../load_non-empty_index.3.ddl.sqlpp               |  24 +
 .../queries_sqlpp/load/utf8/utf8.1.ddl.sqlpp       |  29 +
 .../queries_sqlpp/load/utf8/utf8.2.update.sqlpp    |  30 +
 .../queries_sqlpp/load/utf8/utf8.3.query.sqlpp     |  23 +
 .../query_dataset_with_meta-1.1.ddl.sqlpp          |  34 ++
 .../query_dataset_with_meta-1.2.update.sqlpp       |  19 +
 .../query_dataset_with_meta-1.3.query.sqlpp        |  22 +
 .../query_dataset_with_meta-1.4.ddl.sqlpp          |  20 +
 .../query_dataset_with_meta-2.1.ddl.sqlpp          |  34 ++
 .../query_dataset_with_meta-2.2.update.sqlpp       |  19 +
 .../query_dataset_with_meta-2.3.query.sqlpp        |  22 +
 .../query_dataset_with_meta-2.4.ddl.sqlpp          |  20 +
 .../query_dataset_with_meta_failure.1.ddl.sqlpp    |  34 ++
 .../query_dataset_with_meta_failure.2.update.sqlpp |  19 +
 .../query_dataset_with_meta_failure.3.query.sqlpp  |  24 +
 .../query_dataset_with_meta_failure.4.ddl.sqlpp    |  20 +
 .../query-ASTERIXDB-819-2.1.query.sqlpp            |  23 +
 .../query-ASTERIXDB-819.1.query.sqlpp              |  23 +
 .../query-ASTERIXDB-865.1.ddl.sqlpp                |  40 ++
 .../query-ASTERIXDB-865.2.update.sqlpp             |  23 +
 .../query-ASTERIXDB-865.3.query.sqlpp              |  31 +
 .../query-ASTERIXDB-1025.1.ddl.sqlpp               |  37 ++
 .../query-ASTERIXDB-1025.2.update.sqlpp            |  36 ++
 .../query-ASTERIXDB-1025.3.query.sqlpp             |  24 +
 .../query-ASTERIXDB-1025.4.ddl.sqlpp               |  20 +
 .../global-datetime-use-index.1.ddl.sqlpp          |  30 +
 .../global-datetime-use-index.2.update.sqlpp       |  26 +
 .../global-datetime-use-index.3.query.sqlpp        |  26 +
 .../local-datetime-ignore-index.1.ddl.sqlpp        |  30 +
 .../local-datetime-ignore-index.2.update.sqlpp     |  26 +
 .../local-datetime-ignore-index.3.query.sqlpp      |  26 +
 .../queries_sqlpp/objects/ObjectsQueries.xml       |   2 +-
 .../index-type-collision.1.ddl.sqlpp               |  29 +
 .../index-type-promotion-collision.1.ddl.sqlpp     |  29 +
 .../object-type-collision.1.ddl.sqlpp              |  29 +
 .../multi-index-composite-key.1.ddl.sqlpp          |  50 ++
 .../multi-index-composite-key.2.update.sqlpp       |  36 ++
 .../multi-index-composite-key.3.ddl.sqlpp          |  33 +
 .../multi-index-composite-key.4.query.sqlpp        |  38 ++
 .../multi-index-composite-key.5.ddl.sqlpp          |  32 +
 .../multi-index-composite-key.6.query.sqlpp        |  38 ++
 .../multi-index/multi-index.1.ddl.sqlpp            |  43 ++
 .../multi-index/multi-index.2.update.sqlpp         |  35 ++
 .../multi-index/multi-index.3.ddl.sqlpp            |  24 +
 .../multi-index/multi-index.4.query.sqlpp          |  29 +
 .../multi-index/multi-index.5.query.sqlpp          |  31 +
 .../multi-index/multi-index.6.query.sqlpp          |  30 +
 .../limit_on_variable_01.1.ddl.sqlpp               |  37 ++
 .../limit_on_variable_01.2.update.sqlpp            |  59 ++
 .../limit_on_variable_01.3.query.sqlpp             |  46 ++
 .../orderby_limit_01/orderby_limit_01.1.ddl.sqlpp  |  53 ++
 .../orderby_limit_01.2.update.sqlpp                |  31 +
 .../orderby_limit_01.3.query.sqlpp                 |  34 ++
 .../orderby_limit_02/orderby_limit_02.1.ddl.sqlpp  |  36 ++
 .../orderby_limit_02.2.update.sqlpp                |  60 ++
 .../orderby_limit_02.3.query.sqlpp                 |  35 ++
 .../orderby_limit_offset_01.1.ddl.sqlpp            |  53 ++
 .../orderby_limit_offset_01.2.update.sqlpp         |  31 +
 .../orderby_limit_offset_01.3.query.sqlpp          |  35 ++
 .../orderby_limit_primary_index_01.1.ddl.sqlpp     |  53 ++
 .../orderby_limit_primary_index_01.2.update.sqlpp  |  31 +
 .../orderby_limit_primary_index_01.3.query.sqlpp   |  35 ++
 .../query-ASTERIXDB-1190.1.ddl.sqlpp               |  29 +
 .../query-ASTERIXDB-1190.2.update.sqlpp            |  31 +
 .../query-ASTERIXDB-1190.3.query.sqlpp             |  23 +
 .../string-equal-public.1.query.sqlpp              |  22 +
 .../substring-after-5.1.ddl.sqlpp                  |  29 +
 .../substring-after-5.2.update.sqlpp               |  29 +
 .../substring-after-5.3.query.sqlpp                |  26 +
 .../substring-after-6.1.ddl.sqlpp                  |  28 +
 .../substring-after-6.2.update.sqlpp               |  29 +
 .../substring-after-6.3.query.sqlpp                |  26 +
 .../q01-ASTERIXDB-830.1.ddl.sqlpp                  |  45 ++
 .../q01-ASTERIXDB-830.2.update.sqlpp               |  24 +
 .../q01-ASTERIXDB-830.3.query.sqlpp                |  40 ++
 .../domain_boundaries.1.ddl.sqlpp                  |  32 +
 .../domain_boundaries.2.ddl.sqlpp                  |  37 ++
 .../domain_boundaries.3.query.sqlpp                |  20 +
 .../domain_boundaries_error.1.ddl.sqlpp            |  28 +
 .../domain_boundaries_error.2.ddl.sqlpp            |  44 ++
 .../domain_boundaries_error.3.ddl.sqlpp            |  44 ++
 .../domain_boundaries_error.4.ddl.sqlpp            |  44 ++
 .../domain_boundaries_error.5.ddl.sqlpp            |  44 ++
 .../query-ASTERIXDB-1047.1.ddl.sqlpp               |  33 +
 .../query-ASTERIXDB-1047.2.update.sqlpp            |  24 +
 .../query-ASTERIXDB-1047.3.query.sqlpp             |  31 +
 .../query-ASTERIXDB-1205.1.ddl.sqlpp               |  19 +
 .../query-ASTERIXDB-1205.2.update.sqlpp            |  18 +
 .../query-ASTERIXDB-1205.3.query.sqlpp             |  30 +
 .../query-ASTERIXDB-1205.1.ddl.aqlpp               |  19 +
 .../query-ASTERIXDB-1205.2.update.sqlpp            |  18 +
 .../query-ASTERIXDB-1205.3.query.sqlpp             |  35 ++
 .../query-ASTERIXDB-1205.1.ddl.sqlpp               |  19 +
 .../query-ASTERIXDB-1205.2.update.sqlpp            |  18 +
 .../query-ASTERIXDB-1205.3.query.sqlpp             |  32 +
 .../query-ASTERIXDB-1354.1.ddl.sqlpp               |  57 ++
 .../query-ASTERIXDB-1354.2.update.sqlpp            |  28 +
 .../query-ASTERIXDB-1354.3.query.sqlpp             |  27 +
 .../query-ASTERIXDB-1317.1.ddl.sqlpp               |  42 ++
 .../query-ASTERIXDB-1317.2.update.sqlpp            |  39 ++
 .../query-ASTERIXDB-1317.3.query.sqlpp             |  29 +
 .../test/resources/runtimets/testsuite_sqlpp.xml   | 676 +++++++++++++++++++--
 262 files changed, 9508 insertions(+), 60 deletions(-)

diff --git a/asterixdb/asterix-app/data/fbm-with-send-time-sqlpp.adm b/asterixdb/asterix-app/data/fbm-with-send-time-sqlpp.adm
new file mode 100644
index 0000000..79ff4e6
--- /dev/null
+++ b/asterixdb/asterix-app/data/fbm-with-send-time-sqlpp.adm
@@ -0,0 +1,15 @@
+{"message_id":1,"author_id":3,"in_response_to":2,"sender_location":point("47.16,77.75"),"message":" love sprint its shortcut-menu is awesome:)","send_time":datetime("2012-01-20T10:10:00")}
+{"message_id":2,"author_id":1,"in_response_to":4,"sender_location":point("41.66,80.87"),"message":" dislike iphone its touch-screen is horrible","send_time":datetime("2012-02-20T10:10:00")}
+{"message_id":3,"author_id":2,"in_response_to":4,"sender_location":point("48.09,81.01"),"message":" like samsung the plan is amazing","send_time":datetime("2012-03-20T10:10:00")}
+{"message_id":4,"author_id":1,"in_response_to":2,"sender_location":point("37.73,97.04"),"message":" can't stand at&t the network is horrible:(","send_time":datetime("2012-04-20T10:10:00")}
+{"message_id":5,"author_id":6,"in_response_to":2,"sender_location":point("34.7,90.76"),"message":" love sprint the customization is mind-blowing","send_time":datetime("2012-05-20T10:10:00")}
+{"message_id":6,"author_id":2,"in_response_to":1,"sender_location":point("31.5,75.56"),"message":" like t-mobile its platform is mind-blowing","send_time":datetime("2012-06-20T10:10:00")}
+{"message_id":7,"author_id":5,"in_response_to":15,"sender_location":point("32.91,85.05"),"message":" dislike sprint the speed is horrible","send_time":datetime("2012-07-20T10:10:00")}
+{"message_id":8,"author_id":1,"in_response_to":11,"sender_location":point("40.33,80.87"),"message":" like verizon the 3G is awesome:)","send_time":datetime("2012-08-20T10:10:00")}
+{"message_id":9,"author_id":3,"in_response_to":12,"sender_location":point("34.45,96.48"),"message":" love verizon its wireless is good","send_time":datetime("2012-09-20T10:10:00")}
+{"message_id":10,"author_id":1,"in_response_to":12,"sender_location":point("42.5,70.01"),"message":" can't stand motorola the touch-screen is terrible","send_time":datetime("2012-10-20T10:10:00")}
+{"message_id":11,"author_id":1,"in_response_to":1,"sender_location":point("38.97,77.49"),"message":" can't stand at&t its plan is terrible","send_time":datetime("2012-11-20T10:10:00")}
+{"message_id":12,"author_id":10,"in_response_to":6,"sender_location":point("42.26,77.76"),"message":" can't stand t-mobile its voicemail-service is OMG:(","send_time":datetime("2012-12-20T10:10:00")}
+{"message_id":13,"author_id":10,"in_response_to":4,"sender_location":point("42.77,78.92"),"message":" dislike iphone the voice-command is bad:(","send_time":datetime("2013-08-20T10:10:00")}
+{"message_id":14,"author_id":9,"in_response_to":12,"sender_location":point("41.33,85.28"),"message":" love at&t its 3G is good:)","send_time":datetime("2013-09-20T10:10:00")}
+{"message_id":15,"author_id":7,"in_response_to":11,"sender_location":point("44.47,67.11"),"message":" like iphone the voicemail-service is awesome","send_time":datetime("2014-01-20T10:10:00")}
diff --git a/asterixdb/asterix-app/data/index-join/tw_messages_sqlpp.adm b/asterixdb/asterix-app/data/index-join/tw_messages_sqlpp.adm
new file mode 100644
index 0000000..49ee66a
--- /dev/null
+++ b/asterixdb/asterix-app/data/index-join/tw_messages_sqlpp.adm
@@ -0,0 +1,13 @@
+{"tweetid":1,"user":"AaliyahAckerley@136","sender_location":point("35.65,84.93"),"send_time":datetime("2005-02-14T10:10:00"),"forward_from":-1,"retweet_from":-1,"referred_topics":{{"motorola","customer-service"}},"message_text":" like motorola the customer-service is amazing"}
+{"tweetid":2,"user":"VerniaHerndon_714","sender_location":point("45.37,82.91"),"send_time":datetime("2007-04-27T10:10:00"),"forward_from":-1,"retweet_from":-1,"referred_topics":{{"sprint","network"}},"message_text":" hate sprint its network is horrible:("}
+{"tweetid":3,"user":"VerniaHerndon_714","sender_location":point("31.54,73.22"),"send_time":datetime("2009-12-20T10:10:00"),"forward_from":-1,"retweet_from":-1,"referred_topics":{{"motorola","signal"}},"message_text":" love motorola the signal is good:)"}
+{"tweetid":4,"user":"VerniaHerndon_714","sender_location":point("35.64,71.08"),"send_time":datetime("2006-03-19T10:10:00"),"forward_from":-1,"retweet_from":-1,"referred_topics":{{"at&t","voicemail-service"}},"message_text":" like at&t its voicemail-service is awesome"}
+{"tweetid":5,"user":"VerniaHerndon_714","sender_location":point("40.69,92.3"),"send_time":datetime("2008-04-08T10:10:00"),"forward_from":-1,"retweet_from":-1,"referred_topics":{{"iphone","plan"}},"message_text":" love iphone the plan is amazing:)"}
+{"tweetid":6,"user":"VerniaHerndon_714","sender_location":point("35.53,97.61"),"send_time":datetime("2010-01-05T10:10:00"),"forward_from":-1,"retweet_from":-1,"referred_topics":{{"at&t","network"}},"message_text":" like at&t its network is good"}
+{"tweetid":7,"user":"VerniaHerndon_714","sender_location":point("25.29,85.77"),"send_time":datetime("2008-10-08T10:10:00"),"forward_from":-1,"retweet_from":-1,"referred_topics":{{"at&t","speed"}},"message_text":" can't stand at&t its speed is terrible:("}
+{"tweetid":8,"user":"VerniaHerndon_714","sender_location":point("26.08,83.01"),"send_time":datetime("2007-04-14T10:10:00"),"forward_from":8831723361,"retweet_from":-1,"referred_topics":{{"motorola","network"}},"message_text":" hate motorola the network is horrible"}
+{"tweetid":9,"user":"VerniaHerndon_714","sender_location":point("40.38,73.48"),"send_time":datetime("2006-10-10T10:10:00"),"forward_from":-1,"retweet_from":3258345607,"referred_topics":{{"verizon","shortcut-menu"}},"message_text":" love verizon the shortcut-menu is awesome:)"}
+{"tweetid":10,"user":"VerniaHerndon_714","sender_location":point("47.42,68.06"),"send_time":datetime("2011-11-18T10:10:00"),"forward_from":-1,"retweet_from":-1,"referred_topics":{{"samsung","customization"}},"message_text":" love samsung the customization is mind-blowing"}
+{"tweetid":11,"user":"VerniaHerndon_714","sender_location":point("27.95,95.22"),"send_time":datetime("2006-10-24T10:10:00"),"forward_from":-1,"retweet_from":-1,"referred_topics":{{"at&t","voice-clarity"}},"message_text":" dislike at&t the voice-clarity is bad"}
+{"tweetid":12,"user":"VerniaHerndon_714","sender_location":point("37.68,96.92"),"send_time":datetime("2007-06-28T10:10:00"),"forward_from":-1,"retweet_from":-1,"referred_topics":{{"samsung","customization"}},"message_text":" dislike samsung its customization is OMG:("}
+{"tweetid":13,"user":"VerniaHerndon_714","sender_location":point("33.25,67.32"),"send_time":datetime("2007-08-19T10:10:00"),"forward_from":1231614665,"retweet_from":-1,"referred_topics":{{"sprint","plan"}},"message_text":" love sprint the plan is good"}
diff --git a/asterixdb/asterix-app/data/tinysocial/fbm_sqlpp.adm b/asterixdb/asterix-app/data/tinysocial/fbm_sqlpp.adm
new file mode 100644
index 0000000..9bfd39c
--- /dev/null
+++ b/asterixdb/asterix-app/data/tinysocial/fbm_sqlpp.adm
@@ -0,0 +1,15 @@
+{"message_id":1,"author_id":3,"in_response_to":2,"sender_location":point("47.16,77.75"),"message":" love sprint its shortcut-menu is awesome:)"}
+{"message_id":2,"author_id":1,"in_response_to":4,"sender_location":point("41.66,80.87"),"message":" dislike iphone its touch-screen is horrible"}
+{"message_id":3,"author_id":2,"in_response_to":4,"sender_location":point("48.09,81.01"),"message":" like samsung the plan is amazing"}
+{"message_id":4,"author_id":1,"in_response_to":2,"sender_location":point("37.73,97.04"),"message":" can't stand at&t the network is horrible:("}
+{"message_id":5,"author_id":6,"in_response_to":2,"sender_location":point("34.7,90.76"),"message":" love sprint the customization is mind-blowing"}
+{"message_id":6,"author_id":2,"in_response_to":1,"sender_location":point("31.5,75.56"),"message":" like t-mobile its platform is mind-blowing"}
+{"message_id":7,"author_id":5,"in_response_to":15,"sender_location":point("32.91,85.05"),"message":" dislike sprint the speed is horrible"}
+{"message_id":8,"author_id":1,"in_response_to":11,"sender_location":point("40.33,80.87"),"message":" like verizon the 3G is awesome:)"}
+{"message_id":9,"author_id":3,"in_response_to":12,"sender_location":point("34.45,96.48"),"message":" love verizon its wireless is good"}
+{"message_id":10,"author_id":1,"in_response_to":12,"sender_location":point("42.5,70.01"),"message":" can't stand motorola the touch-screen is terrible"}
+{"message_id":11,"author_id":1,"in_response_to":1,"sender_location":point("38.97,77.49"),"message":" can't stand at&t its plan is terrible"}
+{"message_id":12,"author_id":10,"in_response_to":6,"sender_location":point("42.26,77.76"),"message":" can't stand t-mobile its voicemail-service is OMG:("}
+{"message_id":13,"author_id":10,"in_response_to":4,"sender_location":point("42.77,78.92"),"message":" dislike iphone the voice-command is bad:("}
+{"message_id":14,"author_id":9,"in_response_to":12,"sender_location":point("41.33,85.28"),"message":" love at&t its 3G is good:)"}
+{"message_id":15,"author_id":7,"in_response_to":11,"sender_location":point("44.47,67.11"),"message":" like iphone the voicemail-service is awesome"}
diff --git a/asterixdb/asterix-app/data/twitter/tw_for_indexleftouterjoinsqlpp.adm b/asterixdb/asterix-app/data/twitter/tw_for_indexleftouterjoinsqlpp.adm
new file mode 100644
index 0000000..248dae9
--- /dev/null
+++ b/asterixdb/asterix-app/data/twitter/tw_for_indexleftouterjoinsqlpp.adm
@@ -0,0 +1,250 @@
+{ "tweetid": 1i64, "user": { "screen_name": "WardLoewentsein@340", "lang": "en", "friends_count": 11, "statuses_count": 388, "name": "Ward Loewentsein", "followers_count": 129 }, "sender_location": point("42.83,72.44"), "send_time": datetime("2009-10-21T10:10:00.000Z"), "referred_topics": {{ "t-mobile", "speed" }}, "message_text": " love t-mobile the speed is mind-blowing:)", "countA": 1, "countB": 26 }
+{ "tweetid": 2i64, "user": { "screen_name": "KyleGraham_120", "lang": "en", "friends_count": 55, "statuses_count": 231, "name": "Kyle Graham", "followers_count": 42 }, "sender_location": point("34.81,72.44"), "send_time": datetime("2011-09-23T10:10:00.000Z"), "referred_topics": {{ "samsung", "3G" }}, "message_text": " hate samsung the 3G is horrible", "countA": 2, "countB": 131 }
+{ "tweetid": 3i64, "user": { "screen_name": "TateGarneys@542", "lang": "en", "friends_count": 74, "statuses_count": 370, "name": "Tate Garneys", "followers_count": 111 }, "sender_location": point("24.54,82.66"), "send_time": datetime("2009-12-07T10:10:00.000Z"), "referred_topics": {{ "iphone", "shortcut-menu" }}, "message_text": " hate iphone the shortcut-menu is bad", "countA": 3, "countB": 187 }
+{ "tweetid": 4i64, "user": { "screen_name": "BuckFields@708", "lang": "en", "friends_count": 20, "statuses_count": 469, "name": "Buck Fields", "followers_count": 181 }, "sender_location": point("38.14,68.1"), "send_time": datetime("2008-10-24T10:10:00.000Z"), "referred_topics": {{ "samsung", "speed" }}, "message_text": " dislike samsung the speed is OMG", "countA": 4, "countB": 52 }
+{ "tweetid": 5i64, "user": { "screen_name": "NoreenBaldwin_373", "lang": "en", "friends_count": 89, "statuses_count": 144, "name": "Noreen Baldwin", "followers_count": 187 }, "sender_location": point("35.4,68.89"), "send_time": datetime("2008-10-05T10:10:00.000Z"), "referred_topics": {{ "motorola", "3G" }}, "message_text": " hate motorola its 3G is OMG:(", "countA": 5, "countB": 35 }
+{ "tweetid": 6i64, "user": { "screen_name": "IselaHatcher_237", "lang": "en", "friends_count": 85, "statuses_count": 333, "name": "Isela Hatcher", "followers_count": 148 }, "sender_location": point("42.75,78.5"), "send_time": datetime("2011-10-15T10:10:00.000Z"), "referred_topics": {{ "sprint", "wireless" }}, "message_text": " hate sprint the wireless is terrible:(", "countA": 6, "countB": 61 }
+{ "tweetid": 7i64, "user": { "screen_name": "NicolaJolce$660", "lang": "en", "friends_count": 45, "statuses_count": 420, "name": "Nicola Jolce", "followers_count": 12 }, "sender_location": point("48.16,71.59"), "send_time": datetime("2005-11-23T10:10:00.000Z"), "referred_topics": {{ "motorola", "voice-command" }}, "message_text": " like motorola its voice-command is amazing", "countA": 7, "countB": 47 }
+{ "tweetid": 8i64, "user": { "screen_name": "MorganKeppel_176", "lang": "en", "friends_count": 74, "statuses_count": 190, "name": "Morgan Keppel", "followers_count": 2 }, "sender_location": point("36.17,72.56"), "send_time": datetime("2011-12-02T10:10:00.000Z"), "referred_topics": {{ "verizon", "3G" }}, "message_text": " hate verizon the 3G is OMG:(", "countA": 8, "countB": 98 }
+{ "tweetid": 9i64, "user": { "screen_name": "GerardMcdonald$43", "lang": "en", "friends_count": 72, "statuses_count": 151, "name": "Gerard Mcdonald", "followers_count": 96 }, "sender_location": point("38.02,70.38"), "send_time": datetime("2005-10-01T10:10:00.000Z"), "referred_topics": {{ "sprint", "voice-clarity" }}, "message_text": " love sprint its voice-clarity is amazing", "countA": 9, "countB": 69 }
+{ "tweetid": 10i64, "user": { "screen_name": "WynonnaButler_286", "lang": "en", "friends_count": 30, "statuses_count": 375, "name": "Wynonna Butler", "followers_count": 78 }, "sender_location": point("38.71,90.05"), "send_time": datetime("2008-09-21T10:10:00.000Z"), "referred_topics": {{ "motorola", "wireless" }}, "message_text": " love motorola its wireless is good:)", "countA": 10, "countB": 75 }
+{ "tweetid": 11i64, "user": { "screen_name": "BrodyKing@977", "lang": "en", "friends_count": 3, "statuses_count": 62, "name": "Brody King", "followers_count": 106 }, "sender_location": point("32.26,73.48"), "send_time": datetime("2007-05-20T10:10:00.000Z"), "referred_topics": {{ "sprint", "shortcut-menu" }}, "message_text": " can't stand sprint the shortcut-menu is OMG", "countA": 11, "countB": 28 }
+{ "tweetid": 12i64, "user": { "screen_name": "ValentineSchofield@448", "lang": "en", "friends_count": 16, "statuses_count": 260, "name": "Valentine Schofield", "followers_count": 136 }, "sender_location": point("24.99,70.66"), "send_time": datetime("2009-07-26T10:10:00.000Z"), "referred_topics": {{ "sprint", "shortcut-menu" }}, "message_text": " can't stand sprint its shortcut-menu is terrible", "countA": 12, "countB": 159 }
+{ "tweetid": 13i64, "user": { "screen_name": "MaryroseBennett#483", "lang": "en", "friends_count": 99, "statuses_count": 496, "name": "Maryrose Bennett", "followers_count": 57 }, "sender_location": point("38.94,93.31"), "send_time": datetime("2005-01-06T10:10:00.000Z"), "referred_topics": {{ "at&t", "platform" }}, "message_text": " love at&t its platform is awesome", "countA": 13, "countB": 13 }
+{ "tweetid": 14i64, "user": { "screen_name": "GarlandAlliman$490", "lang": "en", "friends_count": 23, "statuses_count": 146, "name": "Garland Alliman", "followers_count": 51 }, "sender_location": point("29.96,75.0"), "send_time": datetime("2009-09-26T10:10:00.000Z"), "referred_topics": {{ "motorola", "platform" }}, "message_text": " dislike motorola the platform is bad:(", "countA": 14, "countB": 74 }
+{ "tweetid": 15i64, "user": { "screen_name": "AnnabelPirl$171", "lang": "en", "friends_count": 43, "statuses_count": 402, "name": "Annabel Pirl", "followers_count": 137 }, "sender_location": point("27.22,86.32"), "send_time": datetime("2008-09-08T10:10:00.000Z"), "referred_topics": {{ "at&t", "network" }}, "message_text": " like at&t the network is amazing:)", "countA": 15, "countB": 19 }
+{ "tweetid": 16i64, "user": { "screen_name": "JarvisPickering@42", "lang": "en", "friends_count": 98, "statuses_count": 498, "name": "Jarvis Pickering", "followers_count": 20 }, "sender_location": point("30.54,81.6"), "send_time": datetime("2005-11-05T10:10:00.000Z"), "referred_topics": {{ "iphone", "wireless" }}, "message_text": " love iphone the wireless is awesome", "countA": 16, "countB": 27 }
+{ "tweetid": 17i64, "user": { "screen_name": "LillyHoffhants@595", "lang": "en", "friends_count": 35, "statuses_count": 391, "name": "Lilly Hoffhants", "followers_count": 129 }, "sender_location": point("47.96,95.21"), "send_time": datetime("2007-02-14T10:10:00.000Z"), "referred_topics": {{ "verizon", "customer-service" }}, "message_text": " like verizon its customer-service is amazing", "countA": 17, "countB": 55 }
+{ "tweetid": 18i64, "user": { "screen_name": "AllanPolson_455", "lang": "en", "friends_count": 36, "statuses_count": 227, "name": "Allan Polson", "followers_count": 113 }, "sender_location": point("46.39,73.85"), "send_time": datetime("2009-12-14T10:10:00.000Z"), "referred_topics": {{ "iphone", "platform" }}, "message_text": " hate iphone the platform is bad", "countA": 18, "countB": 199 }
+{ "tweetid": 19i64, "user": { "screen_name": "DonnieWentzel#857", "lang": "en", "friends_count": 76, "statuses_count": 23, "name": "Donnie Wentzel", "followers_count": 78 }, "sender_location": point("37.21,95.76"), "send_time": datetime("2012-04-10T10:10:00.000Z"), "referred_topics": {{ "iphone", "reachability" }}, "message_text": " like iphone the reachability is mind-blowing", "countA": 19, "countB": 68 }
+{ "tweetid": 20i64, "user": { "screen_name": "TraversFaast@428", "lang": "en", "friends_count": 42, "statuses_count": 70, "name": "Travers Faast", "followers_count": 116 }, "sender_location": point("26.54,74.71"), "send_time": datetime("2010-06-14T10:10:00.000Z"), "referred_topics": {{ "iphone", "shortcut-menu" }}, "message_text": " like iphone the shortcut-menu is mind-blowing", "countA": 20, "countB": 18 }
+{ "tweetid": 21i64, "user": { "screen_name": "KameronSandford#555", "lang": "en", "friends_count": 22, "statuses_count": 104, "name": "Kameron Sandford", "followers_count": 17 }, "sender_location": point("25.8,88.76"), "send_time": datetime("2007-11-20T10:10:00.000Z"), "referred_topics": {{ "at&t", "network" }}, "message_text": " can't stand at&t the network is bad:(", "countA": 21, "countB": 64 }
+{ "tweetid": 22i64, "user": { "screen_name": "TiannaArmitage_372", "lang": "en", "friends_count": 32, "statuses_count": 307, "name": "Tianna Armitage", "followers_count": 126 }, "sender_location": point("45.79,80.75"), "send_time": datetime("2005-04-14T10:10:00.000Z"), "referred_topics": {{ "motorola", "reachability" }}, "message_text": " can't stand motorola its reachability is terrible:(", "countA": 22, "countB": 126 }
+{ "tweetid": 23i64, "user": { "screen_name": "NevadaCattley#858", "lang": "en", "friends_count": 74, "statuses_count": 389, "name": "Nevada Cattley", "followers_count": 17 }, "sender_location": point("43.6,93.24"), "send_time": datetime("2007-03-11T10:10:00.000Z"), "referred_topics": {{ "at&t", "network" }}, "message_text": " hate at&t the network is horrible", "countA": 23, "countB": 74 }
+{ "tweetid": 24i64, "user": { "screen_name": "ReannonEisenhart#637", "lang": "en", "friends_count": 34, "statuses_count": 235, "name": "Reannon Eisenhart", "followers_count": 145 }, "sender_location": point("47.56,76.49"), "send_time": datetime("2012-03-20T10:10:00.000Z"), "referred_topics": {{ "samsung", "voice-clarity" }}, "message_text": " can't stand samsung its voice-clarity is terrible:(", "countA": 24, "countB": 70 }
+{ "tweetid": 25i64, "user": { "screen_name": "LillyMang#928", "lang": "en", "friends_count": 20, "statuses_count": 40, "name": "Lilly Mang", "followers_count": 47 }, "sender_location": point("38.68,94.93"), "send_time": datetime("2006-04-21T10:10:00.000Z"), "referred_topics": {{ "sprint", "customization" }}, "message_text": " love sprint its customization is awesome", "countA": 25, "countB": 86 }
+{ "tweetid": 26i64, "user": { "screen_name": "MicaBusk$903", "lang": "en", "friends_count": 87, "statuses_count": 164, "name": "Mica Busk", "followers_count": 92 }, "sender_location": point("45.47,90.97"), "send_time": datetime("2008-01-24T10:10:00.000Z"), "referred_topics": {{ "motorola", "touch-screen" }}, "message_text": " hate motorola the touch-screen is terrible", "countA": 26, "countB": 11 }
+{ "tweetid": 27i64, "user": { "screen_name": "PiaHildyard_915", "lang": "en", "friends_count": 92, "statuses_count": 302, "name": "Pia Hildyard", "followers_count": 16 }, "sender_location": point("43.76,68.58"), "send_time": datetime("2007-08-10T10:10:00.000Z"), "referred_topics": {{ "iphone", "platform" }}, "message_text": " dislike iphone its platform is bad:(", "countA": 27, "countB": 125 }
+{ "tweetid": 28i64, "user": { "screen_name": "CamelliaSiegrist_676", "lang": "en", "friends_count": 73, "statuses_count": 392, "name": "Camellia Siegrist", "followers_count": 193 }, "sender_location": point("24.94,77.95"), "send_time": datetime("2007-12-26T10:10:00.000Z"), "referred_topics": {{ "verizon", "voice-command" }}, "message_text": " can't stand verizon its voice-command is bad", "countA": 28, "countB": 123 }
+{ "tweetid": 29i64, "user": { "screen_name": "BurtTaggart_922", "lang": "en", "friends_count": 49, "statuses_count": 62, "name": "Burt Taggart", "followers_count": 134 }, "sender_location": point("35.67,97.43"), "send_time": datetime("2011-07-21T10:10:00.000Z"), "referred_topics": {{ "t-mobile", "signal" }}, "message_text": " love t-mobile the signal is awesome", "countA": 29, "countB": 115 }
+{ "tweetid": 30i64, "user": { "screen_name": "MarlaHill@215", "lang": "en", "friends_count": 84, "statuses_count": 305, "name": "Marla Hill", "followers_count": 71 }, "sender_location": point("24.29,84.28"), "send_time": datetime("2012-07-03T10:10:00.000Z"), "referred_topics": {{ "t-mobile", "3G" }}, "message_text": " like t-mobile the 3G is awesome", "countA": 30, "countB": 36 }
+{ "tweetid": 31i64, "user": { "screen_name": "CaitlynChristman@452", "lang": "en", "friends_count": 57, "statuses_count": 414, "name": "Caitlyn Christman", "followers_count": 67 }, "sender_location": point("41.04,85.13"), "send_time": datetime("2005-11-05T10:10:00.000Z"), "referred_topics": {{ "samsung", "voicemail-service" }}, "message_text": " love samsung the voicemail-service is mind-blowing:)", "countA": 31, "countB": 59 }
+{ "tweetid": 32i64, "user": { "screen_name": "BraxtonBonner#527", "lang": "en", "friends_count": 21, "statuses_count": 427, "name": "Braxton Bonner", "followers_count": 168 }, "sender_location": point("34.25,86.09"), "send_time": datetime("2011-10-07T10:10:00.000Z"), "referred_topics": {{ "motorola", "3G" }}, "message_text": " dislike motorola its 3G is horrible:(", "countA": 32, "countB": 38 }
+{ "tweetid": 33i64, "user": { "screen_name": "WilmaSouthern@238", "lang": "en", "friends_count": 83, "statuses_count": 413, "name": "Wilma Southern", "followers_count": 24 }, "sender_location": point("34.71,69.57"), "send_time": datetime("2005-02-19T10:10:00.000Z"), "referred_topics": {{ "sprint", "wireless" }}, "message_text": " dislike sprint the wireless is OMG:(", "countA": 33, "countB": 105 }
+{ "tweetid": 34i64, "user": { "screen_name": "MaxNash$802", "lang": "en", "friends_count": 13, "statuses_count": 189, "name": "Max Nash", "followers_count": 39 }, "sender_location": point("48.12,89.23"), "send_time": datetime("2012-02-17T10:10:00.000Z"), "referred_topics": {{ "motorola", "touch-screen" }}, "message_text": " dislike motorola its touch-screen is horrible", "countA": 34, "countB": 185 }
+{ "tweetid": 35i64, "user": { "screen_name": "HannahWarrick_843", "lang": "en", "friends_count": 14, "statuses_count": 10, "name": "Hannah Warrick", "followers_count": 2 }, "sender_location": point("32.75,69.94"), "send_time": datetime("2007-09-14T10:10:00.000Z"), "referred_topics": {{ "t-mobile", "plan" }}, "message_text": " like t-mobile the plan is amazing:)", "countA": 35, "countB": 176 }
+{ "tweetid": 36i64, "user": { "screen_name": "SherikaBarth#732", "lang": "en", "friends_count": 80, "statuses_count": 277, "name": "Sherika Barth", "followers_count": 138 }, "sender_location": point("34.85,66.87"), "send_time": datetime("2011-10-13T10:10:00.000Z"), "referred_topics": {{ "at&t", "plan" }}, "message_text": " can't stand at&t the plan is OMG", "countA": 36, "countB": 147 }
+{ "tweetid": 37i64, "user": { "screen_name": "SabinaCattley$355", "lang": "en", "friends_count": 67, "statuses_count": 20, "name": "Sabina Cattley", "followers_count": 104 }, "sender_location": point("40.22,71.18"), "send_time": datetime("2007-04-06T10:10:00.000Z"), "referred_topics": {{ "samsung", "voice-clarity" }}, "message_text": " can't stand samsung its voice-clarity is bad:(", "countA": 37, "countB": 55 }
+{ "tweetid": 38i64, "user": { "screen_name": "KimberlyVeith$848", "lang": "en", "friends_count": 43, "statuses_count": 274, "name": "Kimberly Veith", "followers_count": 14 }, "sender_location": point("34.94,83.17"), "send_time": datetime("2011-07-15T10:10:00.000Z"), "referred_topics": {{ "samsung", "speed" }}, "message_text": " hate samsung the speed is horrible:(", "countA": 38, "countB": 89 }
+{ "tweetid": 39i64, "user": { "screen_name": "AdrianneMackendoerfer_478", "lang": "en", "friends_count": 2, "statuses_count": 125, "name": "Adrianne Mackendoerfer", "followers_count": 113 }, "sender_location": point("40.14,78.49"), "send_time": datetime("2010-10-19T10:10:00.000Z"), "referred_topics": {{ "motorola", "voice-command" }}, "message_text": " hate motorola its voice-command is OMG", "countA": 39, "countB": 97 }
+{ "tweetid": 40i64, "user": { "screen_name": "MunroWire@995", "lang": "en", "friends_count": 89, "statuses_count": 336, "name": "Munro Wire", "followers_count": 181 }, "sender_location": point("30.94,80.83"), "send_time": datetime("2009-05-07T10:10:00.000Z"), "referred_topics": {{ "verizon", "network" }}, "message_text": " love verizon the network is good", "countA": 40, "countB": 193 }
+{ "tweetid": 41i64, "user": { "screen_name": "AmadaAft@648", "lang": "en", "friends_count": 50, "statuses_count": 127, "name": "Amada Aft", "followers_count": 20 }, "sender_location": point("32.88,81.46"), "send_time": datetime("2010-04-16T10:10:00.000Z"), "referred_topics": {{ "iphone", "customer-service" }}, "message_text": " can't stand iphone its customer-service is OMG:(", "countA": 41, "countB": 169 }
+{ "tweetid": 42i64, "user": { "screen_name": "SalenaMcfall_717", "lang": "en", "friends_count": 30, "statuses_count": 93, "name": "Salena Mcfall", "followers_count": 184 }, "sender_location": point("47.86,71.93"), "send_time": datetime("2010-02-28T10:10:00.000Z"), "referred_topics": {{ "t-mobile", "network" }}, "message_text": " can't stand t-mobile its network is bad", "countA": 42, "countB": 130 }
+{ "tweetid": 43i64, "user": { "screen_name": "JeniferCanham$317", "lang": "en", "friends_count": 63, "statuses_count": 344, "name": "Jenifer Canham", "followers_count": 132 }, "sender_location": point("25.68,81.87"), "send_time": datetime("2010-04-22T10:10:00.000Z"), "referred_topics": {{ "motorola", "3G" }}, "message_text": " hate motorola the 3G is OMG:(", "countA": 43, "countB": 153 }
+{ "tweetid": 44i64, "user": { "screen_name": "NannieBender$656", "lang": "en", "friends_count": 26, "statuses_count": 84, "name": "Nannie Bender", "followers_count": 184 }, "sender_location": point("47.46,85.04"), "send_time": datetime("2007-06-08T10:10:00.000Z"), "referred_topics": {{ "samsung", "voice-command" }}, "message_text": " dislike samsung its voice-command is bad", "countA": 44, "countB": 12 }
+{ "tweetid": 45i64, "user": { "screen_name": "ThaoKooser@875", "lang": "en", "friends_count": 60, "statuses_count": 289, "name": "Thao Kooser", "followers_count": 8 }, "sender_location": point("37.02,87.94"), "send_time": datetime("2005-11-28T10:10:00.000Z"), "referred_topics": {{ "verizon", "network" }}, "message_text": " like verizon its network is amazing:)", "countA": 45, "countB": 151 }
+{ "tweetid": 46i64, "user": { "screen_name": "AugustaBaumgartner_385", "lang": "en", "friends_count": 17, "statuses_count": 70, "name": "Augusta Baumgartner", "followers_count": 162 }, "sender_location": point("24.83,73.16"), "send_time": datetime("2008-09-23T10:10:00.000Z"), "referred_topics": {{ "verizon", "network" }}, "message_text": " like verizon its network is mind-blowing", "countA": 46, "countB": 37 }
+{ "tweetid": 47i64, "user": { "screen_name": "OtisHill_124", "lang": "en", "friends_count": 46, "statuses_count": 68, "name": "Otis Hill", "followers_count": 29 }, "sender_location": point("36.01,86.76"), "send_time": datetime("2011-05-16T10:10:00.000Z"), "referred_topics": {{ "t-mobile", "touch-screen" }}, "message_text": " dislike t-mobile the touch-screen is horrible:(", "countA": 47, "countB": 27 }
+{ "tweetid": 48i64, "user": { "screen_name": "ZolaJudge@572", "lang": "en", "friends_count": 8, "statuses_count": 39, "name": "Zola Judge", "followers_count": 36 }, "sender_location": point("42.67,91.8"), "send_time": datetime("2009-03-06T10:10:00.000Z"), "referred_topics": {{ "motorola", "network" }}, "message_text": " like motorola the network is awesome", "countA": 48, "countB": 16 }
+{ "tweetid": 49i64, "user": { "screen_name": "ChristianaWeisgarber$35", "lang": "en", "friends_count": 40, "statuses_count": 427, "name": "Christiana Weisgarber", "followers_count": 20 }, "sender_location": point("36.91,86.0"), "send_time": datetime("2010-04-18T10:10:00.000Z"), "referred_topics": {{ "sprint", "plan" }}, "message_text": " hate sprint its plan is terrible", "countA": 49, "countB": 28 }
+{ "tweetid": 50i64, "user": { "screen_name": "MollyGarneis_210", "lang": "en", "friends_count": 6, "statuses_count": 453, "name": "Molly Garneis", "followers_count": 185 }, "sender_location": point("44.42,87.86"), "send_time": datetime("2012-04-28T10:10:00.000Z"), "referred_topics": {{ "t-mobile", "wireless" }}, "message_text": " love t-mobile its wireless is good:)", "countA": 50, "countB": 123 }
+{ "tweetid": 51i64, "user": { "screen_name": "HarlanHanseu#420", "lang": "en", "friends_count": 66, "statuses_count": 295, "name": "Harlan Hanseu", "followers_count": 99 }, "sender_location": point("37.65,70.54"), "send_time": datetime("2006-05-11T10:10:00.000Z"), "referred_topics": {{ "samsung", "speed" }}, "message_text": " can't stand samsung the speed is terrible:(", "countA": 51, "countB": 94 }
+{ "tweetid": 52i64, "user": { "screen_name": "DelorseSloan#229", "lang": "en", "friends_count": 84, "statuses_count": 287, "name": "Delorse Sloan", "followers_count": 20 }, "sender_location": point("27.12,78.69"), "send_time": datetime("2011-02-27T10:10:00.000Z"), "referred_topics": {{ "motorola", "touch-screen" }}, "message_text": " dislike motorola its touch-screen is horrible:(", "countA": 52, "countB": 156 }
+{ "tweetid": 53i64, "user": { "screen_name": "MylesEwing@54", "lang": "en", "friends_count": 45, "statuses_count": 411, "name": "Myles Ewing", "followers_count": 23 }, "sender_location": point("25.82,97.9"), "send_time": datetime("2007-11-10T10:10:00.000Z"), "referred_topics": {{ "at&t", "network" }}, "message_text": " like at&t its network is mind-blowing:)", "countA": 53, "countB": 174 }
+{ "tweetid": 54i64, "user": { "screen_name": "OprahClark_160", "lang": "en", "friends_count": 26, "statuses_count": 299, "name": "Oprah Clark", "followers_count": 161 }, "sender_location": point("36.1,87.24"), "send_time": datetime("2010-04-22T10:10:00.000Z"), "referred_topics": {{ "t-mobile", "shortcut-menu" }}, "message_text": " like t-mobile its shortcut-menu is good", "countA": 54, "countB": 128 }
+{ "tweetid": 55i64, "user": { "screen_name": "CoreyRichards#130", "lang": "en", "friends_count": 45, "statuses_count": 420, "name": "Corey Richards", "followers_count": 102 }, "sender_location": point("42.77,72.16"), "send_time": datetime("2012-07-20T10:10:00.000Z"), "referred_topics": {{ "at&t", "customer-service" }}, "message_text": " can't stand at&t its customer-service is horrible", "countA": 55, "countB": 30 }
+{ "tweetid": 56i64, "user": { "screen_name": "GwendolenHahn#673", "lang": "en", "friends_count": 62, "statuses_count": 426, "name": "Gwendolen Hahn", "followers_count": 158 }, "sender_location": point("39.76,90.94"), "send_time": datetime("2009-05-10T10:10:00.000Z"), "referred_topics": {{ "samsung", "3G" }}, "message_text": " dislike samsung its 3G is bad:(", "countA": 56, "countB": 50 }
+{ "tweetid": 57i64, "user": { "screen_name": "DewayneBallou@258", "lang": "en", "friends_count": 42, "statuses_count": 215, "name": "Dewayne Ballou", "followers_count": 85 }, "sender_location": point("28.45,75.02"), "send_time": datetime("2006-08-07T10:10:00.000Z"), "referred_topics": {{ "t-mobile", "speed" }}, "message_text": " love t-mobile the speed is mind-blowing:)", "countA": 57, "countB": 61 }
+{ "tweetid": 58i64, "user": { "screen_name": "RenayReese@543", "lang": "en", "friends_count": 80, "statuses_count": 459, "name": "Renay Reese", "followers_count": 102 }, "sender_location": point("38.09,77.66"), "send_time": datetime("2007-12-07T10:10:00.000Z"), "referred_topics": {{ "motorola", "speed" }}, "message_text": " love motorola the speed is awesome:)", "countA": 58, "countB": 35 }
+{ "tweetid": 59i64, "user": { "screen_name": "SamuelHoffhants@740", "lang": "en", "friends_count": 53, "statuses_count": 64, "name": "Samuel Hoffhants", "followers_count": 150 }, "sender_location": point("48.86,97.19"), "send_time": datetime("2009-11-27T10:10:00.000Z"), "referred_topics": {{ "sprint", "speed" }}, "message_text": " dislike sprint its speed is horrible", "countA": 59, "countB": 95 }
+{ "tweetid": 60i64, "user": { "screen_name": "GarlandOneal@886", "lang": "en", "friends_count": 12, "statuses_count": 481, "name": "Garland Oneal", "followers_count": 13 }, "sender_location": point("37.6,75.74"), "send_time": datetime("2005-05-27T10:10:00.000Z"), "referred_topics": {{ "sprint", "touch-screen" }}, "message_text": " hate sprint its touch-screen is OMG:(", "countA": 60, "countB": 2 }
+{ "tweetid": 61i64, "user": { "screen_name": "LukeHoopengarner@327", "lang": "en", "friends_count": 77, "statuses_count": 224, "name": "Luke Hoopengarner", "followers_count": 107 }, "sender_location": point("46.38,80.88"), "send_time": datetime("2006-11-13T10:10:00.000Z"), "referred_topics": {{ "sprint", "voicemail-service" }}, "message_text": " can't stand sprint its voicemail-service is bad:(", "countA": 61, "countB": 12 }
+{ "tweetid": 62i64, "user": { "screen_name": "AudieStahl@296", "lang": "en", "friends_count": 89, "statuses_count": 90, "name": "Audie Stahl", "followers_count": 74 }, "sender_location": point("32.48,96.01"), "send_time": datetime("2010-04-23T10:10:00.000Z"), "referred_topics": {{ "at&t", "platform" }}, "message_text": " can't stand at&t its platform is terrible:(", "countA": 62, "countB": 47 }
+{ "tweetid": 63i64, "user": { "screen_name": "ArielleErrett_963", "lang": "en", "friends_count": 15, "statuses_count": 385, "name": "Arielle Errett", "followers_count": 34 }, "sender_location": point("25.39,82.02"), "send_time": datetime("2012-02-20T10:10:00.000Z"), "referred_topics": {{ "verizon", "signal" }}, "message_text": " love verizon its signal is awesome:)", "countA": 63, "countB": 149 }
+{ "tweetid": 64i64, "user": { "screen_name": "MiltonWeldi#571", "lang": "en", "friends_count": 72, "statuses_count": 236, "name": "Milton Weldi", "followers_count": 128 }, "sender_location": point("26.08,85.94"), "send_time": datetime("2007-09-22T10:10:00.000Z"), "referred_topics": {{ "sprint", "reachability" }}, "message_text": " like sprint the reachability is awesome", "countA": 64, "countB": 158 }
+{ "tweetid": 65i64, "user": { "screen_name": "CarlineAft_666", "lang": "en", "friends_count": 25, "statuses_count": 352, "name": "Carline Aft", "followers_count": 59 }, "sender_location": point("29.33,78.49"), "send_time": datetime("2012-01-18T10:10:00.000Z"), "referred_topics": {{ "samsung", "customization" }}, "message_text": " can't stand samsung the customization is terrible:(", "countA": 65, "countB": 77 }
+{ "tweetid": 66i64, "user": { "screen_name": "TenaGronko#55", "lang": "en", "friends_count": 91, "statuses_count": 2, "name": "Tena Gronko", "followers_count": 19 }, "sender_location": point("40.14,73.21"), "send_time": datetime("2011-03-18T10:10:00.000Z"), "referred_topics": {{ "at&t", "voice-command" }}, "message_text": " hate at&t the voice-command is horrible", "countA": 66, "countB": 73 }
+{ "tweetid": 67i64, "user": { "screen_name": "DanialBrinigh#499", "lang": "en", "friends_count": 67, "statuses_count": 413, "name": "Danial Brinigh", "followers_count": 4 }, "sender_location": point("41.26,97.09"), "send_time": datetime("2008-02-28T10:10:00.000Z"), "referred_topics": {{ "motorola", "3G" }}, "message_text": " can't stand motorola the 3G is OMG:(", "countA": 67, "countB": 47 }
+{ "tweetid": 68i64, "user": { "screen_name": "GretaBusk#270", "lang": "en", "friends_count": 30, "statuses_count": 150, "name": "Greta Busk", "followers_count": 124 }, "sender_location": point("30.35,86.51"), "send_time": datetime("2008-03-13T10:10:00.000Z"), "referred_topics": {{ "motorola", "reachability" }}, "message_text": " can't stand motorola the reachability is bad:(", "countA": 68, "countB": 21 }
+{ "tweetid": 69i64, "user": { "screen_name": "DanielBurch@155", "lang": "en", "friends_count": 5, "statuses_count": 268, "name": "Daniel Burch", "followers_count": 178 }, "sender_location": point("45.31,66.89"), "send_time": datetime("2009-06-27T10:10:00.000Z"), "referred_topics": {{ "samsung", "network" }}, "message_text": " hate samsung its network is horrible", "countA": 69, "countB": 153 }
+{ "tweetid": 70i64, "user": { "screen_name": "JaynaBash@532", "lang": "en", "friends_count": 90, "statuses_count": 244, "name": "Jayna Bash", "followers_count": 184 }, "sender_location": point("43.92,69.28"), "send_time": datetime("2012-08-06T10:10:00.000Z"), "referred_topics": {{ "samsung", "platform" }}, "message_text": " can't stand samsung the platform is bad", "countA": 70, "countB": 133 }
+{ "tweetid": 71i64, "user": { "screen_name": "PatriciaCason#475", "lang": "en", "friends_count": 50, "statuses_count": 149, "name": "Patricia Cason", "followers_count": 114 }, "sender_location": point("43.74,69.29"), "send_time": datetime("2009-08-28T10:10:00.000Z"), "referred_topics": {{ "t-mobile", "shortcut-menu" }}, "message_text": " like t-mobile the shortcut-menu is amazing:)", "countA": 71, "countB": 185 }
+{ "tweetid": 72i64, "user": { "screen_name": "KatharineElsas_215", "lang": "en", "friends_count": 69, "statuses_count": 128, "name": "Katharine Elsas", "followers_count": 114 }, "sender_location": point("29.05,94.41"), "send_time": datetime("2010-09-25T10:10:00.000Z"), "referred_topics": {{ "samsung", "signal" }}, "message_text": " can't stand samsung the signal is OMG:(", "countA": 72, "countB": 31 }
+{ "tweetid": 73i64, "user": { "screen_name": "YorkSanborn_951", "lang": "en", "friends_count": 69, "statuses_count": 375, "name": "York Sanborn", "followers_count": 15 }, "sender_location": point("43.92,94.49"), "send_time": datetime("2010-09-19T10:10:00.000Z"), "referred_topics": {{ "motorola", "reachability" }}, "message_text": " dislike motorola its reachability is bad:(", "countA": 73, "countB": 61 }
+{ "tweetid": 74i64, "user": { "screen_name": "AlbertoDull$598", "lang": "en", "friends_count": 29, "statuses_count": 181, "name": "Alberto Dull", "followers_count": 192 }, "sender_location": point("25.6,85.23"), "send_time": datetime("2005-09-22T10:10:00.000Z"), "referred_topics": {{ "samsung", "wireless" }}, "message_text": " dislike samsung the wireless is OMG:(", "countA": 74, "countB": 32 }
+{ "tweetid": 75i64, "user": { "screen_name": "EnriqueFaast$123", "lang": "en", "friends_count": 9, "statuses_count": 24, "name": "Enrique Faast", "followers_count": 24 }, "sender_location": point("30.09,72.93"), "send_time": datetime("2009-10-17T10:10:00.000Z"), "referred_topics": {{ "t-mobile", "voicemail-service" }}, "message_text": " dislike t-mobile its voicemail-service is horrible", "countA": 75, "countB": 185 }
+{ "tweetid": 76i64, "user": { "screen_name": "AndreaBruxner$43", "lang": "en", "friends_count": 37, "statuses_count": 279, "name": "Andrea Bruxner", "followers_count": 118 }, "sender_location": point("30.39,92.92"), "send_time": datetime("2011-04-18T10:10:00.000Z"), "referred_topics": {{ "t-mobile", "customization" }}, "message_text": " like t-mobile its customization is awesome", "countA": 76, "countB": 146 }
+{ "tweetid": 77i64, "user": { "screen_name": "LashawnaKemble$318", "lang": "en", "friends_count": 53, "statuses_count": 44, "name": "Lashawna Kemble", "followers_count": 102 }, "sender_location": point("46.29,93.16"), "send_time": datetime("2010-12-09T10:10:00.000Z"), "referred_topics": {{ "samsung", "voice-command" }}, "message_text": " dislike samsung the voice-command is horrible", "countA": 77, "countB": 0 }
+{ "tweetid": 78i64, "user": { "screen_name": "RodolfoWoodworth#419", "lang": "en", "friends_count": 2, "statuses_count": 82, "name": "Rodolfo Woodworth", "followers_count": 16 }, "sender_location": point("44.92,70.03"), "send_time": datetime("2008-12-18T10:10:00.000Z"), "referred_topics": {{ "motorola", "touch-screen" }}, "message_text": " like motorola the touch-screen is awesome", "countA": 78, "countB": 140 }
+{ "tweetid": 79i64, "user": { "screen_name": "AbramCourtney_384", "lang": "en", "friends_count": 10, "statuses_count": 33, "name": "Abram Courtney", "followers_count": 138 }, "sender_location": point("34.9,96.91"), "send_time": datetime("2007-03-15T10:10:00.000Z"), "referred_topics": {{ "at&t", "plan" }}, "message_text": " hate at&t the plan is bad:(", "countA": 79, "countB": 193 }
+{ "tweetid": 80i64, "user": { "screen_name": "LaurindaRosensteel@202", "lang": "en", "friends_count": 19, "statuses_count": 222, "name": "Laurinda Rosensteel", "followers_count": 20 }, "sender_location": point("47.86,92.66"), "send_time": datetime("2008-09-24T10:10:00.000Z"), "referred_topics": {{ "samsung", "platform" }}, "message_text": " hate samsung its platform is horrible:(", "countA": 80, "countB": 39 }
+{ "tweetid": 81i64, "user": { "screen_name": "JarrettBratton@573", "lang": "en", "friends_count": 90, "statuses_count": 287, "name": "Jarrett Bratton", "followers_count": 18 }, "sender_location": point("33.85,75.61"), "send_time": datetime("2006-05-06T10:10:00.000Z"), "referred_topics": {{ "sprint", "network" }}, "message_text": " like sprint its network is amazing:)", "countA": 81, "countB": 105 }
+{ "tweetid": 82i64, "user": { "screen_name": "EleanorBicknell$880", "lang": "en", "friends_count": 35, "statuses_count": 444, "name": "Eleanor Bicknell", "followers_count": 199 }, "sender_location": point("42.31,95.69"), "send_time": datetime("2008-04-19T10:10:00.000Z"), "referred_topics": {{ "samsung", "plan" }}, "message_text": " can't stand samsung its plan is terrible", "countA": 82, "countB": 140 }
+{ "tweetid": 83i64, "user": { "screen_name": "MannyWerner#209", "lang": "en", "friends_count": 85, "statuses_count": 476, "name": "Manny Werner", "followers_count": 78 }, "sender_location": point("35.76,80.06"), "send_time": datetime("2007-11-17T10:10:00.000Z"), "referred_topics": {{ "samsung", "platform" }}, "message_text": " dislike samsung the platform is terrible", "countA": 83, "countB": 163 }
+{ "tweetid": 84i64, "user": { "screen_name": "TeshaReade_713", "lang": "en", "friends_count": 74, "statuses_count": 99, "name": "Tesha Reade", "followers_count": 112 }, "sender_location": point("26.69,82.05"), "send_time": datetime("2007-01-04T10:10:00.000Z"), "referred_topics": {{ "verizon", "shortcut-menu" }}, "message_text": " like verizon the shortcut-menu is mind-blowing", "countA": 84, "countB": 172 }
+{ "tweetid": 85i64, "user": { "screen_name": "WanCrissman$283", "lang": "en", "friends_count": 37, "statuses_count": 384, "name": "Wan Crissman", "followers_count": 176 }, "sender_location": point("42.3,69.18"), "send_time": datetime("2006-10-27T10:10:00.000Z"), "referred_topics": {{ "at&t", "network" }}, "message_text": " love at&t its network is awesome:)", "countA": 85, "countB": 77 }
+{ "tweetid": 86i64, "user": { "screen_name": "DeedeeMccallum#158", "lang": "en", "friends_count": 81, "statuses_count": 370, "name": "Deedee Mccallum", "followers_count": 104 }, "sender_location": point("46.35,92.36"), "send_time": datetime("2011-09-22T10:10:00.000Z"), "referred_topics": {{ "verizon", "voice-command" }}, "message_text": " like verizon the voice-command is amazing:)", "countA": 86, "countB": 156 }
+{ "tweetid": 87i64, "user": { "screen_name": "AileenAft@340", "lang": "en", "friends_count": 87, "statuses_count": 476, "name": "Aileen Aft", "followers_count": 14 }, "sender_location": point("41.44,95.97"), "send_time": datetime("2012-07-16T10:10:00.000Z"), "referred_topics": {{ "motorola", "network" }}, "message_text": " love motorola its network is mind-blowing", "countA": 87, "countB": 155 }
+{ "tweetid": 88i64, "user": { "screen_name": "BurtonLinton_390", "lang": "en", "friends_count": 13, "statuses_count": 462, "name": "Burton Linton", "followers_count": 34 }, "sender_location": point("45.22,88.29"), "send_time": datetime("2011-12-15T10:10:00.000Z"), "referred_topics": {{ "iphone", "reachability" }}, "message_text": " love iphone the reachability is awesome", "countA": 88, "countB": 95 }
+{ "tweetid": 89i64, "user": { "screen_name": "DamionJoghs_943", "lang": "en", "friends_count": 18, "statuses_count": 388, "name": "Damion Joghs", "followers_count": 111 }, "sender_location": point("36.32,83.38"), "send_time": datetime("2011-06-13T10:10:00.000Z"), "referred_topics": {{ "motorola", "touch-screen" }}, "message_text": " love motorola its touch-screen is awesome", "countA": 89, "countB": 85 }
+{ "tweetid": 90i64, "user": { "screen_name": "LatoshaCowart_858", "lang": "en", "friends_count": 14, "statuses_count": 318, "name": "Latosha Cowart", "followers_count": 27 }, "sender_location": point("26.63,82.77"), "send_time": datetime("2011-10-22T10:10:00.000Z"), "referred_topics": {{ "motorola", "plan" }}, "message_text": " love motorola the plan is good:)", "countA": 90, "countB": 139 }
+{ "tweetid": 91i64, "user": { "screen_name": "LoganPowers$336", "lang": "en", "friends_count": 52, "statuses_count": 154, "name": "Logan Powers", "followers_count": 28 }, "sender_location": point("30.66,96.22"), "send_time": datetime("2011-02-25T10:10:00.000Z"), "referred_topics": {{ "verizon", "reachability" }}, "message_text": " hate verizon the reachability is OMG:(", "countA": 91, "countB": 198 }
+{ "tweetid": 92i64, "user": { "screen_name": "NeilParkinson#794", "lang": "en", "friends_count": 18, "statuses_count": 365, "name": "Neil Parkinson", "followers_count": 27 }, "sender_location": point("31.25,71.75"), "send_time": datetime("2009-12-22T10:10:00.000Z"), "referred_topics": {{ "at&t", "platform" }}, "message_text": " can't stand at&t the platform is terrible:(", "countA": 92, "countB": 59 }
+{ "tweetid": 93i64, "user": { "screen_name": "GoddardFiscina$655", "lang": "en", "friends_count": 10, "statuses_count": 388, "name": "Goddard Fiscina", "followers_count": 142 }, "sender_location": point("33.4,72.55"), "send_time": datetime("2009-04-15T10:10:00.000Z"), "referred_topics": {{ "samsung", "speed" }}, "message_text": " like samsung the speed is mind-blowing", "countA": 93, "countB": 55 }
+{ "tweetid": 94i64, "user": { "screen_name": "JacindaCressman_698", "lang": "en", "friends_count": 50, "statuses_count": 380, "name": "Jacinda Cressman", "followers_count": 112 }, "sender_location": point("33.68,85.33"), "send_time": datetime("2010-09-07T10:10:00.000Z"), "referred_topics": {{ "sprint", "network" }}, "message_text": " like sprint its network is amazing:)", "countA": 94, "countB": 128 }
+{ "tweetid": 95i64, "user": { "screen_name": "NelsonWilks_476", "lang": "en", "friends_count": 43, "statuses_count": 249, "name": "Nelson Wilks", "followers_count": 47 }, "sender_location": point("26.2,74.63"), "send_time": datetime("2010-10-28T10:10:00.000Z"), "referred_topics": {{ "iphone", "shortcut-menu" }}, "message_text": " love iphone the shortcut-menu is mind-blowing", "countA": 95, "countB": 144 }
+{ "tweetid": 96i64, "user": { "screen_name": "FelipeBeach_761", "lang": "en", "friends_count": 70, "statuses_count": 191, "name": "Felipe Beach", "followers_count": 56 }, "sender_location": point("38.59,75.94"), "send_time": datetime("2012-08-06T10:10:00.000Z"), "referred_topics": {{ "sprint", "customization" }}, "message_text": " like sprint the customization is awesome:)", "countA": 96, "countB": 66 }
+{ "tweetid": 97i64, "user": { "screen_name": "MaximaPoehl$770", "lang": "en", "friends_count": 9, "statuses_count": 99, "name": "Maxima Poehl", "followers_count": 198 }, "sender_location": point("46.94,66.2"), "send_time": datetime("2008-03-16T10:10:00.000Z"), "referred_topics": {{ "iphone", "customization" }}, "message_text": " like iphone the customization is good", "countA": 97, "countB": 83 }
+{ "tweetid": 98i64, "user": { "screen_name": "IraLombardi#278", "lang": "en", "friends_count": 10, "statuses_count": 282, "name": "Ira Lombardi", "followers_count": 26 }, "sender_location": point("44.99,93.61"), "send_time": datetime("2011-02-11T10:10:00.000Z"), "referred_topics": {{ "iphone", "platform" }}, "message_text": " love iphone its platform is awesome:)", "countA": 98, "countB": 78 }
+{ "tweetid": 99i64, "user": { "screen_name": "RexHincken_917", "lang": "en", "friends_count": 88, "statuses_count": 292, "name": "Rex Hincken", "followers_count": 74 }, "sender_location": point("42.0,81.22"), "send_time": datetime("2008-09-01T10:10:00.000Z"), "referred_topics": {{ "t-mobile", "voicemail-service" }}, "message_text": " love t-mobile the voicemail-service is amazing:)", "countA": 99, "countB": 51 }
+{ "tweetid": 100i64, "user": { "screen_name": "DakotaTeagarden_163", "lang": "en", "friends_count": 54, "statuses_count": 391, "name": "Dakota Teagarden", "followers_count": 160 }, "sender_location": point("43.59,92.49"), "send_time": datetime("2010-11-23T10:10:00.000Z"), "referred_topics": {{ "samsung", "shortcut-menu" }}, "message_text": " can't stand samsung its shortcut-menu is OMG:(", "countA": 100, "countB": 184 }
+{ "tweetid": 101i64, "user": { "screen_name": "ChetMilliron_934", "lang": "en", "friends_count": 62, "statuses_count": 453, "name": "Chet Milliron", "followers_count": 53 }, "sender_location": point("47.95,77.58"), "send_time": datetime("2012-08-06T10:10:00.000Z"), "referred_topics": {{ "samsung", "3G" }}, "message_text": " like samsung the 3G is mind-blowing:)", "countA": 101, "countB": 142 }
+{ "tweetid": 102i64, "user": { "screen_name": "ZackLosey_956", "lang": "en", "friends_count": 90, "statuses_count": 6, "name": "Zack Losey", "followers_count": 116 }, "sender_location": point("26.53,80.6"), "send_time": datetime("2005-01-11T10:10:00.000Z"), "referred_topics": {{ "verizon", "platform" }}, "message_text": " like verizon its platform is amazing", "countA": 102, "countB": 190 }
+{ "tweetid": 103i64, "user": { "screen_name": "BrionyLafortune$483", "lang": "en", "friends_count": 87, "statuses_count": 496, "name": "Briony Lafortune", "followers_count": 4 }, "sender_location": point("42.2,73.96"), "send_time": datetime("2010-12-05T10:10:00.000Z"), "referred_topics": {{ "samsung", "voice-command" }}, "message_text": " can't stand samsung its voice-command is OMG", "countA": 103, "countB": 27 }
+{ "tweetid": 104i64, "user": { "screen_name": "SaraGraham@726", "lang": "en", "friends_count": 38, "statuses_count": 398, "name": "Sara Graham", "followers_count": 68 }, "sender_location": point("32.83,81.29"), "send_time": datetime("2009-10-25T10:10:00.000Z"), "referred_topics": {{ "iphone", "platform" }}, "message_text": " like iphone its platform is awesome", "countA": 104, "countB": 55 }
+{ "tweetid": 105i64, "user": { "screen_name": "EvanBarnes_217", "lang": "en", "friends_count": 42, "statuses_count": 239, "name": "Evan Barnes", "followers_count": 108 }, "sender_location": point("44.7,90.98"), "send_time": datetime("2008-07-27T10:10:00.000Z"), "referred_topics": {{ "sprint", "reachability" }}, "message_text": " like sprint its reachability is mind-blowing", "countA": 105, "countB": 3 }
+{ "tweetid": 106i64, "user": { "screen_name": "JulianeNorthey#34", "lang": "en", "friends_count": 69, "statuses_count": 94, "name": "Juliane Northey", "followers_count": 187 }, "sender_location": point("26.32,67.64"), "send_time": datetime("2007-06-26T10:10:00.000Z"), "referred_topics": {{ "sprint", "voice-clarity" }}, "message_text": " can't stand sprint the voice-clarity is terrible", "countA": 106, "countB": 127 }
+{ "tweetid": 107i64, "user": { "screen_name": "ShannahBailey$196", "lang": "en", "friends_count": 47, "statuses_count": 215, "name": "Shannah Bailey", "followers_count": 67 }, "sender_location": point("40.85,87.01"), "send_time": datetime("2009-10-07T10:10:00.000Z"), "referred_topics": {{ "verizon", "reachability" }}, "message_text": " love verizon the reachability is awesome:)", "countA": 107, "countB": 31 }
+{ "tweetid": 108i64, "user": { "screen_name": "GranvilleKnisely$497", "lang": "en", "friends_count": 57, "statuses_count": 117, "name": "Granville Knisely", "followers_count": 52 }, "sender_location": point("35.46,78.27"), "send_time": datetime("2006-06-06T10:10:00.000Z"), "referred_topics": {{ "samsung", "customization" }}, "message_text": " hate samsung its customization is horrible", "countA": 108, "countB": 148 }
+{ "tweetid": 109i64, "user": { "screen_name": "LeonardoJardine@763", "lang": "en", "friends_count": 48, "statuses_count": 415, "name": "Leonardo Jardine", "followers_count": 96 }, "sender_location": point("27.7,92.32"), "send_time": datetime("2010-12-15T10:10:00.000Z"), "referred_topics": {{ "verizon", "signal" }}, "message_text": " dislike verizon the signal is bad", "countA": 109, "countB": 29 }
+{ "tweetid": 110i64, "user": { "screen_name": "AuroraMcelroy@927", "lang": "en", "friends_count": 79, "statuses_count": 297, "name": "Aurora Mcelroy", "followers_count": 119 }, "sender_location": point("48.56,85.12"), "send_time": datetime("2005-06-14T10:10:00.000Z"), "referred_topics": {{ "motorola", "shortcut-menu" }}, "message_text": " dislike motorola the shortcut-menu is bad:(", "countA": 110, "countB": 157 }
+{ "tweetid": 111i64, "user": { "screen_name": "NoleneLeslie#166", "lang": "en", "friends_count": 30, "statuses_count": 3, "name": "Nolene Leslie", "followers_count": 18 }, "sender_location": point("31.07,78.53"), "send_time": datetime("2005-10-03T10:10:00.000Z"), "referred_topics": {{ "t-mobile", "platform" }}, "message_text": " like t-mobile its platform is good", "countA": 111, "countB": 50 }
+{ "tweetid": 112i64, "user": { "screen_name": "EusebioBeedell@329", "lang": "en", "friends_count": 94, "statuses_count": 341, "name": "Eusebio Beedell", "followers_count": 89 }, "sender_location": point("32.75,68.79"), "send_time": datetime("2007-08-15T10:10:00.000Z"), "referred_topics": {{ "verizon", "network" }}, "message_text": " can't stand verizon its network is terrible:(", "countA": 112, "countB": 30 }
+{ "tweetid": 113i64, "user": { "screen_name": "WoodySaltser$873", "lang": "en", "friends_count": 68, "statuses_count": 365, "name": "Woody Saltser", "followers_count": 132 }, "sender_location": point("37.57,88.05"), "send_time": datetime("2012-01-21T10:10:00.000Z"), "referred_topics": {{ "t-mobile", "voice-clarity" }}, "message_text": " love t-mobile its voice-clarity is awesome", "countA": 113, "countB": 177 }
+{ "tweetid": 114i64, "user": { "screen_name": "ReannaSeelig#553", "lang": "en", "friends_count": 31, "statuses_count": 291, "name": "Reanna Seelig", "followers_count": 175 }, "sender_location": point("42.87,72.38"), "send_time": datetime("2006-03-20T10:10:00.000Z"), "referred_topics": {{ "motorola", "signal" }}, "message_text": " dislike motorola the signal is OMG:(", "countA": 114, "countB": 59 }
+{ "tweetid": 115i64, "user": { "screen_name": "AllannahNapier@336", "lang": "en", "friends_count": 34, "statuses_count": 359, "name": "Allannah Napier", "followers_count": 50 }, "sender_location": point("31.29,88.73"), "send_time": datetime("2010-07-28T10:10:00.000Z"), "referred_topics": {{ "samsung", "wireless" }}, "message_text": " hate samsung the wireless is bad:(", "countA": 115, "countB": 175 }
+{ "tweetid": 116i64, "user": { "screen_name": "AlaynaOsteen_327", "lang": "en", "friends_count": 59, "statuses_count": 237, "name": "Alayna Osteen", "followers_count": 12 }, "sender_location": point("30.6,71.97"), "send_time": datetime("2007-07-25T10:10:00.000Z"), "referred_topics": {{ "verizon", "voicemail-service" }}, "message_text": " love verizon its voicemail-service is amazing:)", "countA": 116, "countB": 70 }
+{ "tweetid": 117i64, "user": { "screen_name": "LeticiaMillard#139", "lang": "en", "friends_count": 95, "statuses_count": 46, "name": "Leticia Millard", "followers_count": 72 }, "sender_location": point("26.53,73.37"), "send_time": datetime("2005-06-22T10:10:00.000Z"), "referred_topics": {{ "iphone", "3G" }}, "message_text": " dislike iphone its 3G is horrible", "countA": 117, "countB": 168 }
+{ "tweetid": 118i64, "user": { "screen_name": "WinifredMckee_639", "lang": "en", "friends_count": 48, "statuses_count": 442, "name": "Winifred Mckee", "followers_count": 199 }, "sender_location": point("27.51,76.65"), "send_time": datetime("2012-06-19T10:10:00.000Z"), "referred_topics": {{ "sprint", "reachability" }}, "message_text": " can't stand sprint the reachability is bad", "countA": 118, "countB": 70 }
+{ "tweetid": 119i64, "user": { "screen_name": "SungShea#585", "lang": "en", "friends_count": 38, "statuses_count": 193, "name": "Sung Shea", "followers_count": 149 }, "sender_location": point("28.86,83.73"), "send_time": datetime("2009-04-22T10:10:00.000Z"), "referred_topics": {{ "samsung", "customer-service" }}, "message_text": " can't stand samsung its customer-service is horrible:(", "countA": 119, "countB": 155 }
+{ "tweetid": 120i64, "user": { "screen_name": "BernadineSutton@199", "lang": "en", "friends_count": 72, "statuses_count": 46, "name": "Bernadine Sutton", "followers_count": 105 }, "sender_location": point("40.19,77.94"), "send_time": datetime("2007-11-12T10:10:00.000Z"), "referred_topics": {{ "sprint", "voice-clarity" }}, "message_text": " like sprint the voice-clarity is good:)", "countA": 120, "countB": 63 }
+{ "tweetid": 121i64, "user": { "screen_name": "DeedeeJerome#182", "lang": "en", "friends_count": 74, "statuses_count": 342, "name": "Deedee Jerome", "followers_count": 170 }, "sender_location": point("42.66,73.84"), "send_time": datetime("2012-07-03T10:10:00.000Z"), "referred_topics": {{ "sprint", "reachability" }}, "message_text": " can't stand sprint its reachability is horrible", "countA": 121, "countB": 163 }
+{ "tweetid": 122i64, "user": { "screen_name": "NigelPrechtl$759", "lang": "en", "friends_count": 10, "statuses_count": 133, "name": "Nigel Prechtl", "followers_count": 137 }, "sender_location": point("37.22,80.92"), "send_time": datetime("2012-01-05T10:10:00.000Z"), "referred_topics": {{ "at&t", "speed" }}, "message_text": " dislike at&t its speed is terrible", "countA": 122, "countB": 23 }
+{ "tweetid": 123i64, "user": { "screen_name": "KimmyWynne$198", "lang": "en", "friends_count": 16, "statuses_count": 40, "name": "Kimmy Wynne", "followers_count": 6 }, "sender_location": point("26.49,70.55"), "send_time": datetime("2008-10-22T10:10:00.000Z"), "referred_topics": {{ "t-mobile", "signal" }}, "message_text": " dislike t-mobile the signal is terrible", "countA": 123, "countB": 44 }
+{ "tweetid": 124i64, "user": { "screen_name": "ByronHarshman$352", "lang": "en", "friends_count": 26, "statuses_count": 133, "name": "Byron Harshman", "followers_count": 144 }, "sender_location": point("26.4,88.43"), "send_time": datetime("2012-03-21T10:10:00.000Z"), "referred_topics": {{ "samsung", "touch-screen" }}, "message_text": " dislike samsung the touch-screen is terrible", "countA": 124, "countB": 44 }
+{ "tweetid": 125i64, "user": { "screen_name": "PlacidPrevatt#865", "lang": "en", "friends_count": 3, "statuses_count": 493, "name": "Placid Prevatt", "followers_count": 10 }, "sender_location": point("43.09,84.0"), "send_time": datetime("2010-07-07T10:10:00.000Z"), "referred_topics": {{ "motorola", "voicemail-service" }}, "message_text": " love motorola its voicemail-service is amazing:)", "countA": 125, "countB": 7 }
+{ "tweetid": 126i64, "user": { "screen_name": "TranterGarneis_456", "lang": "en", "friends_count": 89, "statuses_count": 151, "name": "Tranter Garneis", "followers_count": 166 }, "sender_location": point("41.6,93.6"), "send_time": datetime("2007-08-11T10:10:00.000Z"), "referred_topics": {{ "iphone", "shortcut-menu" }}, "message_text": " like iphone its shortcut-menu is amazing:)", "countA": 126, "countB": 76 }
+{ "tweetid": 127i64, "user": { "screen_name": "DonyaWilliamson$23", "lang": "en", "friends_count": 62, "statuses_count": 325, "name": "Donya Williamson", "followers_count": 101 }, "sender_location": point("27.75,66.01"), "send_time": datetime("2005-11-02T10:10:00.000Z"), "referred_topics": {{ "verizon", "reachability" }}, "message_text": " can't stand verizon its reachability is OMG", "countA": 127, "countB": 184 }
+{ "tweetid": 128i64, "user": { "screen_name": "GalinaJoghs$90", "lang": "en", "friends_count": 61, "statuses_count": 86, "name": "Galina Joghs", "followers_count": 169 }, "sender_location": point("30.95,71.04"), "send_time": datetime("2010-06-01T10:10:00.000Z"), "referred_topics": {{ "motorola", "signal" }}, "message_text": " can't stand motorola its signal is horrible", "countA": 128, "countB": 24 }
+{ "tweetid": 129i64, "user": { "screen_name": "SamsonWerner#683", "lang": "en", "friends_count": 92, "statuses_count": 171, "name": "Samson Werner", "followers_count": 108 }, "sender_location": point("36.53,92.04"), "send_time": datetime("2009-08-18T10:10:00.000Z"), "referred_topics": {{ "motorola", "network" }}, "message_text": " hate motorola its network is terrible:(", "countA": 129, "countB": 80 }
+{ "tweetid": 130i64, "user": { "screen_name": "GabrielleMang#424", "lang": "en", "friends_count": 66, "statuses_count": 8, "name": "Gabrielle Mang", "followers_count": 80 }, "sender_location": point("36.74,96.64"), "send_time": datetime("2006-04-18T10:10:00.000Z"), "referred_topics": {{ "sprint", "plan" }}, "message_text": " love sprint its plan is amazing:)", "countA": 130, "countB": 157 }
+{ "tweetid": 131i64, "user": { "screen_name": "ZachariasBaldwin#74", "lang": "en", "friends_count": 5, "statuses_count": 205, "name": "Zacharias Baldwin", "followers_count": 87 }, "sender_location": point("25.44,72.7"), "send_time": datetime("2006-01-21T10:10:00.000Z"), "referred_topics": {{ "sprint", "platform" }}, "message_text": " like sprint the platform is amazing", "countA": 131, "countB": 192 }
+{ "tweetid": 132i64, "user": { "screen_name": "FanniePoorbaugh@315", "lang": "en", "friends_count": 59, "statuses_count": 441, "name": "Fannie Poorbaugh", "followers_count": 114 }, "sender_location": point("48.89,68.65"), "send_time": datetime("2005-05-07T10:10:00.000Z"), "referred_topics": {{ "verizon", "reachability" }}, "message_text": " hate verizon the reachability is terrible", "countA": 132, "countB": 142 }
+{ "tweetid": 133i64, "user": { "screen_name": "SandraTeagarden$747", "lang": "en", "friends_count": 60, "statuses_count": 353, "name": "Sandra Teagarden", "followers_count": 141 }, "sender_location": point("44.37,76.54"), "send_time": datetime("2008-05-25T10:10:00.000Z"), "referred_topics": {{ "at&t", "platform" }}, "message_text": " can't stand at&t its platform is bad", "countA": 133, "countB": 17 }
+{ "tweetid": 134i64, "user": { "screen_name": "SteveMayers_702", "lang": "en", "friends_count": 70, "statuses_count": 196, "name": "Steve Mayers", "followers_count": 22 }, "sender_location": point("41.52,91.39"), "send_time": datetime("2012-08-11T10:10:00.000Z"), "referred_topics": {{ "iphone", "speed" }}, "message_text": " love iphone its speed is amazing", "countA": 134, "countB": 86 }
+{ "tweetid": 135i64, "user": { "screen_name": "RosalynPullman@789", "lang": "en", "friends_count": 17, "statuses_count": 470, "name": "Rosalyn Pullman", "followers_count": 123 }, "sender_location": point("48.33,86.41"), "send_time": datetime("2009-12-08T10:10:00.000Z"), "referred_topics": {{ "motorola", "customization" }}, "message_text": " hate motorola its customization is bad:(", "countA": 135, "countB": 171 }
+{ "tweetid": 136i64, "user": { "screen_name": "LamarChauvin$832", "lang": "en", "friends_count": 21, "statuses_count": 234, "name": "Lamar Chauvin", "followers_count": 184 }, "sender_location": point("36.83,89.48"), "send_time": datetime("2011-06-26T10:10:00.000Z"), "referred_topics": {{ "samsung", "reachability" }}, "message_text": " love samsung its reachability is awesome:)", "countA": 136, "countB": 77 }
+{ "tweetid": 137i64, "user": { "screen_name": "EleaseReade#477", "lang": "en", "friends_count": 24, "statuses_count": 299, "name": "Elease Reade", "followers_count": 24 }, "sender_location": point("45.55,93.09"), "send_time": datetime("2012-07-19T10:10:00.000Z"), "referred_topics": {{ "at&t", "network" }}, "message_text": " hate at&t the network is bad:(", "countA": 137, "countB": 25 }
+{ "tweetid": 138i64, "user": { "screen_name": "LeviPhilbrick$328", "lang": "en", "friends_count": 73, "statuses_count": 77, "name": "Levi Philbrick", "followers_count": 179 }, "sender_location": point("33.51,68.88"), "send_time": datetime("2009-08-28T10:10:00.000Z"), "referred_topics": {{ "verizon", "shortcut-menu" }}, "message_text": " dislike verizon its shortcut-menu is horrible", "countA": 138, "countB": 5 }
+{ "tweetid": 139i64, "user": { "screen_name": "RaeburnNickolson_295", "lang": "en", "friends_count": 72, "statuses_count": 176, "name": "Raeburn Nickolson", "followers_count": 103 }, "sender_location": point("38.42,74.16"), "send_time": datetime("2008-05-28T10:10:00.000Z"), "referred_topics": {{ "at&t", "voicemail-service" }}, "message_text": " like at&t its voicemail-service is good:)", "countA": 139, "countB": 175 }
+{ "tweetid": 140i64, "user": { "screen_name": "NerissaBallou@177", "lang": "en", "friends_count": 17, "statuses_count": 447, "name": "Nerissa Ballou", "followers_count": 183 }, "sender_location": point("34.65,81.44"), "send_time": datetime("2008-07-27T10:10:00.000Z"), "referred_topics": {{ "at&t", "plan" }}, "message_text": " hate at&t its plan is OMG", "countA": 140, "countB": 192 }
+{ "tweetid": 141i64, "user": { "screen_name": "DanyelWalker#602", "lang": "en", "friends_count": 22, "statuses_count": 397, "name": "Danyel Walker", "followers_count": 154 }, "sender_location": point("40.38,78.39"), "send_time": datetime("2012-01-05T10:10:00.000Z"), "referred_topics": {{ "t-mobile", "3G" }}, "message_text": " hate t-mobile its 3G is OMG", "countA": 141, "countB": 9 }
+{ "tweetid": 142i64, "user": { "screen_name": "YaronLeichter_45", "lang": "en", "friends_count": 80, "statuses_count": 103, "name": "Yaron Leichter", "followers_count": 115 }, "sender_location": point("42.59,71.72"), "send_time": datetime("2010-04-24T10:10:00.000Z"), "referred_topics": {{ "verizon", "signal" }}, "message_text": " like verizon the signal is mind-blowing:)", "countA": 142, "countB": 130 }
+{ "tweetid": 143i64, "user": { "screen_name": "DeemerCable_599", "lang": "en", "friends_count": 26, "statuses_count": 371, "name": "Deemer Cable", "followers_count": 34 }, "sender_location": point("29.89,70.29"), "send_time": datetime("2012-08-18T10:10:00.000Z"), "referred_topics": {{ "motorola", "wireless" }}, "message_text": " like motorola the wireless is awesome", "countA": 143, "countB": 50 }
+{ "tweetid": 144i64, "user": { "screen_name": "AliaHay_860", "lang": "en", "friends_count": 34, "statuses_count": 470, "name": "Alia Hay", "followers_count": 111 }, "sender_location": point("46.39,96.22"), "send_time": datetime("2010-12-18T10:10:00.000Z"), "referred_topics": {{ "at&t", "shortcut-menu" }}, "message_text": " like at&t its shortcut-menu is amazing:)", "countA": 144, "countB": 184 }
+{ "tweetid": 145i64, "user": { "screen_name": "AdamMoore$384", "lang": "en", "friends_count": 42, "statuses_count": 198, "name": "Adam Moore", "followers_count": 17 }, "sender_location": point("27.99,84.55"), "send_time": datetime("2007-03-16T10:10:00.000Z"), "referred_topics": {{ "sprint", "network" }}, "message_text": " love sprint its network is good", "countA": 145, "countB": 162 }
+{ "tweetid": 146i64, "user": { "screen_name": "AileenSouthern$868", "lang": "en", "friends_count": 62, "statuses_count": 388, "name": "Aileen Southern", "followers_count": 131 }, "sender_location": point("30.85,66.62"), "send_time": datetime("2005-07-14T10:10:00.000Z"), "referred_topics": {{ "t-mobile", "signal" }}, "message_text": " like t-mobile the signal is amazing", "countA": 146, "countB": 102 }
+{ "tweetid": 147i64, "user": { "screen_name": "JewellWise_154", "lang": "en", "friends_count": 2, "statuses_count": 279, "name": "Jewell Wise", "followers_count": 107 }, "sender_location": point("46.72,83.98"), "send_time": datetime("2006-01-09T10:10:00.000Z"), "referred_topics": {{ "motorola", "plan" }}, "message_text": " hate motorola the plan is terrible:(", "countA": 147, "countB": 174 }
+{ "tweetid": 148i64, "user": { "screen_name": "DanielJowers#519", "lang": "en", "friends_count": 23, "statuses_count": 22, "name": "Daniel Jowers", "followers_count": 131 }, "sender_location": point("34.26,72.22"), "send_time": datetime("2008-07-22T10:10:00.000Z"), "referred_topics": {{ "motorola", "voice-clarity" }}, "message_text": " like motorola its voice-clarity is mind-blowing:)", "countA": 148, "countB": 6 }
+{ "tweetid": 149i64, "user": { "screen_name": "DillonWilliams_557", "lang": "en", "friends_count": 18, "statuses_count": 136, "name": "Dillon Williams", "followers_count": 35 }, "sender_location": point("46.63,97.38"), "send_time": datetime("2011-05-09T10:10:00.000Z"), "referred_topics": {{ "motorola", "network" }}, "message_text": " love motorola the network is good", "countA": 149, "countB": 20 }
+{ "tweetid": 150i64, "user": { "screen_name": "DerrickBullard$202", "lang": "en", "friends_count": 16, "statuses_count": 9, "name": "Derrick Bullard", "followers_count": 100 }, "sender_location": point("41.89,90.62"), "send_time": datetime("2012-08-05T10:10:00.000Z"), "referred_topics": {{ "t-mobile", "touch-screen" }}, "message_text": " like t-mobile its touch-screen is mind-blowing", "countA": 150, "countB": 145 }
+{ "tweetid": 151i64, "user": { "screen_name": "LuigiMcfall_976", "lang": "en", "friends_count": 31, "statuses_count": 215, "name": "Luigi Mcfall", "followers_count": 79 }, "sender_location": point("45.38,70.52"), "send_time": datetime("2005-11-27T10:10:00.000Z"), "referred_topics": {{ "motorola", "reachability" }}, "message_text": " hate motorola its reachability is OMG:(", "countA": 151, "countB": 43 }
+{ "tweetid": 152i64, "user": { "screen_name": "MartinPinney_858", "lang": "en", "friends_count": 21, "statuses_count": 465, "name": "Martin Pinney", "followers_count": 16 }, "sender_location": point("32.87,75.66"), "send_time": datetime("2007-10-12T10:10:00.000Z"), "referred_topics": {{ "at&t", "reachability" }}, "message_text": " hate at&t its reachability is terrible", "countA": 152, "countB": 56 }
+{ "tweetid": 153i64, "user": { "screen_name": "JackieAft_623", "lang": "en", "friends_count": 70, "statuses_count": 413, "name": "Jackie Aft", "followers_count": 138 }, "sender_location": point("29.9,73.29"), "send_time": datetime("2010-07-23T10:10:00.000Z"), "referred_topics": {{ "verizon", "voice-clarity" }}, "message_text": " like verizon the voice-clarity is amazing", "countA": 153, "countB": 154 }
+{ "tweetid": 154i64, "user": { "screen_name": "SherriWickes#118", "lang": "en", "friends_count": 20, "statuses_count": 31, "name": "Sherri Wickes", "followers_count": 59 }, "sender_location": point("39.2,79.2"), "send_time": datetime("2006-07-13T10:10:00.000Z"), "referred_topics": {{ "sprint", "network" }}, "message_text": " hate sprint the network is OMG:(", "countA": 154, "countB": 124 }
+{ "tweetid": 155i64, "user": { "screen_name": "CarlieCowher@103", "lang": "en", "friends_count": 81, "statuses_count": 127, "name": "Carlie Cowher", "followers_count": 184 }, "sender_location": point("30.3,76.43"), "send_time": datetime("2010-10-04T10:10:00.000Z"), "referred_topics": {{ "sprint", "voice-clarity" }}, "message_text": " can't stand sprint the voice-clarity is bad", "countA": 155, "countB": 39 }
+{ "tweetid": 156i64, "user": { "screen_name": "AndraWardle@74", "lang": "en", "friends_count": 41, "statuses_count": 35, "name": "Andra Wardle", "followers_count": 168 }, "sender_location": point("45.49,93.97"), "send_time": datetime("2009-02-18T10:10:00.000Z"), "referred_topics": {{ "t-mobile", "wireless" }}, "message_text": " love t-mobile its wireless is amazing:)", "countA": 156, "countB": 23 }
+{ "tweetid": 157i64, "user": { "screen_name": "KanishaPinney@150", "lang": "en", "friends_count": 89, "statuses_count": 315, "name": "Kanisha Pinney", "followers_count": 173 }, "sender_location": point("24.72,77.36"), "send_time": datetime("2005-06-10T10:10:00.000Z"), "referred_topics": {{ "verizon", "touch-screen" }}, "message_text": " like verizon the touch-screen is amazing", "countA": 157, "countB": 153 }
+{ "tweetid": 158i64, "user": { "screen_name": "GlyndaSchere@104", "lang": "en", "friends_count": 6, "statuses_count": 111, "name": "Glynda Schere", "followers_count": 120 }, "sender_location": point("33.86,67.49"), "send_time": datetime("2010-11-26T10:10:00.000Z"), "referred_topics": {{ "verizon", "reachability" }}, "message_text": " like verizon its reachability is amazing:)", "countA": 158, "countB": 96 }
+{ "tweetid": 159i64, "user": { "screen_name": "JenelleNehling@461", "lang": "en", "friends_count": 4, "statuses_count": 384, "name": "Jenelle Nehling", "followers_count": 57 }, "sender_location": point("32.65,89.38"), "send_time": datetime("2010-12-06T10:10:00.000Z"), "referred_topics": {{ "iphone", "shortcut-menu" }}, "message_text": " like iphone its shortcut-menu is good", "countA": 159, "countB": 113 }
+{ "tweetid": 160i64, "user": { "screen_name": "DelWheeler@286", "lang": "en", "friends_count": 23, "statuses_count": 403, "name": "Del Wheeler", "followers_count": 177 }, "sender_location": point("39.39,78.05"), "send_time": datetime("2011-07-23T10:10:00.000Z"), "referred_topics": {{ "samsung", "platform" }}, "message_text": " love samsung the platform is mind-blowing", "countA": 160, "countB": 163 }
+{ "tweetid": 161i64, "user": { "screen_name": "TrinityCowart@360", "lang": "en", "friends_count": 85, "statuses_count": 204, "name": "Trinity Cowart", "followers_count": 145 }, "sender_location": point("32.11,76.64"), "send_time": datetime("2010-10-03T10:10:00.000Z"), "referred_topics": {{ "t-mobile", "wireless" }}, "message_text": " like t-mobile its wireless is amazing:)", "countA": 161, "countB": 62 }
+{ "tweetid": 162i64, "user": { "screen_name": "HudsonBasmanoff_348", "lang": "en", "friends_count": 3, "statuses_count": 394, "name": "Hudson Basmanoff", "followers_count": 114 }, "sender_location": point("39.24,78.13"), "send_time": datetime("2007-09-05T10:10:00.000Z"), "referred_topics": {{ "motorola", "wireless" }}, "message_text": " can't stand motorola its wireless is OMG:(", "countA": 162, "countB": 57 }
+{ "tweetid": 163i64, "user": { "screen_name": "MatthewPowers_801", "lang": "en", "friends_count": 2, "statuses_count": 203, "name": "Matthew Powers", "followers_count": 199 }, "sender_location": point("33.79,69.57"), "send_time": datetime("2012-04-05T10:10:00.000Z"), "referred_topics": {{ "at&t", "customer-service" }}, "message_text": " love at&t its customer-service is awesome", "countA": 163, "countB": 115 }
+{ "tweetid": 164i64, "user": { "screen_name": "TitaniaKern$100", "lang": "en", "friends_count": 98, "statuses_count": 300, "name": "Titania Kern", "followers_count": 118 }, "sender_location": point("45.86,67.64"), "send_time": datetime("2005-11-04T10:10:00.000Z"), "referred_topics": {{ "at&t", "shortcut-menu" }}, "message_text": " love at&t the shortcut-menu is amazing", "countA": 164, "countB": 148 }
+{ "tweetid": 165i64, "user": { "screen_name": "EhtelCrissman#778", "lang": "en", "friends_count": 33, "statuses_count": 286, "name": "Ehtel Crissman", "followers_count": 63 }, "sender_location": point("32.98,82.49"), "send_time": datetime("2011-08-22T10:10:00.000Z"), "referred_topics": {{ "at&t", "platform" }}, "message_text": " like at&t its platform is good:)", "countA": 165, "countB": 127 }
+{ "tweetid": 166i64, "user": { "screen_name": "WilletteLeslie@682", "lang": "en", "friends_count": 38, "statuses_count": 491, "name": "Willette Leslie", "followers_count": 75 }, "sender_location": point("32.57,84.97"), "send_time": datetime("2012-04-18T10:10:00.000Z"), "referred_topics": {{ "verizon", "reachability" }}, "message_text": " like verizon its reachability is mind-blowing", "countA": 166, "countB": 162 }
+{ "tweetid": 167i64, "user": { "screen_name": "DarellHincken_722", "lang": "en", "friends_count": 33, "statuses_count": 111, "name": "Darell Hincken", "followers_count": 74 }, "sender_location": point("48.57,77.77"), "send_time": datetime("2008-06-27T10:10:00.000Z"), "referred_topics": {{ "t-mobile", "speed" }}, "message_text": " love t-mobile its speed is good:)", "countA": 167, "countB": 93 }
+{ "tweetid": 168i64, "user": { "screen_name": "DuaneKing@956", "lang": "en", "friends_count": 5, "statuses_count": 44, "name": "Duane King", "followers_count": 169 }, "sender_location": point("31.26,68.61"), "send_time": datetime("2011-03-24T10:10:00.000Z"), "referred_topics": {{ "sprint", "touch-screen" }}, "message_text": " like sprint its touch-screen is mind-blowing:)", "countA": 168, "countB": 174 }
+{ "tweetid": 169i64, "user": { "screen_name": "AmbroseKeilbach$300", "lang": "en", "friends_count": 76, "statuses_count": 278, "name": "Ambrose Keilbach", "followers_count": 54 }, "sender_location": point("29.75,71.35"), "send_time": datetime("2012-02-01T10:10:00.000Z"), "referred_topics": {{ "sprint", "signal" }}, "message_text": " can't stand sprint its signal is horrible", "countA": 169, "countB": 129 }
+{ "tweetid": 170i64, "user": { "screen_name": "KarlBrooks#97", "lang": "en", "friends_count": 76, "statuses_count": 150, "name": "Karl Brooks", "followers_count": 117 }, "sender_location": point("30.77,85.78"), "send_time": datetime("2006-09-16T10:10:00.000Z"), "referred_topics": {{ "motorola", "plan" }}, "message_text": " hate motorola the plan is horrible", "countA": 170, "countB": 174 }
+{ "tweetid": 171i64, "user": { "screen_name": "ShainaMayers$261", "lang": "en", "friends_count": 76, "statuses_count": 240, "name": "Shaina Mayers", "followers_count": 194 }, "sender_location": point("26.11,78.33"), "send_time": datetime("2005-06-22T10:10:00.000Z"), "referred_topics": {{ "sprint", "voicemail-service" }}, "message_text": " love sprint its voicemail-service is mind-blowing:)", "countA": 171, "countB": 69 }
+{ "tweetid": 172i64, "user": { "screen_name": "LakeshaPery_35", "lang": "en", "friends_count": 58, "statuses_count": 300, "name": "Lakesha Pery", "followers_count": 51 }, "sender_location": point("38.45,75.31"), "send_time": datetime("2009-12-20T10:10:00.000Z"), "referred_topics": {{ "motorola", "3G" }}, "message_text": " like motorola its 3G is good:)", "countA": 172, "countB": 127 }
+{ "tweetid": 173i64, "user": { "screen_name": "DoranMingle#901", "lang": "en", "friends_count": 3, "statuses_count": 302, "name": "Doran Mingle", "followers_count": 152 }, "sender_location": point("47.76,91.28"), "send_time": datetime("2009-06-07T10:10:00.000Z"), "referred_topics": {{ "at&t", "customization" }}, "message_text": " dislike at&t the customization is OMG", "countA": 173, "countB": 41 }
+{ "tweetid": 174i64, "user": { "screen_name": "AmadaHatcher#710", "lang": "en", "friends_count": 3, "statuses_count": 12, "name": "Amada Hatcher", "followers_count": 193 }, "sender_location": point("28.64,89.42"), "send_time": datetime("2011-09-16T10:10:00.000Z"), "referred_topics": {{ "samsung", "network" }}, "message_text": " hate samsung the network is OMG", "countA": 174, "countB": 0 }
+{ "tweetid": 175i64, "user": { "screen_name": "CorianderMoon@658", "lang": "en", "friends_count": 28, "statuses_count": 117, "name": "Coriander Moon", "followers_count": 77 }, "sender_location": point("43.82,87.23"), "send_time": datetime("2011-03-26T10:10:00.000Z"), "referred_topics": {{ "samsung", "customization" }}, "message_text": " dislike samsung the customization is bad:(", "countA": 175, "countB": 5 }
+{ "tweetid": 176i64, "user": { "screen_name": "PhilomenaEiford#608", "lang": "en", "friends_count": 53, "statuses_count": 467, "name": "Philomena Eiford", "followers_count": 80 }, "sender_location": point("30.06,71.08"), "send_time": datetime("2006-05-05T10:10:00.000Z"), "referred_topics": {{ "motorola", "signal" }}, "message_text": " like motorola the signal is amazing", "countA": 176, "countB": 89 }
+{ "tweetid": 177i64, "user": { "screen_name": "JacobCongdon$162", "lang": "en", "friends_count": 61, "statuses_count": 161, "name": "Jacob Congdon", "followers_count": 19 }, "sender_location": point("36.36,78.43"), "send_time": datetime("2006-12-10T10:10:00.000Z"), "referred_topics": {{ "samsung", "platform" }}, "message_text": " dislike samsung its platform is horrible", "countA": 177, "countB": 15 }
+{ "tweetid": 178i64, "user": { "screen_name": "GeorgeRichards$777", "lang": "en", "friends_count": 12, "statuses_count": 213, "name": "George Richards", "followers_count": 72 }, "sender_location": point("44.78,90.69"), "send_time": datetime("2006-03-17T10:10:00.000Z"), "referred_topics": {{ "verizon", "speed" }}, "message_text": " can't stand verizon its speed is horrible", "countA": 178, "countB": 64 }
+{ "tweetid": 179i64, "user": { "screen_name": "BridgerHamilton@431", "lang": "en", "friends_count": 51, "statuses_count": 396, "name": "Bridger Hamilton", "followers_count": 110 }, "sender_location": point("32.82,81.54"), "send_time": datetime("2008-12-23T10:10:00.000Z"), "referred_topics": {{ "verizon", "plan" }}, "message_text": " love verizon the plan is awesome", "countA": 179, "countB": 141 }
+{ "tweetid": 180i64, "user": { "screen_name": "FemieLucy@34", "lang": "en", "friends_count": 68, "statuses_count": 221, "name": "Femie Lucy", "followers_count": 11 }, "sender_location": point("31.58,82.78"), "send_time": datetime("2010-02-07T10:10:00.000Z"), "referred_topics": {{ "iphone", "customization" }}, "message_text": " hate iphone its customization is OMG", "countA": 180, "countB": 191 }
+{ "tweetid": 181i64, "user": { "screen_name": "JodiNapier@338", "lang": "en", "friends_count": 96, "statuses_count": 467, "name": "Jodi Napier", "followers_count": 69 }, "sender_location": point("26.14,78.5"), "send_time": datetime("2007-01-06T10:10:00.000Z"), "referred_topics": {{ "verizon", "plan" }}, "message_text": " love verizon the plan is mind-blowing", "countA": 181, "countB": 13 }
+{ "tweetid": 182i64, "user": { "screen_name": "MitsueRawls_424", "lang": "en", "friends_count": 91, "statuses_count": 70, "name": "Mitsue Rawls", "followers_count": 193 }, "sender_location": point("47.77,70.41"), "send_time": datetime("2007-04-12T10:10:00.000Z"), "referred_topics": {{ "iphone", "customer-service" }}, "message_text": " dislike iphone its customer-service is OMG", "countA": 182, "countB": 59 }
+{ "tweetid": 183i64, "user": { "screen_name": "DeshawnAultman_690", "lang": "en", "friends_count": 49, "statuses_count": 330, "name": "Deshawn Aultman", "followers_count": 39 }, "sender_location": point("40.65,79.37"), "send_time": datetime("2005-08-11T10:10:00.000Z"), "referred_topics": {{ "sprint", "shortcut-menu" }}, "message_text": " like sprint the shortcut-menu is amazing:)", "countA": 183, "countB": 199 }
+{ "tweetid": 184i64, "user": { "screen_name": "BradfordEiford#127", "lang": "en", "friends_count": 90, "statuses_count": 425, "name": "Bradford Eiford", "followers_count": 10 }, "sender_location": point("40.85,91.17"), "send_time": datetime("2005-09-16T10:10:00.000Z"), "referred_topics": {{ "iphone", "voicemail-service" }}, "message_text": " dislike iphone its voicemail-service is horrible:(", "countA": 184, "countB": 141 }
+{ "tweetid": 185i64, "user": { "screen_name": "MadelynGaskins_356", "lang": "en", "friends_count": 48, "statuses_count": 455, "name": "Madelyn Gaskins", "followers_count": 66 }, "sender_location": point("33.81,88.32"), "send_time": datetime("2011-10-22T10:10:00.000Z"), "referred_topics": {{ "at&t", "voicemail-service" }}, "message_text": " love at&t its voicemail-service is good:)", "countA": 185, "countB": 189 }
+{ "tweetid": 186i64, "user": { "screen_name": "SophiaMang@768", "lang": "en", "friends_count": 28, "statuses_count": 86, "name": "Sophia Mang", "followers_count": 125 }, "sender_location": point("37.45,68.47"), "send_time": datetime("2010-08-16T10:10:00.000Z"), "referred_topics": {{ "iphone", "touch-screen" }}, "message_text": " love iphone its touch-screen is awesome:)", "countA": 186, "countB": 149 }
+{ "tweetid": 187i64, "user": { "screen_name": "VernonKnisely#170", "lang": "en", "friends_count": 63, "statuses_count": 406, "name": "Vernon Knisely", "followers_count": 31 }, "sender_location": point("32.93,94.65"), "send_time": datetime("2006-03-22T10:10:00.000Z"), "referred_topics": {{ "sprint", "reachability" }}, "message_text": " love sprint the reachability is awesome", "countA": 187, "countB": 98 }
+{ "tweetid": 188i64, "user": { "screen_name": "AmyEndsley@85", "lang": "en", "friends_count": 83, "statuses_count": 43, "name": "Amy Endsley", "followers_count": 7 }, "sender_location": point("27.33,82.34"), "send_time": datetime("2005-01-11T10:10:00.000Z"), "referred_topics": {{ "at&t", "customization" }}, "message_text": " love at&t its customization is good", "countA": 188, "countB": 48 }
+{ "tweetid": 189i64, "user": { "screen_name": "AntonChristner#166", "lang": "en", "friends_count": 12, "statuses_count": 10, "name": "Anton Christner", "followers_count": 66 }, "sender_location": point("25.29,89.55"), "send_time": datetime("2006-11-22T10:10:00.000Z"), "referred_topics": {{ "motorola", "wireless" }}, "message_text": " can't stand motorola its wireless is terrible:(", "countA": 189, "countB": 160 }
+{ "tweetid": 190i64, "user": { "screen_name": "DeshawnHarris#34", "lang": "en", "friends_count": 32, "statuses_count": 488, "name": "Deshawn Harris", "followers_count": 178 }, "sender_location": point("45.46,76.04"), "send_time": datetime("2007-05-13T10:10:00.000Z"), "referred_topics": {{ "samsung", "customization" }}, "message_text": " like samsung the customization is awesome:)", "countA": 190, "countB": 86 }
+{ "tweetid": 191i64, "user": { "screen_name": "MarioHolts_870", "lang": "en", "friends_count": 20, "statuses_count": 192, "name": "Mario Holts", "followers_count": 71 }, "sender_location": point("29.69,71.42"), "send_time": datetime("2005-09-15T10:10:00.000Z"), "referred_topics": {{ "iphone", "speed" }}, "message_text": " hate iphone the speed is horrible:(", "countA": 191, "countB": 150 }
+{ "tweetid": 192i64, "user": { "screen_name": "DeanHall#220", "lang": "en", "friends_count": 55, "statuses_count": 236, "name": "Dean Hall", "followers_count": 68 }, "sender_location": point("48.12,72.0"), "send_time": datetime("2006-11-27T10:10:00.000Z"), "referred_topics": {{ "sprint", "platform" }}, "message_text": " love sprint the platform is awesome", "countA": 192, "countB": 199 }
+{ "tweetid": 193i64, "user": { "screen_name": "LoanClarke_206", "lang": "en", "friends_count": 32, "statuses_count": 173, "name": "Loan Clarke", "followers_count": 186 }, "sender_location": point("45.39,96.01"), "send_time": datetime("2009-05-15T10:10:00.000Z"), "referred_topics": {{ "verizon", "customization" }}, "message_text": " can't stand verizon its customization is horrible:(", "countA": 193, "countB": 147 }
+{ "tweetid": 194i64, "user": { "screen_name": "DonnetteGoodman@627", "lang": "en", "friends_count": 61, "statuses_count": 202, "name": "Donnette Goodman", "followers_count": 106 }, "sender_location": point("44.72,73.13"), "send_time": datetime("2005-04-27T10:10:00.000Z"), "referred_topics": {{ "t-mobile", "plan" }}, "message_text": " love t-mobile its plan is good", "countA": 194, "countB": 142 }
+{ "tweetid": 195i64, "user": { "screen_name": "TamekaPorter#315", "lang": "en", "friends_count": 79, "statuses_count": 63, "name": "Tameka Porter", "followers_count": 7 }, "sender_location": point("37.68,81.78"), "send_time": datetime("2006-06-24T10:10:00.000Z"), "referred_topics": {{ "samsung", "wireless" }}, "message_text": " like samsung its wireless is good", "countA": 195, "countB": 126 }
+{ "tweetid": 196i64, "user": { "screen_name": "GarlandClark@425", "lang": "en", "friends_count": 15, "statuses_count": 375, "name": "Garland Clark", "followers_count": 24 }, "sender_location": point("44.9,70.1"), "send_time": datetime("2006-01-08T10:10:00.000Z"), "referred_topics": {{ "sprint", "touch-screen" }}, "message_text": " hate sprint the touch-screen is OMG:(", "countA": 196, "countB": 197 }
+{ "tweetid": 197i64, "user": { "screen_name": "RupertSanner$868", "lang": "en", "friends_count": 49, "statuses_count": 414, "name": "Rupert Sanner", "followers_count": 189 }, "sender_location": point("40.45,94.94"), "send_time": datetime("2012-06-20T10:10:00.000Z"), "referred_topics": {{ "iphone", "customer-service" }}, "message_text": " can't stand iphone the customer-service is terrible:(", "countA": 197, "countB": 195 }
+{ "tweetid": 198i64, "user": { "screen_name": "JenZoucks#841", "lang": "en", "friends_count": 99, "statuses_count": 73, "name": "Jen Zoucks", "followers_count": 71 }, "sender_location": point("38.77,70.33"), "send_time": datetime("2010-07-07T10:10:00.000Z"), "referred_topics": {{ "iphone", "signal" }}, "message_text": " like iphone its signal is good", "countA": 198, "countB": 94 }
+{ "tweetid": 199i64, "user": { "screen_name": "IsmaelLlora@529", "lang": "en", "friends_count": 63, "statuses_count": 239, "name": "Ismael Llora", "followers_count": 135 }, "sender_location": point("35.31,82.71"), "send_time": datetime("2007-03-19T10:10:00.000Z"), "referred_topics": {{ "at&t", "platform" }}, "message_text": " like at&t its platform is amazing:)", "countA": 199, "countB": 172 }
+{ "tweetid": 200i64, "user": { "screen_name": "JenniferHoltzer_459", "lang": "en", "friends_count": 93, "statuses_count": 172, "name": "Jennifer Holtzer", "followers_count": 51 }, "sender_location": point("30.44,81.57"), "send_time": datetime("2007-11-24T10:10:00.000Z"), "referred_topics": {{ "at&t", "wireless" }}, "message_text": " love at&t the wireless is amazing", "countA": 200, "countB": 20 }
+{ "tweetid": 201i64, "user": { "screen_name": "EvanJardine$78", "lang": "en", "friends_count": 80, "statuses_count": 349, "name": "Evan Jardine", "followers_count": 155 }, "sender_location": point("39.12,68.0"), "send_time": datetime("2010-01-13T10:10:00.000Z"), "referred_topics": {{ "t-mobile", "signal" }}, "message_text": " like t-mobile its signal is awesome:)", "countA": 201, "countB": 65 }
+{ "tweetid": 202i64, "user": { "screen_name": "KerenBard_268", "lang": "en", "friends_count": 28, "statuses_count": 348, "name": "Keren Bard", "followers_count": 158 }, "sender_location": point("32.72,77.86"), "send_time": datetime("2008-07-18T10:10:00.000Z"), "referred_topics": {{ "sprint", "platform" }}, "message_text": " love sprint its platform is awesome:)", "countA": 202, "countB": 117 }
+{ "tweetid": 203i64, "user": { "screen_name": "GilbertLosey#710", "lang": "en", "friends_count": 67, "statuses_count": 141, "name": "Gilbert Losey", "followers_count": 192 }, "sender_location": point("44.66,84.32"), "send_time": datetime("2011-09-27T10:10:00.000Z"), "referred_topics": {{ "at&t", "signal" }}, "message_text": " dislike at&t its signal is horrible", "countA": 203, "countB": 182 }
+{ "tweetid": 204i64, "user": { "screen_name": "TawnyGraham_816", "lang": "en", "friends_count": 63, "statuses_count": 13, "name": "Tawny Graham", "followers_count": 155 }, "sender_location": point("43.08,86.89"), "send_time": datetime("2012-05-10T10:10:00.000Z"), "referred_topics": {{ "verizon", "touch-screen" }}, "message_text": " dislike verizon its touch-screen is terrible", "countA": 204, "countB": 104 }
+{ "tweetid": 205i64, "user": { "screen_name": "LamontWilkins_977", "lang": "en", "friends_count": 19, "statuses_count": 102, "name": "Lamont Wilkins", "followers_count": 127 }, "sender_location": point("31.77,87.68"), "send_time": datetime("2005-04-12T10:10:00.000Z"), "referred_topics": {{ "samsung", "3G" }}, "message_text": " dislike samsung its 3G is bad", "countA": 205, "countB": 57 }
+{ "tweetid": 206i64, "user": { "screen_name": "VincentRiggle$122", "lang": "en", "friends_count": 99, "statuses_count": 105, "name": "Vincent Riggle", "followers_count": 173 }, "sender_location": point("34.28,74.71"), "send_time": datetime("2007-05-06T10:10:00.000Z"), "referred_topics": {{ "motorola", "wireless" }}, "message_text": " like motorola the wireless is amazing:)", "countA": 206, "countB": 3 }
+{ "tweetid": 207i64, "user": { "screen_name": "AdelaJones_400", "lang": "en", "friends_count": 74, "statuses_count": 121, "name": "Adela Jones", "followers_count": 161 }, "sender_location": point("28.5,94.52"), "send_time": datetime("2010-01-20T10:10:00.000Z"), "referred_topics": {{ "t-mobile", "platform" }}, "message_text": " like t-mobile the platform is good:)", "countA": 207, "countB": 110 }
+{ "tweetid": 208i64, "user": { "screen_name": "PrestonLittle$360", "lang": "en", "friends_count": 61, "statuses_count": 430, "name": "Preston Little", "followers_count": 115 }, "sender_location": point("35.79,78.52"), "send_time": datetime("2010-03-01T10:10:00.000Z"), "referred_topics": {{ "sprint", "speed" }}, "message_text": " dislike sprint the speed is terrible:(", "countA": 208, "countB": 149 }
+{ "tweetid": 209i64, "user": { "screen_name": "TaraAnderson#214", "lang": "en", "friends_count": 60, "statuses_count": 219, "name": "Tara Anderson", "followers_count": 110 }, "sender_location": point("34.04,79.5"), "send_time": datetime("2006-12-05T10:10:00.000Z"), "referred_topics": {{ "motorola", "plan" }}, "message_text": " dislike motorola its plan is OMG", "countA": 209, "countB": 164 }
+{ "tweetid": 210i64, "user": { "screen_name": "DeshawnWallace$305", "lang": "en", "friends_count": 29, "statuses_count": 279, "name": "Deshawn Wallace", "followers_count": 27 }, "sender_location": point("39.49,76.58"), "send_time": datetime("2011-01-05T10:10:00.000Z"), "referred_topics": {{ "t-mobile", "customization" }}, "message_text": " dislike t-mobile the customization is OMG", "countA": 210, "countB": 70 }
+{ "tweetid": 211i64, "user": { "screen_name": "OliFisher$694", "lang": "en", "friends_count": 39, "statuses_count": 131, "name": "Oli Fisher", "followers_count": 101 }, "sender_location": point("44.91,94.72"), "send_time": datetime("2010-04-10T10:10:00.000Z"), "referred_topics": {{ "iphone", "3G" }}, "message_text": " love iphone the 3G is mind-blowing", "countA": 211, "countB": 95 }
+{ "tweetid": 212i64, "user": { "screen_name": "LizaMathews#376", "lang": "en", "friends_count": 40, "statuses_count": 107, "name": "Liza Mathews", "followers_count": 70 }, "sender_location": point("46.01,77.85"), "send_time": datetime("2009-07-20T10:10:00.000Z"), "referred_topics": {{ "verizon", "plan" }}, "message_text": " like verizon the plan is mind-blowing:)", "countA": 212, "countB": 189 }
+{ "tweetid": 213i64, "user": { "screen_name": "MylesRahl#433", "lang": "en", "friends_count": 51, "statuses_count": 144, "name": "Myles Rahl", "followers_count": 90 }, "sender_location": point("45.41,95.69"), "send_time": datetime("2006-04-03T10:10:00.000Z"), "referred_topics": {{ "verizon", "3G" }}, "message_text": " love verizon its 3G is mind-blowing:)", "countA": 213, "countB": 190 }
+{ "tweetid": 214i64, "user": { "screen_name": "BertEve@968", "lang": "en", "friends_count": 84, "statuses_count": 110, "name": "Bert Eve", "followers_count": 122 }, "sender_location": point("43.25,87.82"), "send_time": datetime("2009-11-07T10:10:00.000Z"), "referred_topics": {{ "at&t", "voice-command" }}, "message_text": " dislike at&t the voice-command is terrible:(", "countA": 214, "countB": 142 }
+{ "tweetid": 215i64, "user": { "screen_name": "MelissaLaurenzi_383", "lang": "en", "friends_count": 78, "statuses_count": 318, "name": "Melissa Laurenzi", "followers_count": 19 }, "sender_location": point("37.82,86.96"), "send_time": datetime("2010-05-14T10:10:00.000Z"), "referred_topics": {{ "iphone", "customer-service" }}, "message_text": " like iphone its customer-service is mind-blowing", "countA": 215, "countB": 67 }
+{ "tweetid": 216i64, "user": { "screen_name": "ReneaPennington#175", "lang": "en", "friends_count": 42, "statuses_count": 16, "name": "Renea Pennington", "followers_count": 52 }, "sender_location": point("39.06,78.62"), "send_time": datetime("2006-05-23T10:10:00.000Z"), "referred_topics": {{ "iphone", "3G" }}, "message_text": " dislike iphone its 3G is bad:(", "countA": 216, "countB": 50 }
+{ "tweetid": 217i64, "user": { "screen_name": "UrsulaMitchell@26", "lang": "en", "friends_count": 50, "statuses_count": 150, "name": "Ursula Mitchell", "followers_count": 191 }, "sender_location": point("34.02,71.3"), "send_time": datetime("2005-03-26T10:10:00.000Z"), "referred_topics": {{ "iphone", "customer-service" }}, "message_text": " like iphone its customer-service is awesome", "countA": 217, "countB": 154 }
+{ "tweetid": 218i64, "user": { "screen_name": "WillyLambert_669", "lang": "en", "friends_count": 6, "statuses_count": 44, "name": "Willy Lambert", "followers_count": 60 }, "sender_location": point("32.84,73.25"), "send_time": datetime("2011-10-04T10:10:00.000Z"), "referred_topics": {{ "verizon", "customization" }}, "message_text": " like verizon the customization is amazing", "countA": 218, "countB": 135 }
+{ "tweetid": 219i64, "user": { "screen_name": "ChristineLaurence_912", "lang": "en", "friends_count": 77, "statuses_count": 458, "name": "Christine Laurence", "followers_count": 166 }, "sender_location": point("35.39,90.54"), "send_time": datetime("2009-12-01T10:10:00.000Z"), "referred_topics": {{ "at&t", "customization" }}, "message_text": " like at&t the customization is awesome:)", "countA": 219, "countB": 170 }
+{ "tweetid": 220i64, "user": { "screen_name": "JedFiddler_540", "lang": "en", "friends_count": 11, "statuses_count": 264, "name": "Jed Fiddler", "followers_count": 48 }, "sender_location": point("44.11,91.45"), "send_time": datetime("2009-10-10T10:10:00.000Z"), "referred_topics": {{ "at&t", "voicemail-service" }}, "message_text": " like at&t its voicemail-service is awesome:)", "countA": 220, "countB": 188 }
+{ "tweetid": 221i64, "user": { "screen_name": "RubinMueller_263", "lang": "en", "friends_count": 7, "statuses_count": 374, "name": "Rubin Mueller", "followers_count": 77 }, "sender_location": point("25.65,78.68"), "send_time": datetime("2006-09-20T10:10:00.000Z"), "referred_topics": {{ "sprint", "signal" }}, "message_text": " love sprint its signal is amazing", "countA": 221, "countB": 185 }
+{ "tweetid": 222i64, "user": { "screen_name": "JeniWeldi#255", "lang": "en", "friends_count": 71, "statuses_count": 259, "name": "Jeni Weldi", "followers_count": 63 }, "sender_location": point("27.21,67.74"), "send_time": datetime("2009-11-24T10:10:00.000Z"), "referred_topics": {{ "iphone", "customization" }}, "message_text": " like iphone its customization is mind-blowing:)", "countA": 222, "countB": 51 }
+{ "tweetid": 223i64, "user": { "screen_name": "RochelleSaline@265", "lang": "en", "friends_count": 18, "statuses_count": 319, "name": "Rochelle Saline", "followers_count": 11 }, "sender_location": point("33.44,67.08"), "send_time": datetime("2007-10-23T10:10:00.000Z"), "referred_topics": {{ "iphone", "voice-command" }}, "message_text": " can't stand iphone its voice-command is OMG", "countA": 223, "countB": 84 }
+{ "tweetid": 224i64, "user": { "screen_name": "TabbyEckhardstein@204", "lang": "en", "friends_count": 5, "statuses_count": 207, "name": "Tabby Eckhardstein", "followers_count": 5 }, "sender_location": point("24.33,84.9"), "send_time": datetime("2005-02-01T10:10:00.000Z"), "referred_topics": {{ "samsung", "speed" }}, "message_text": " hate samsung its speed is horrible", "countA": 224, "countB": 192 }
+{ "tweetid": 225i64, "user": { "screen_name": "FranklynBurns$23", "lang": "en", "friends_count": 73, "statuses_count": 475, "name": "Franklyn Burns", "followers_count": 131 }, "sender_location": point("26.5,94.14"), "send_time": datetime("2007-08-19T10:10:00.000Z"), "referred_topics": {{ "motorola", "reachability" }}, "message_text": " love motorola its reachability is good", "countA": 225, "countB": 65 }
+{ "tweetid": 226i64, "user": { "screen_name": "CorianderFischer#204", "lang": "en", "friends_count": 4, "statuses_count": 205, "name": "Coriander Fischer", "followers_count": 30 }, "sender_location": point("46.59,73.39"), "send_time": datetime("2010-03-13T10:10:00.000Z"), "referred_topics": {{ "motorola", "reachability" }}, "message_text": " can't stand motorola its reachability is horrible", "countA": 226, "countB": 73 }
+{ "tweetid": 227i64, "user": { "screen_name": "EmikoBarth$856", "lang": "en", "friends_count": 28, "statuses_count": 7, "name": "Emiko Barth", "followers_count": 98 }, "sender_location": point("42.43,97.13"), "send_time": datetime("2005-03-23T10:10:00.000Z"), "referred_topics": {{ "verizon", "reachability" }}, "message_text": " can't stand verizon the reachability is bad:(", "countA": 227, "countB": 184 }
+{ "tweetid": 228i64, "user": { "screen_name": "LavoneStroh$831", "lang": "en", "friends_count": 53, "statuses_count": 2, "name": "Lavone Stroh", "followers_count": 44 }, "sender_location": point("32.04,66.17"), "send_time": datetime("2011-04-25T10:10:00.000Z"), "referred_topics": {{ "t-mobile", "touch-screen" }}, "message_text": " love t-mobile its touch-screen is awesome:)", "countA": 228, "countB": 38 }
+{ "tweetid": 229i64, "user": { "screen_name": "ShantelLaurence@745", "lang": "en", "friends_count": 78, "statuses_count": 195, "name": "Shantel Laurence", "followers_count": 124 }, "sender_location": point("46.58,97.58"), "send_time": datetime("2007-12-02T10:10:00.000Z"), "referred_topics": {{ "iphone", "wireless" }}, "message_text": " love iphone its wireless is awesome:)", "countA": 229, "countB": 26 }
+{ "tweetid": 230i64, "user": { "screen_name": "PiedadMosser@971", "lang": "en", "friends_count": 84, "statuses_count": 80, "name": "Piedad Mosser", "followers_count": 198 }, "sender_location": point("40.44,70.59"), "send_time": datetime("2005-06-27T10:10:00.000Z"), "referred_topics": {{ "motorola", "wireless" }}, "message_text": " hate motorola the wireless is bad", "countA": 230, "countB": 46 }
+{ "tweetid": 231i64, "user": { "screen_name": "CorrieHindman$963", "lang": "en", "friends_count": 54, "statuses_count": 78, "name": "Corrie Hindman", "followers_count": 180 }, "sender_location": point("26.04,77.36"), "send_time": datetime("2012-03-07T10:10:00.000Z"), "referred_topics": {{ "sprint", "wireless" }}, "message_text": " like sprint its wireless is mind-blowing:)", "countA": 231, "countB": 77 }
+{ "tweetid": 232i64, "user": { "screen_name": "DignaPorter_932", "lang": "en", "friends_count": 63, "statuses_count": 278, "name": "Digna Porter", "followers_count": 139 }, "sender_location": point("41.76,97.51"), "send_time": datetime("2009-12-01T10:10:00.000Z"), "referred_topics": {{ "t-mobile", "signal" }}, "message_text": " love t-mobile the signal is mind-blowing:)", "countA": 232, "countB": 85 }
+{ "tweetid": 233i64, "user": { "screen_name": "TerrellStoddard@17", "lang": "en", "friends_count": 74, "statuses_count": 3, "name": "Terrell Stoddard", "followers_count": 35 }, "sender_location": point("34.89,73.83"), "send_time": datetime("2007-01-28T10:10:00.000Z"), "referred_topics": {{ "at&t", "touch-screen" }}, "message_text": " can't stand at&t the touch-screen is terrible", "countA": 233, "countB": 28 }
+{ "tweetid": 234i64, "user": { "screen_name": "EzraField#602", "lang": "en", "friends_count": 7, "statuses_count": 41, "name": "Ezra Field", "followers_count": 169 }, "sender_location": point("26.51,74.01"), "send_time": datetime("2011-03-06T10:10:00.000Z"), "referred_topics": {{ "motorola", "speed" }}, "message_text": " love motorola the speed is good", "countA": 234, "countB": 94 }
+{ "tweetid": 235i64, "user": { "screen_name": "NathanielWentzel$505", "lang": "en", "friends_count": 40, "statuses_count": 178, "name": "Nathaniel Wentzel", "followers_count": 83 }, "sender_location": point("47.03,84.5"), "send_time": datetime("2007-07-02T10:10:00.000Z"), "referred_topics": {{ "motorola", "voice-clarity" }}, "message_text": " hate motorola its voice-clarity is bad", "countA": 235, "countB": 53 }
+{ "tweetid": 236i64, "user": { "screen_name": "AlanePycroft$112", "lang": "en", "friends_count": 61, "statuses_count": 222, "name": "Alane Pycroft", "followers_count": 125 }, "sender_location": point("31.82,81.86"), "send_time": datetime("2010-09-09T10:10:00.000Z"), "referred_topics": {{ "at&t", "platform" }}, "message_text": " like at&t its platform is amazing:)", "countA": 236, "countB": 133 }
+{ "tweetid": 237i64, "user": { "screen_name": "EliseoMunson$584", "lang": "en", "friends_count": 21, "statuses_count": 353, "name": "Eliseo Munson", "followers_count": 9 }, "sender_location": point("39.12,74.86"), "send_time": datetime("2011-05-02T10:10:00.000Z"), "referred_topics": {{ "sprint", "speed" }}, "message_text": " hate sprint its speed is terrible", "countA": 237, "countB": 100 }
+{ "tweetid": 238i64, "user": { "screen_name": "LupeCram@152", "lang": "en", "friends_count": 89, "statuses_count": 57, "name": "Lupe Cram", "followers_count": 51 }, "sender_location": point("40.34,71.58"), "send_time": datetime("2010-12-13T10:10:00.000Z"), "referred_topics": {{ "samsung", "platform" }}, "message_text": " like samsung the platform is amazing", "countA": 238, "countB": 47 }
+{ "tweetid": 239i64, "user": { "screen_name": "AuroraChristman#544", "lang": "en", "friends_count": 96, "statuses_count": 435, "name": "Aurora Christman", "followers_count": 88 }, "sender_location": point("35.44,67.79"), "send_time": datetime("2009-08-11T10:10:00.000Z"), "referred_topics": {{ "t-mobile", "signal" }}, "message_text": " love t-mobile the signal is mind-blowing", "countA": 239, "countB": 114 }
+{ "tweetid": 240i64, "user": { "screen_name": "JermainePotter_329", "lang": "en", "friends_count": 20, "statuses_count": 85, "name": "Jermaine Potter", "followers_count": 177 }, "sender_location": point("35.26,90.47"), "send_time": datetime("2012-04-17T10:10:00.000Z"), "referred_topics": {{ "t-mobile", "network" }}, "message_text": " like t-mobile its network is mind-blowing:)", "countA": 240, "countB": 104 }
+{ "tweetid": 241i64, "user": { "screen_name": "KaetyHall$972", "lang": "en", "friends_count": 23, "statuses_count": 416, "name": "Kaety Hall", "followers_count": 87 }, "sender_location": point("25.06,93.28"), "send_time": datetime("2011-02-13T10:10:00.000Z"), "referred_topics": {{ "verizon", "network" }}, "message_text": " can't stand verizon its network is bad:(", "countA": 241, "countB": 45 }
+{ "tweetid": 242i64, "user": { "screen_name": "LaurenChristopher#195", "lang": "en", "friends_count": 12, "statuses_count": 149, "name": "Lauren Christopher", "followers_count": 183 }, "sender_location": point("24.03,79.65"), "send_time": datetime("2012-05-22T10:10:00.000Z"), "referred_topics": {{ "t-mobile", "touch-screen" }}, "message_text": " love t-mobile the touch-screen is amazing", "countA": 242, "countB": 179 }
+{ "tweetid": 243i64, "user": { "screen_name": "KoreyBonner$296", "lang": "en", "friends_count": 56, "statuses_count": 412, "name": "Korey Bonner", "followers_count": 190 }, "sender_location": point("42.54,97.81"), "send_time": datetime("2006-10-07T10:10:00.000Z"), "referred_topics": {{ "iphone", "touch-screen" }}, "message_text": " like iphone its touch-screen is amazing:)", "countA": 243, "countB": 176 }
+{ "tweetid": 244i64, "user": { "screen_name": "LaetitiaWise@568", "lang": "en", "friends_count": 87, "statuses_count": 363, "name": "Laetitia Wise", "followers_count": 49 }, "sender_location": point("39.34,70.46"), "send_time": datetime("2010-11-25T10:10:00.000Z"), "referred_topics": {{ "iphone", "voicemail-service" }}, "message_text": " hate iphone its voicemail-service is terrible", "countA": 244, "countB": 150 }
+{ "tweetid": 245i64, "user": { "screen_name": "PatricaKellogg@123", "lang": "en", "friends_count": 4, "statuses_count": 80, "name": "Patrica Kellogg", "followers_count": 47 }, "sender_location": point("34.06,84.02"), "send_time": datetime("2005-05-27T10:10:00.000Z"), "referred_topics": {{ "sprint", "touch-screen" }}, "message_text": " hate sprint its touch-screen is bad:(", "countA": 245, "countB": 83 }
+{ "tweetid": 246i64, "user": { "screen_name": "AdelleSwink$50", "lang": "en", "friends_count": 64, "statuses_count": 411, "name": "Adelle Swink", "followers_count": 165 }, "sender_location": point("28.66,71.42"), "send_time": datetime("2007-04-11T10:10:00.000Z"), "referred_topics": {{ "sprint", "plan" }}, "message_text": " can't stand sprint the plan is horrible", "countA": 246, "countB": 128 }
+{ "tweetid": 247i64, "user": { "screen_name": "MckennaAlbright$534", "lang": "en", "friends_count": 94, "statuses_count": 374, "name": "Mckenna Albright", "followers_count": 61 }, "sender_location": point("45.26,93.62"), "send_time": datetime("2011-11-12T10:10:00.000Z"), "referred_topics": {{ "sprint", "speed" }}, "message_text": " can't stand sprint the speed is OMG", "countA": 247, "countB": 194 }
+{ "tweetid": 248i64, "user": { "screen_name": "MerryReade$689", "lang": "en", "friends_count": 41, "statuses_count": 172, "name": "Merry Reade", "followers_count": 105 }, "sender_location": point("42.21,81.81"), "send_time": datetime("2009-08-18T10:10:00.000Z"), "referred_topics": {{ "verizon", "wireless" }}, "message_text": " like verizon its wireless is amazing", "countA": 248, "countB": 123 }
+{ "tweetid": 249i64, "user": { "screen_name": "CoryGoldvogel$187", "lang": "en", "friends_count": 91, "statuses_count": 359, "name": "Cory Goldvogel", "followers_count": 20 }, "sender_location": point("39.94,83.42"), "send_time": datetime("2005-09-11T10:10:00.000Z"), "referred_topics": {{ "verizon", "plan" }}, "message_text": " dislike verizon its plan is bad:(", "countA": 249, "countB": 163 }
+{ "tweetid": 250i64, "user": { "screen_name": "RoystonRummel@500", "lang": "en", "friends_count": 34, "statuses_count": 154, "name": "Royston Rummel", "followers_count": 146 }, "sender_location": point("40.73,72.93"), "send_time": datetime("2005-11-20T10:10:00.000Z"), "referred_topics": {{ "samsung", "touch-screen" }}, "message_text": " love samsung its touch-screen is amazing:)", "countA": 250, "countB": 125 }
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate/group_only/group_only.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate/group_only/group_only.1.ddl.sqlpp
new file mode 100644
index 0000000..54a3495
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate/group_only/group_only.1.ddl.sqlpp
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+drop dataverse dblp if exists;
+
+create dataverse dblp;
+
+use dblp;
+
+create type DBLPType as open {
+  id: int64,
+  dblpid: string,
+  title: string,
+  authors: string,
+  misc: string
+};
+
+create dataset DBLP(DBLPType) primary key id;
+
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate/group_only/group_only.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate/group_only/group_only.2.update.sqlpp
new file mode 100644
index 0000000..b161463
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate/group_only/group_only.2.update.sqlpp
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+USE dblp;
+
+load dataset DBLP
+using localfs
+(("path"="asterix_nc1://data/pub-small/dblp-small-id.txt"),("format"="delimited-text"),("delimiter"=":"));
+
+
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate/group_only/group_only.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate/group_only/group_only.3.query.sqlpp
new file mode 100644
index 0000000..6cde5e4
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/aggregate/group_only/group_only.3.query.sqlpp
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/*May be issues with AQL test. By limiting input, the results may change based on storage semantics.*/
+
+USE dblp;
+
+SELECT d.authors AS author, d.title AS title
+FROM (SELECT VALUE t
+               FROM DBLP t
+               LIMIT 5) AS d
+GROUP BY d.authors, d.title
+ORDER BY d.authors;
+
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/big-object/big_object_bulkload/big_object_bulkload.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/big-object/big_object_bulkload/big_object_bulkload.1.ddl.sqlpp
new file mode 100644
index 0000000..c66b5b0
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/big-object/big_object_bulkload/big_object_bulkload.1.ddl.sqlpp
@@ -0,0 +1,35 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Test case Name  : big_object_bulkload.aql
+ * Description     : bulkload insert of large objects
+ * Expected Result : Success
+ * Date            : 20th April 2016
+ */
+
+drop dataverse testdv2 if exists;
+create dataverse testdv2;
+use testdv2;
+
+create type testtype as open {
+  id: int64,
+  name: string
+};
+
+create dataset testds(testtype) primary key id;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/big-object/big_object_bulkload/big_object_bulkload.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/big-object/big_object_bulkload/big_object_bulkload.2.update.sqlpp
new file mode 100644
index 0000000..1600a77
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/big-object/big_object_bulkload/big_object_bulkload.2.update.sqlpp
@@ -0,0 +1,119 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+use testdv2;
+insert into testds { "id": 1, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod  [...]
+insert into testds { "id": 2, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod  [...]
+insert into testds { "id": 3, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod  [...]
+insert into testds { "id": 4, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod  [...]
+insert into testds { "id": 5, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod  [...]
+insert into testds { "id": 6, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod  [...]
+insert into testds { "id": 7, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod  [...]
+insert into testds { "id": 8, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod  [...]
+insert into testds { "id": 9, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod  [...]
+insert into testds { "id": 10, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 11, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 12, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 13, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 14, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 15, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 16, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 17, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 18, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 19, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 20, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 21, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 22, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 23, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 24, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 25, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 26, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 27, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 28, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 29, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 30, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 31, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 32, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 33, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 34, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 35, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 36, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 37, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 38, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 39, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 40, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 41, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 42, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 43, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 44, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 45, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 46, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 47, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 48, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 49, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 50, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 51, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 52, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 53, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 54, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 55, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 56, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 57, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 58, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 59, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 60, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 61, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 62, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 63, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 64, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 65, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 66, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 67, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 68, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 69, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 70, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 71, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 72, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 73, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 74, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 75, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 76, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 77, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 78, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 79, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 80, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 81, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 82, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 83, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 84, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 85, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 86, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 87, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 88, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 89, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 90, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 91, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 92, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 93, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 94, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 95, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 96, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 97, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 98, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 99, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 100, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismo [...]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/big-object/big_object_bulkload/big_object_bulkload.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/big-object/big_object_bulkload/big_object_bulkload.3.query.sqlpp
new file mode 100644
index 0000000..6f3799f
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/big-object/big_object_bulkload/big_object_bulkload.3.query.sqlpp
@@ -0,0 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+use testdv2;
+
+select value d from testds d
+order by d.id;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/big-object/big_object_feed_20M/big_object_feed_20M.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/big-object/big_object_feed_20M/big_object_feed_20M.1.ddl.sqlpp
new file mode 100644
index 0000000..e08de0b
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/big-object/big_object_feed_20M/big_object_feed_20M.1.ddl.sqlpp
@@ -0,0 +1,45 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Test case Name  : big_object_feed_20M.aql
+ * Description     : ingestion of large objects (20M)
+ * Expected Result : Success
+ * Date            : 4th June 2016
+ */
+
+drop dataverse testdv2 if exists;
+create dataverse testdv2;
+use testdv2;
+
+create type testtype as closed {
+  id: int64,
+  name: string,
+  hobbies: {{string}}
+};
+
+create dataset testds(testtype) primary key id;
+
+
+create feed BigFeed with {
+  "adapter-name" : "localfs",
+  "path" : "asterix_nc1://target/data/big-object/big_object_20M.adm",
+  "format" : "adm",
+  "type-name" : "testtype",
+  "tuple-interval" : "2"
+};
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/big-object/big_object_feed_20M/big_object_feed_20M.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/big-object/big_object_feed_20M/big_object_feed_20M.2.update.sqlpp
new file mode 100644
index 0000000..9b8adcc
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/big-object/big_object_feed_20M/big_object_feed_20M.2.update.sqlpp
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/**
+ *
+ * Big object (20 MB) ingestion test
+ * Expected result: success
+ *
+ */
+ 
+ /*Data feed ingestion with SQL++?*/
+
+use testdv2;
+
+set `wait-for-completion-feed` "true";
+
+connect feed BigFeed to dataset testds;
+
+start feed BigFeed;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/big-object/big_object_feed_20M/big_object_feed_20M.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/big-object/big_object_feed_20M/big_object_feed_20M.3.query.sqlpp
new file mode 100644
index 0000000..d665202
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/big-object/big_object_feed_20M/big_object_feed_20M.3.query.sqlpp
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+use testdv2;
+
+select value d
+from testds d
+where d.id = 1;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/big-object/big_object_insert/big_object_insert.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/big-object/big_object_insert/big_object_insert.1.ddl.sqlpp
new file mode 100644
index 0000000..c66b5b0
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/big-object/big_object_insert/big_object_insert.1.ddl.sqlpp
@@ -0,0 +1,35 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Test case Name  : big_object_bulkload.aql
+ * Description     : bulkload insert of large objects
+ * Expected Result : Success
+ * Date            : 20th April 2016
+ */
+
+drop dataverse testdv2 if exists;
+create dataverse testdv2;
+use testdv2;
+
+create type testtype as open {
+  id: int64,
+  name: string
+};
+
+create dataset testds(testtype) primary key id;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/big-object/big_object_insert/big_object_insert.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/big-object/big_object_insert/big_object_insert.2.update.sqlpp
new file mode 100644
index 0000000..a4a2a27
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/big-object/big_object_insert/big_object_insert.2.update.sqlpp
@@ -0,0 +1,119 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+use testdv2;
+insert into testds { "id": 1, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod  [...]
+insert into testds { "id": 2, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod  [...]
+insert into testds { "id": 3, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod  [...]
+insert into testds { "id": 4, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod  [...]
+insert into testds { "id": 5, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod  [...]
+insert into testds { "id": 6, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod  [...]
+insert into testds { "id": 7, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod  [...]
+insert into testds { "id": 8, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod  [...]
+insert into testds { "id": 9, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod  [...]
+insert into testds { "id": 10, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 11, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 12, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 13, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 14, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 15, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 16, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 17, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 18, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 19, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 20, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 21, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 22, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 23, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 24, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 25, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 26, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 27, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 28, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 29, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 30, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 31, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 32, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 33, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 34, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 35, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 36, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 37, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 38, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 39, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 40, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 41, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 42, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 43, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 44, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 45, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 46, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 47, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 48, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 49, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 50, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 51, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 52, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 53, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 54, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 55, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 56, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 57, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 58, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 59, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 60, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 61, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 62, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 63, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 64, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 65, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 66, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 67, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 68, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 69, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 70, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 71, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 72, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 73, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 74, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 75, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 76, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 77, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 78, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 79, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 80, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 81, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 82, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 83, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 84, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 85, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 86, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 87, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 88, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 89, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 90, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 91, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 92, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 93, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 94, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 95, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 96, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 97, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 98, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 99, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismod [...]
+insert into testds { "id": 100, "name": "Person Four", "hobbies": {{"Metal", "Jazz", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sit amet vehicula justo. Nam sodales lectus ut leo vestibulum, ac sagittis lorem varius. Aenean luctus diam quam, id hendrerit lectus auctor interdum. Vivamus lectus nibh, gravida quis varius at, egestas sed enim. Mauris ultrices nisl pulvinar lectus varius pharetra. Integer vel est ut sem facilisis mollis. Donec a feugiat urna, sed euismo [...]
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/big-object/big_object_insert/big_object_insert.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/big-object/big_object_insert/big_object_insert.3.query.sqlpp
new file mode 100644
index 0000000..0ffb9d5
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/big-object/big_object_insert/big_object_insert.3.query.sqlpp
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+use testdv2;
+
+SET `compiler.sortmemory` "32MB";
+
+select value d from testds d
+order by d.name desc, d.id;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/big-object/big_object_load_only_20M/big_object_load_only_20M.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/big-object/big_object_load_only_20M/big_object_load_only_20M.1.ddl.sqlpp
new file mode 100644
index 0000000..6c68020
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/big-object/big_object_load_only_20M/big_object_load_only_20M.1.ddl.sqlpp
@@ -0,0 +1,36 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Test case Name  : big_object_bulkload.aql
+ * Description     : bulkload insert of large objects
+ * Expected Result : Success
+ * Date            : 20th April 2016
+ */
+
+drop dataverse testdv2 if exists;
+create dataverse testdv2;
+use testdv2;
+
+create type testtype as closed {
+  id: int64,
+  name: string,
+  hobbies: {{string}}
+};
+
+create dataset testds(testtype) primary key id;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/big-object/big_object_load_only_20M/big_object_load_only_20M.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/big-object/big_object_load_only_20M/big_object_load_only_20M.2.update.sqlpp
new file mode 100644
index 0000000..83bea4a
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/big-object/big_object_load_only_20M/big_object_load_only_20M.2.update.sqlpp
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/**
+ *
+ * Big object (20 MB) loading test
+ * Expected result: success
+ *
+ */
+/*Is big_object_20M.adm.template the same file? Or am I using the wrong file?*/
+
+use testdv2;
+
+set hash_merge "true";
+
+load dataset testds
+using localfs
+(("path"="asterix_nc1://target/data/big-object/big_object_20M.adm"),("format"="adm")) pre-sorted;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/big-object/big_object_load_only_20M/big_object_load_only_20M.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/big-object/big_object_load_only_20M/big_object_load_only_20M.3.query.sqlpp
new file mode 100644
index 0000000..07920b7
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/big-object/big_object_load_only_20M/big_object_load_only_20M.3.query.sqlpp
@@ -0,0 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+use testdv2;
+
+select value d.id from testds d
+order by d.id;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/binary/query_id/query_id.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/binary/query_id/query_id.1.ddl.sqlpp
new file mode 100644
index 0000000..d3ba2fb
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/binary/query_id/query_id.1.ddl.sqlpp
@@ -0,0 +1,46 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+drop dataverse tpch if exists;
+create dataverse tpch;
+
+use tpch;
+
+create type LineItemType as closed {
+  l_orderkey: int64,
+  l_partkey: int64,
+  l_suppkey: int64,
+  l_linenumber: int64,
+  l_quantity: double,
+  l_extendedprice: double,
+  l_discount: double,
+  l_tax: double,
+  l_returnflag: string,
+  l_linestatus: string,
+  l_shipdate: string,
+  l_commitdate: string,
+  l_receiptdate: string,
+  l_shipinstruct: string,
+  l_shipmode: string,
+  l_comment: string
+};
+
+create dataset LineItem(LineItemType)
+  primary key l_orderkey, l_linenumber;
+
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/binary/query_id/query_id.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/binary/query_id/query_id.2.update.sqlpp
new file mode 100644
index 0000000..5812379
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/binary/query_id/query_id.2.update.sqlpp
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use tpch;
+
+load dataset LineItem
+using localfs
+(("path"="asterix_nc1://data/tpch0.001/lineitem.tbl"),("format"="delimited-text"),("delimiter"="|")) pre-sorted;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/binary/query_id/query_id.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/binary/query_id/query_id.3.query.sqlpp
new file mode 100644
index 0000000..056d96e
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/binary/query_id/query_id.3.query.sqlpp
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use tpch;
+
+select distinct value print_binary(id, "hex") from LineItem
+let id = create_query_uid()
+order by id;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/comparison/circle-point/circle-point.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/comparison/circle-point/circle-point.1.ddl.sqlpp
new file mode 100644
index 0000000..da76848
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/comparison/circle-point/circle-point.1.ddl.sqlpp
@@ -0,0 +1,44 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+drop dataverse channels if exists;
+create dataverse channels;
+use channels;
+
+create type UserLocation as closed {
+  recordId: uuid,
+  location: point,
+  user_id: string,
+  timeoffset: float
+};
+
+create type EmergencyReport as closed {
+  reportId: uuid,
+  severity: int,
+  impactZone: circle,
+  timeoffset: float,
+  duration: float,
+  message: string,
+  emergencyType: string
+};
+
+create dataset UserLocations(UserLocation)
+primary key recordId autogenerated;
+
+create dataset EmergencyReports(EmergencyReport)
+primary key reportId autogenerated;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/comparison/circle-point/circle-point.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/comparison/circle-point/circle-point.2.update.sqlpp
new file mode 100644
index 0000000..626196f
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/comparison/circle-point/circle-point.2.update.sqlpp
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+use channels;
+
+insert into EmergencyReports(
+[{"severity": 1, "impactZone": circle("2500.23697136,1633.68172386 1000.0"), "timeoffset": 544.7287792315149, "duration": 900.0, "message": "earthquake alert!", "emergencyType": "earthquake"},
+{"severity": 1, "impactZone": circle("2501.23697136,1633.68172386 1000.0"), "timeoffset": 552.2465166866674, "duration": 900.0, "message": "earthquake alert!", "emergencyType": "earthquake"}]
+);
+
+insert into UserLocations(
+{"location":point("2500.23697136,1633.68172386"),"user_id":"t124","timeoffset":60.0}
+);
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/comparison/circle-point/circle-point.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/comparison/circle-point/circle-point.3.query.sqlpp
new file mode 100644
index 0000000..b9b4d78
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/comparison/circle-point/circle-point.3.query.sqlpp
@@ -0,0 +1,27 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+use channels;
+
+select value count(*)
+from
+(select location.location as userAt,
+report.impactZone as reportAt
+from UserLocations location, EmergencyReports report
+where spatial_intersect(report.impactZone, location.location)) x;
+
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/comparison/circle-point/circle-point.4.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/comparison/circle-point/circle-point.4.query.sqlpp
new file mode 100644
index 0000000..7f22256
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/comparison/circle-point/circle-point.4.query.sqlpp
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+use channels;
+
+select value count(*)
+from
+(select location.location as userAt,
+report.impactZone as reportAt
+from UserLocations location, EmergencyReports report
+where spatial_intersect(location.location, report.impactZone)) x;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/comparison/circle-point/circle-point.5.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/comparison/circle-point/circle-point.5.query.sqlpp
new file mode 100644
index 0000000..6cf6fdb
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/comparison/circle-point/circle-point.5.query.sqlpp
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+use channels;
+
+select value count(*) from
+(select location.location as userAt,
+report.impactZone as reportAt
+from UserLocations location, EmergencyReports report
+let circle = create_circle(location.location,.1)
+where spatial_intersect(circle, report.impactZone)) x;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/comparison/circle-point/circle-point.6.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/comparison/circle-point/circle-point.6.query.sqlpp
new file mode 100644
index 0000000..ba88022
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/comparison/circle-point/circle-point.6.query.sqlpp
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+use channels;
+
+let check1 = `spatial-intersect`(circle("3107.06794511,1079.71664882 1000.0"),point("3513.27543563,978.772476107")),
+    check2 = `spatial-intersect`(point("3513.27543563,978.772476107"),circle("3107.06794511,1079.71664882 1000.0"))
+
+select value [check1, check2];
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/constructor/polygon-from-open-list_issue1627/polygon-from-open-list_issue1627.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/constructor/polygon-from-open-list_issue1627/polygon-from-open-list_issue1627.1.ddl.sqlpp
new file mode 100644
index 0000000..5279b93
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/constructor/polygon-from-open-list_issue1627/polygon-from-open-list_issue1627.1.ddl.sqlpp
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+* Description  : Fix corrupted polygon values from open list of doubles
+* Expected Res : Success
+* Issue        : 1627
+* Date         : 07th Oct. 2016
+*/
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type StateType as {
+id: int32
+};
+
+create dataset States(StateType)
+primary key id;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/constructor/polygon-from-open-list_issue1627/polygon-from-open-list_issue1627.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/constructor/polygon-from-open-list_issue1627/polygon-from-open-list_issue1627.2.update.sqlpp
new file mode 100644
index 0000000..34421cc
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/constructor/polygon-from-open-list_issue1627/polygon-from-open-list_issue1627.2.update.sqlpp
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+* Description  : Fix corrupted polygon values from open list of doubles
+* Expected Res : Success
+* Issue        : 1627
+* Date         : 07th Oct. 2016
+*/
+use test;
+insert into States (
+{
+"id":0,
+"coordinates":[ -87.359296, 35.00118, -85.606675, 34.984749, -85.431413, 34.124869, -85.184951, 32.859696, -85.069935, 32.580372, -84.960397, 32.421541, -85.004212, 32.322956, -84.889196, 32.262709, -85.058981, 32.13674, -85.053504, 32.01077, -85.141136, 31.840985, -85.042551, 31.539753, -85.113751, 31.27686, -85.004212, 31.003013, -85.497137, 30.997536, -87.600282, 30.997536, -87.633143, 30.86609, -87.408589, 30.674397, -87.446927, 30.510088, -87.37025, 30.427934, -87.518128, 30.280057, [...]
+);
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/constructor/polygon-from-open-list_issue1627/polygon-from-open-list_issue1627.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/constructor/polygon-from-open-list_issue1627/polygon-from-open-list_issue1627.3.query.sqlpp
new file mode 100644
index 0000000..a4df649
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/constructor/polygon-from-open-list_issue1627/polygon-from-open-list_issue1627.3.query.sqlpp
@@ -0,0 +1,27 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+* Description  : Fix corrupted polygon values from open list of doubles
+* Expected Res : Success
+* Issue        : 1627
+* Date         : 07th Oct. 2016
+*/
+use test;
+
+select value create_polygon(x.coordinates) from States x;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/drop-dataverse/drop-dataverse.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/drop-dataverse/drop-dataverse.1.ddl.sqlpp
new file mode 100644
index 0000000..88ac565
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/drop-dataverse/drop-dataverse.1.ddl.sqlpp
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Description  : Test cross dataverse functionality
+ *              : create a dataset using a foreign datatype
+ *              : Try dropping the foreign type's dataverse
+ * Expected Res : Failure
+ * Date         : 2015 Steven Jacobs
+ */
+
+
+drop dataverse b if exists;
+drop dataverse a if exists;
+create dataverse a;
+create dataverse b;
+
+create type a.a as {
+id:int32
+};
+
+create dataset b.b1(a.a) primary key id;
+
+drop dataverse a;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/drop-dataverse/drop-dataverse.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/drop-dataverse/drop-dataverse.2.update.sqlpp
new file mode 100644
index 0000000..1f90ae9
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/drop-dataverse/drop-dataverse.2.update.sqlpp
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Description  : Test cross dataverse functionality
+ *              : create a dataset using a foreign datatype
+ *              : Try dropping the foreign type's dataverse
+ * Expected Res : Failure
+ * Date         : 2015 Steven Jacobs
+ */
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/drop-dataverse/drop-dataverse.3.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/drop-dataverse/drop-dataverse.3.ddl.sqlpp
new file mode 100644
index 0000000..fe3f670
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/drop-dataverse/drop-dataverse.3.ddl.sqlpp
@@ -0,0 +1,27 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Description  : Test cross dataverse functionality
+ *              : create a dataset using a foreign datatype
+ *              : Try dropping the foreign type's dataverse
+ * Expected Res : Failure
+ * Date         : 2015 Steven Jacobs
+ */
+drop dataverse b;
+drop dataverse a;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/drop-type-used-elsewhere/drop-type-used-elsewhere.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/drop-type-used-elsewhere/drop-type-used-elsewhere.1.ddl.sqlpp
new file mode 100644
index 0000000..df3ee86
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/drop-type-used-elsewhere/drop-type-used-elsewhere.1.ddl.sqlpp
@@ -0,0 +1,41 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Description  : Test cross dataverse functionality
+ *              : create a dataset using a foreign datatype
+ *              : Try dropping the foreign datatype
+ * Expected Res : Failure
+ * Date         : 2015 Steven Jacobs
+ */
+
+
+drop dataverse b if exists;
+drop dataverse a if exists;
+
+create dataverse a;
+create dataverse b;
+
+
+create type a.a as {
+id:int32
+};
+
+create dataset b.b1(a.a) primary key id;
+
+drop type a.a;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/drop-type-used-elsewhere/drop-type-used-elsewhere.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/drop-type-used-elsewhere/drop-type-used-elsewhere.2.update.sqlpp
new file mode 100644
index 0000000..dc964f4
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/drop-type-used-elsewhere/drop-type-used-elsewhere.2.update.sqlpp
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Description  : Test cross dataverse functionality
+ *              : create a dataset using a foreign datatype
+ *              : Try dropping the foreign datatype
+ * Expected Res : Failure
+ * Date         : 2015 Steven Jacobs
+ */
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/drop-type-used-elsewhere/drop-type-used-elsewhere.3.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/drop-type-used-elsewhere/drop-type-used-elsewhere.3.ddl.sqlpp
new file mode 100644
index 0000000..20aad07
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/drop-type-used-elsewhere/drop-type-used-elsewhere.3.ddl.sqlpp
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Description  : Test cross dataverse functionality
+ *              : create a dataset using a foreign datatype
+ *              : Try dropping the foreign datatype
+ * Expected Res : Failure
+ * Date         : 2015 Steven Jacobs
+ */
+
+
+drop dataverse b;
+drop dataverse a;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/drop-type-used-here-dataset/drop-type-used-here-dataset.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/drop-type-used-here-dataset/drop-type-used-here-dataset.1.ddl.sqlpp
new file mode 100644
index 0000000..9017b01
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/drop-type-used-here-dataset/drop-type-used-here-dataset.1.ddl.sqlpp
@@ -0,0 +1,40 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Description  : Test cross dataverse functionality
+ *              : create a dataset using the type
+ *              : Try dropping the dataset
+ * Expected Res : Failure
+ * Date         : 2015 Steven Jacobs
+ */
+
+
+drop dataverse c if exists;
+
+create dataverse c;
+use c;
+
+
+create type c.a as {
+id:int32
+};
+
+create dataset a1(c.a) primary key id;
+
+drop type c.a;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/drop-type-used-here-dataset/drop-type-used-here-dataset.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/drop-type-used-here-dataset/drop-type-used-here-dataset.2.update.sqlpp
new file mode 100644
index 0000000..8c1810c
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/drop-type-used-here-dataset/drop-type-used-here-dataset.2.update.sqlpp
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Description  : Test cross dataverse functionality
+ *              : create a dataset using the type
+ *              : Try dropping the dataset
+ * Expected Res : Failure
+ * Date         : 2015 Steven Jacobs
+ */
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/drop-type-used-here-type/drop-type-used-here-type.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/drop-type-used-here-type/drop-type-used-here-type.1.ddl.sqlpp
new file mode 100644
index 0000000..ed676f0
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/drop-type-used-here-type/drop-type-used-here-type.1.ddl.sqlpp
@@ -0,0 +1,42 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Description  : Test cross dataverse functionality
+ *              : create a type using the type
+ *              : Try dropping the dataset
+ * Expected Res : Failure
+ * Date         : 2015 Steven Jacobs
+ */
+
+
+drop dataverse c if exists;
+
+create dataverse c;
+
+
+create type c.a as {
+id:int32
+};
+
+create type c.b as {
+id:int32,
+a:a
+};
+
+drop type c.a;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/drop-type-used-here-type/drop-type-used-here-type.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/drop-type-used-here-type/drop-type-used-here-type.2.update.sqlpp
new file mode 100644
index 0000000..79f63df
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/drop-type-used-here-type/drop-type-used-here-type.2.update.sqlpp
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Description  : Test cross dataverse functionality
+ *              : create a type using the type
+ *              : Try dropping the dataset
+ * Expected Res : Failure
+ * Date         : 2015 Steven Jacobs
+ */
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/query-dataset-with-foreign-type/query-dataset-with-foreign-type.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/query-dataset-with-foreign-type/query-dataset-with-foreign-type.1.ddl.sqlpp
new file mode 100644
index 0000000..5d82e16
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/query-dataset-with-foreign-type/query-dataset-with-foreign-type.1.ddl.sqlpp
@@ -0,0 +1,41 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Description  : Test cross dataverse functionality
+ *              : create a dataset using a foreign datatype
+ *              : Query the dataset
+ * Expected Res : Success
+ * Date         : 2015 Steven Jacobs
+ */
+
+
+drop dataverse b if exists;
+drop dataverse a if exists;
+
+create dataverse a;
+create dataverse b;
+
+
+create type a.a as {
+id:int32,
+name:string,
+age:int
+};
+
+create dataset b.b1(a.a) primary key id;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/query-dataset-with-foreign-type/query-dataset-with-foreign-type.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/query-dataset-with-foreign-type/query-dataset-with-foreign-type.2.update.sqlpp
new file mode 100644
index 0000000..998194e
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/query-dataset-with-foreign-type/query-dataset-with-foreign-type.2.update.sqlpp
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Description  : Test cross dataverse functionality
+ *              : create a dataset using a foreign datatype
+ *              : Query the dataset
+ * Expected Res : Success
+ * Date         : 2015 Steven Jacobs
+ */
+
+insert into b.b1(
+{"id":1,"name":"Sawyer","age":33}
+);
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/query-dataset-with-foreign-type/query-dataset-with-foreign-type.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/query-dataset-with-foreign-type/query-dataset-with-foreign-type.3.query.sqlpp
new file mode 100644
index 0000000..30455bd
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/query-dataset-with-foreign-type/query-dataset-with-foreign-type.3.query.sqlpp
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Description  : Test cross dataverse functionality
+ *              : create a dataset using a foreign datatype
+ *              : Query the dataset
+ * Expected Res : Success
+ * Date         : 2015 Steven Jacobs
+ */
+
+select value c from b.b1 c;
+
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/query-dataset-with-foreign-type/query-dataset-with-foreign-type.4.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/query-dataset-with-foreign-type/query-dataset-with-foreign-type.4.ddl.sqlpp
new file mode 100644
index 0000000..aa8ebab
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/cross-dataverse/query-dataset-with-foreign-type/query-dataset-with-foreign-type.4.ddl.sqlpp
@@ -0,0 +1,27 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Description  : Test cross dataverse functionality
+ *              : create a dataset using a foreign datatype
+ *              : Query the dataset
+ * Expected Res : Success
+ * Date         : 2015 Steven Jacobs
+ */
+drop dataverse b;
+drop dataverse a;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/delete-dataset-with-meta/delete-dataset-with-meta.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/delete-dataset-with-meta/delete-dataset-with-meta.1.ddl.sqlpp
new file mode 100644
index 0000000..f6562eb
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/delete-dataset-with-meta/delete-dataset-with-meta.1.ddl.sqlpp
@@ -0,0 +1,36 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Description  : Delete from a dataset with meta type
+ * Expected Res : Failure
+ * Date         : 15th Mar 2016
+ */
+
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type RecordType as open{
+};
+
+create type MetaType as open{
+id:string
+};
+
+create dataset DatasetWithMeta(RecordType) with meta(MetaType)primary key meta().id;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/delete-dataset-with-meta/delete-dataset-with-meta.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/delete-dataset-with-meta/delete-dataset-with-meta.2.update.sqlpp
new file mode 100644
index 0000000..31a6986
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/delete-dataset-with-meta/delete-dataset-with-meta.2.update.sqlpp
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Description  : Delete from a dataset with meta type
+ * Expected Res : Failure
+ * Date         : 15th Mar 2016
+ */
+
+use test;
+
+delete from DatasetWithMeta record
+where record.id = "temp";
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/insert-dataset-with-meta/insert-dataset-with-meta.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/insert-dataset-with-meta/insert-dataset-with-meta.1.ddl.sqlpp
new file mode 100644
index 0000000..0d2bd25
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/insert-dataset-with-meta/insert-dataset-with-meta.1.ddl.sqlpp
@@ -0,0 +1,36 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Description  : Insert into a dataset with meta type
+ * Expected Res : Failure
+ * Date         : 15th Mar 2016
+ */
+
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type RecordType as open{
+};
+
+create type MetaType as open{
+id:string
+};
+
+create dataset DatasetWithMeta(RecordType) with meta(MetaType)primary key meta().id;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/insert-dataset-with-meta/insert-dataset-with-meta.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/insert-dataset-with-meta/insert-dataset-with-meta.2.update.sqlpp
new file mode 100644
index 0000000..83f207c
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/insert-dataset-with-meta/insert-dataset-with-meta.2.update.sqlpp
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Description  : Insert into a dataset with meta type
+ * Expected Res : Failure
+ * Date         : 15th Mar 2016
+ */
+
+use test;
+
+insert into DatasetWithMeta (
+{"id": 2, "name": "Person Two", "hobbies": {{"Rock", "Jazz"}}}
+);
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/insert-duplicated-keys-from-query/insert-duplicated-keys-from-query.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/insert-duplicated-keys-from-query/insert-duplicated-keys-from-query.1.ddl.sqlpp
new file mode 100644
index 0000000..3ad1218
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/insert-duplicated-keys-from-query/insert-duplicated-keys-from-query.1.ddl.sqlpp
@@ -0,0 +1,53 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+drop dataverse recovery if exists;
+create dataverse recovery;
+use recovery;
+
+/* For raw Fragile data */
+create type FragileTypeRaw as closed {
+  row_id: int32,
+  sid: int32,
+  date: string,
+  day: int32,
+  time: string,
+  bpm: int32,
+  RR: float
+};
+
+/* For cleaned Fragile data */
+create type FragileType as closed {
+  row_id: int32,
+  sid: int32,
+  date: date,
+  day: int32,
+  time: time,
+  bpm: int32,
+  RR: float
+};
+
+/* Create dataset for loading raw Fragile data */
+create dataset Fragile_raw (FragileTypeRaw)
+primary key row_id;
+
+/* Create dataset for cleaned Fragile data */
+create dataset Fragile (FragileType)
+primary key row_id;
+
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/insert-duplicated-keys-from-query/insert-duplicated-keys-from-query.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/insert-duplicated-keys-from-query/insert-duplicated-keys-from-query.2.update.sqlpp
new file mode 100644
index 0000000..f846d59
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/insert-duplicated-keys-from-query/insert-duplicated-keys-from-query.2.update.sqlpp
@@ -0,0 +1,43 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/*
+is "Cannot load an index that is not empty" the correct expected error? I am getting it for both AQL and SQL++ tests,
+but the original testsuite.xml says a different expected error.
+*/
+
+use recovery;
+
+load dataset Fragile_raw using localfs
+(("path"="asterix_nc1://data/csv/fragile_01.csv"),("format"="delimited-text"),("delimiter"=",")) pre-sorted;
+
+
+use recovery;
+
+/* Load Fragile data from raw dataset into cleaned dataset*/
+insert into Fragile (
+  select t.row_id % 28000 as row_id,
+t.sid as sid,
+date(t.date) as date,
+t.day as day,
+parse_time(t.time, "h:m:s") as time,
+t.bpm as bpm,
+t.RR as RR
+from Fragile_raw t
+);
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/insert-duplicated-keys-from-query/insert-duplicated-keys-from-query.3.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/insert-duplicated-keys-from-query/insert-duplicated-keys-from-query.3.ddl.sqlpp
new file mode 100644
index 0000000..ba86f1e
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/insert-duplicated-keys-from-query/insert-duplicated-keys-from-query.3.ddl.sqlpp
@@ -0,0 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+drop dataverse recovery;
+
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/insert-returning-fieldname-qualified/insert-returning-fieldname-qualified.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/insert-returning-fieldname-qualified/insert-returning-fieldname-qualified.1.ddl.sqlpp
new file mode 100644
index 0000000..a41976b
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/insert-returning-fieldname-qualified/insert-returning-fieldname-qualified.1.ddl.sqlpp
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Test case Name  : insert-returning-fieldname
+ * Description     : Check fields returned on insert
+ * Expected Result : Success
+ * Date            : Mar 2015
+ */
+
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type sub as
+{ subscriptionId: uuid }
+;
+
+create dataset subscriptions(sub) primary key subscriptionId;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/insert-returning-fieldname-qualified/insert-returning-fieldname-qualified.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/insert-returning-fieldname-qualified/insert-returning-fieldname-qualified.3.query.sqlpp
new file mode 100644
index 0000000..dad3a82
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/insert-returning-fieldname-qualified/insert-returning-fieldname-qualified.3.query.sqlpp
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Test case Name  : insert-returning-fieldname
+ * Description     : Check fields returned on insert
+ * Expected Result : Success
+ * Date            : Mar 2015
+ */
+
+use test;
+
+upsert into subscriptions as record(
+[{"subscriptionId":create_uuid(), "word": "hello"}]
+) returning record.word;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/load-with-autogenerated-no-field/load-with-autogenerated-no-field.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/load-with-autogenerated-no-field/load-with-autogenerated-no-field.1.ddl.sqlpp
new file mode 100644
index 0000000..28ed7c2
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/load-with-autogenerated-no-field/load-with-autogenerated-no-field.1.ddl.sqlpp
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+// try to create autogenerated key on field not mentioned in type, should fail
+
+drop dataverse test if exists;
+create dataverse test;
+
+use test;
+
+create type DBLPType as open {
+  id: uuid,
+  dblpid: string,
+  title: string,
+  authors: string,
+  misc: string
+};
+
+create dataset DBLP(DBLPType) primary key not_id autogenerated;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/load-with-index-open_02/load-with-index-open_02.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/load-with-index-open_02/load-with-index-open_02.1.ddl.sqlpp
new file mode 100644
index 0000000..7d8e242
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/load-with-index-open_02/load-with-index-open_02.1.ddl.sqlpp
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+drop dataverse OpenTinySocial if exists;
+create dataverse OpenTinySocial;
+use OpenTinySocial;
+create type FacebookMessageType as
+{ message_id: int64 };
+
+create dataset FacebookMessages(FacebookMessageType)
+primary key message_id;
+create index fbAuthorIdx on FacebookMessages(author_id: int64?) type btree enforced;
+create index fbSenderLocIndex on FacebookMessages(sender_location: point?) type rtree enforced;
+create index fbMessageIdx on FacebookMessages(message: string?) type keyword enforced;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/load-with-index-open_02/load-with-index-open_02.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/load-with-index-open_02/load-with-index-open_02.2.update.sqlpp
new file mode 100644
index 0000000..f6ce2ac
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/load-with-index-open_02/load-with-index-open_02.2.update.sqlpp
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+use OpenTinySocial;
+
+load dataset FacebookMessages
+using localfs
+(("path"="asterix_nc1://data/tinysocial/fbm_sqlpp.adm"),("format"="adm")) pre-sorted;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/load-with-index-open_02/load-with-index-open_02.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/load-with-index-open_02/load-with-index-open_02.3.query.sqlpp
new file mode 100644
index 0000000..369fe12
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/load-with-index-open_02/load-with-index-open_02.3.query.sqlpp
@@ -0,0 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+use OpenTinySocial;
+
+select value count(*) from FacebookMessages;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/load-with-index-open_02/load-with-index-open_02.4.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/load-with-index-open_02/load-with-index-open_02.4.ddl.sqlpp
new file mode 100644
index 0000000..c445af0
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/load-with-index-open_02/load-with-index-open_02.4.ddl.sqlpp
@@ -0,0 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+drop dataverse OpenTinySocial;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/query-ASTERIXDB-1406/query-ASTERIXDB-1406.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/query-ASTERIXDB-1406/query-ASTERIXDB-1406.1.ddl.sqlpp
new file mode 100644
index 0000000..eeb572a
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/query-ASTERIXDB-1406/query-ASTERIXDB-1406.1.ddl.sqlpp
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type anon as {
+ id: int
+};
+
+create dataset myset(anon) primary key id;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/query-ASTERIXDB-1406/query-ASTERIXDB-1406.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/query-ASTERIXDB-1406/query-ASTERIXDB-1406.2.update.sqlpp
new file mode 100644
index 0000000..4c9680e
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/query-ASTERIXDB-1406/query-ASTERIXDB-1406.2.update.sqlpp
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use test;
+
+insert into myset
+select i as id from range(1,3) i;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/query-ASTERIXDB-1406/query-ASTERIXDB-1406.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/query-ASTERIXDB-1406/query-ASTERIXDB-1406.3.query.sqlpp
new file mode 100644
index 0000000..4d3f2a4
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/query-ASTERIXDB-1406/query-ASTERIXDB-1406.3.query.sqlpp
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use test;
+
+select value m from myset m
+order by m.id;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/query-ASTERIXDB-867/query-ASTERIXDB-867.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/query-ASTERIXDB-867/query-ASTERIXDB-867.1.ddl.sqlpp
new file mode 100644
index 0000000..392def5
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/query-ASTERIXDB-867/query-ASTERIXDB-867.1.ddl.sqlpp
@@ -0,0 +1,47 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type page_info_type as {
+};
+
+create type page_views_type as closed {
+  user: string,
+  action: int32,
+  timespent: int32,
+  query_term: string,
+  ip_addr: int32,
+  timestamp: int32,
+  estimated_revenue: double,
+  page_info: page_info_type,
+  page_links: {{ page_info_type}}
+};
+
+create dataset page_views(page_views_type) primary key user;
+
+create type incr_id_type as closed {
+  id: uuid,
+  user: string,
+  header: string?
+};
+
+create dataset by_actions(incr_id_type) primary key id autogenerated;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/query-ASTERIXDB-867/query-ASTERIXDB-867.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/query-ASTERIXDB-867/query-ASTERIXDB-867.2.update.sqlpp
new file mode 100644
index 0000000..77129a7
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/query-ASTERIXDB-867/query-ASTERIXDB-867.2.update.sqlpp
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use test;
+
+load dataset page_views using localfs
+(("path"="asterix_nc1://data/page_views.adm"),("format"="adm"));
+
+insert into by_actions (
+  select t.user AS user, t.page_info.a AS header from page_views t
+  where t.action = 1
+);
+
+insert into by_actions (
+  {"user": "kereno", "header": "zzz"}
+);
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/query-ASTERIXDB-867/query-ASTERIXDB-867.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/query-ASTERIXDB-867/query-ASTERIXDB-867.3.query.sqlpp
new file mode 100644
index 0000000..402e508
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/dml/query-ASTERIXDB-867/query-ASTERIXDB-867.3.query.sqlpp
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use test;
+
+select t.user as user, t.header as header from by_actions t
+order by t.user;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/flwor/query-ASTERIXDB-1463/query-ASTERIXDB-1463.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/flwor/query-ASTERIXDB-1463/query-ASTERIXDB-1463.1.ddl.sqlpp
new file mode 100644
index 0000000..8deb063
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/flwor/query-ASTERIXDB-1463/query-ASTERIXDB-1463.1.ddl.sqlpp
@@ -0,0 +1,81 @@
+/*;
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type typeUser if not exists as open {
+    id: int64,
+    name: string,
+    screen_name : string,
+    lang : string,
+    location: string,
+    create_at: date,
+    description: string,
+    followers_count: int32,
+    friends_count: int32,
+    statues_count: int64
+};
+
+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 typeGeoTag if not exists as open {
+    stateID: int32,
+    stateName: string,
+    countyID: int32,
+    countyName: string,
+    cityID: int32?,
+    cityName: string?
+};
+
+create type typeTweet 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 }} ? ,
+    user : typeUser,
+    place : typePlace?,
+    geo_tag: typeGeoTag
+};
+
+create dataset ds_tweet(typeTweet) if not exists primary key id;
+
+create index text_idx if not exists on ds_tweet(text) type keyword;
+create index location_idx if not exists on ds_tweet(coordinate) type rtree;
+create index time_idx if not exists on ds_tweet(create_at) type btree;
+create index state_idx if not exists on ds_tweet(geo_tag.stateID) type btree;
+create index county_idx if not exists on ds_tweet(geo_tag.countyID) type btree;
+create index city_idx if not exists on ds_tweet(geo_tag.cityID) type btree;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/flwor/query-ASTERIXDB-1463/query-ASTERIXDB-1463.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/flwor/query-ASTERIXDB-1463/query-ASTERIXDB-1463.2.update.sqlpp
new file mode 100644
index 0000000..3fd1375
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/flwor/query-ASTERIXDB-1463/query-ASTERIXDB-1463.2.update.sqlpp
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+
+use test;
+
+load dataset ds_tweet using localfs
+(("path"="asterix_nc1://data/twitter/sample.adm"),("format"="adm"));
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/flwor/query-ASTERIXDB-1463/query-ASTERIXDB-1463.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/flwor/query-ASTERIXDB-1463/query-ASTERIXDB-1463.3.query.sqlpp
new file mode 100644
index 0000000..f0e82e4
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/flwor/query-ASTERIXDB-1463/query-ASTERIXDB-1463.3.query.sqlpp
@@ -0,0 +1,42 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use test;
+
+let common = (
+    let `set` = [ 72,37,51,24,11,10,34,42,9,44,15,48,35,4,40,6,20,32,8,49,12,22,28,1,13,45,5,47,21,29,54,17,18,39,19,
+                 55,26,27,31,56,41,46,16,30,53,38,25,36,50,33,23,2 ]
+    select value t
+    from ds_tweet t, `set` sid
+    where `similarity-jaccard`(`word-tokens`(t.text), `word-tokens`("document")) > 0.0
+      and contains(t.text, "hate")
+      and t.create_at>= datetime("2012-04-30T18:53:42.894Z")
+      and t.create_at <= datetime("2012-05-03T19:25:11.000Z")
+      and t.geo_tag.stateID = sid
+    ),
+    hashtag = (
+        select element {"key": tag, "count" : (select value count(x) from h x)[0]}
+        from common t, t.hashtags h
+        where not (`is-null`(t.hashtags))
+        group by h as tag group as h
+        order by (select value count(x) from h x) desc, tag
+        limit 50
+    )
+
+select value hashtag;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/flwor/query-ASTERIXDB-1485/query-ASTERIXDB-1485.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/flwor/query-ASTERIXDB-1485/query-ASTERIXDB-1485.1.ddl.sqlpp
new file mode 100644
index 0000000..fb2b335
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/flwor/query-ASTERIXDB-1485/query-ASTERIXDB-1485.1.ddl.sqlpp
@@ -0,0 +1,81 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type typeUser if not exists as open {
+    id: int64,
+    name: string,
+    screen_name : string,
+    lang : string,
+    location: string,
+    create_at: date,
+    description: string,
+    followers_count: int32,
+    friends_count: int32,
+    statues_count: int64
+};
+
+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 typeGeoTag if not exists as open {
+    stateID: int32,
+    stateName: string,
+    countyID: int32,
+    countyName: string,
+    cityID: int32?,
+    cityName: string?
+};
+
+create type typeTweet 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 }} ? ,
+    user : typeUser,
+    place : typePlace?,
+    geo_tag: typeGeoTag
+};
+
+create dataset ds_tweet(typeTweet) if not exists primary key id;
+
+create index text_idx if not exists on ds_tweet(text) type keyword;
+create index location_idx if not exists on ds_tweet(coordinate) type rtree;
+create index time_idx if not exists on ds_tweet(create_at) type btree;
+create index state_idx if not exists on ds_tweet(geo_tag.stateID) type btree;
+create index county_idx if not exists on ds_tweet(geo_tag.countyID) type btree;
+create index city_idx if not exists on ds_tweet(geo_tag.cityID) type btree;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/flwor/query-ASTERIXDB-1485/query-ASTERIXDB-1485.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/flwor/query-ASTERIXDB-1485/query-ASTERIXDB-1485.2.update.sqlpp
new file mode 100644
index 0000000..3fd1375
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/flwor/query-ASTERIXDB-1485/query-ASTERIXDB-1485.2.update.sqlpp
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+
+use test;
+
+load dataset ds_tweet using localfs
+(("path"="asterix_nc1://data/twitter/sample.adm"),("format"="adm"));
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/flwor/query-ASTERIXDB-1485/query-ASTERIXDB-1485.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/flwor/query-ASTERIXDB-1485/query-ASTERIXDB-1485.3.query.sqlpp
new file mode 100644
index 0000000..8cc7483
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/flwor/query-ASTERIXDB-1485/query-ASTERIXDB-1485.3.query.sqlpp
@@ -0,0 +1,42 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use test;
+
+let common = (
+    let `set` = [ 72,37,51,24,11,10,34,42,9,44,15,48,35,4,40,6,20,32,8,49,12,22,28,1,13,45,5,47,21,29,54,17,18,39,19,
+                 55,26,27,31,56,41,46,16,30,53,38,25,36,50,33,23,2 ]
+    select value t
+    from ds_tweet t, `set` sid
+    where `similarity-jaccard`(`word-tokens`(t.text), `word-tokens`("document")) > 0.0
+      and contains(t.text, "hate")
+      and t.create_at >= datetime("2012-04-30T18:53:42.894Z")
+      and t.create_at <= datetime("2012-05-03T19:25:11.000Z")
+      and t.geo_tag.stateID = sid
+    ),
+    hashtag = (
+        select element {"key": tag, "count" : (select value count(x) from h x)[0]}
+        from common t, t.hashtags h
+        where not (`is-null`(t.hashtags))
+        group by h as tag group as h
+        order by (select value count(x) from h x) desc, tag
+        limit 50
+    )
+
+select value hashtag;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-04/fulltext-04.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-04/fulltext-04.1.ddl.sqlpp
new file mode 100644
index 0000000..36f0bf4
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-04/fulltext-04.1.ddl.sqlpp
@@ -0,0 +1,56 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/*
+ *  Description     : Full-text search non-index test
+ *                  : This test is intended to verify that the full-text search DOES NOT work as expected.
+ *                  : query #2 - a string phrase is provided as a query predicate.
+ *                  :            this should throw an exception since we don't support a phrase search yet.
+ *  Expected Result : Exception
+ *
+*/
+
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type MyRecord as closed {
+  id: int64,
+  docid: int64,
+  val1: int64,
+  title: string,
+  point: point,
+  kwds: string,
+  line1: line,
+  line2: line,
+  poly1: polygon,
+  poly2: polygon,
+  rec: rectangle,
+  circle: circle
+};
+
+create type MyKeyword as closed {
+  keyword_text: string
+};
+
+create dataset MyData(MyRecord)
+  primary key id;
+
+create dataset MyKeywordData(MyKeyword)
+  primary key keyword_text;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-04/fulltext-04.2.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-04/fulltext-04.2.query.sqlpp
new file mode 100644
index 0000000..0e0c814
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-04/fulltext-04.2.query.sqlpp
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use test;
+
+select element {"id":o.id}
+from MyData as o
+where test.ftcontains(o.title, "object database", {"mode":"any"})
+order by o.id;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-05/fulltext-05.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-05/fulltext-05.1.ddl.sqlpp
new file mode 100644
index 0000000..7108545
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-05/fulltext-05.1.ddl.sqlpp
@@ -0,0 +1,56 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/*
+ *  Description     : Full-text search non-index test
+ *                  : This test is intended to verify that the full-text search DOES NOT work as expected.
+ *                  : query #3 - a string phrase in an ordered list is provided as a query predicate.
+ *                  :            this should throw an exception since we don't support a phrase search yet.
+ *  Expected Result : Exception
+ *
+*/
+
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type MyRecord as closed {
+  id: int64,
+  docid: int64,
+  val1: int64,
+  title: string,
+  point: point,
+  kwds: string,
+  line1: line,
+  line2: line,
+  poly1: polygon,
+  poly2: polygon,
+  rec: rectangle,
+  circle: circle
+};
+
+create type MyKeyword as closed {
+  keyword_text: string
+};
+
+create dataset MyData(MyRecord)
+  primary key id;
+
+create dataset MyKeywordData(MyKeyword)
+  primary key keyword_text;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-05/fulltext-05.2.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-05/fulltext-05.2.query.sqlpp
new file mode 100644
index 0000000..9149984
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-05/fulltext-05.2.query.sqlpp
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use test;
+
+select element {"id":o.id}
+from MyData as o
+where test.ftcontains(o.title, ["object database","systems"], {"mode":"any"})
+order by o.id;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-06/fulltext-06.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-06/fulltext-06.1.ddl.sqlpp
new file mode 100644
index 0000000..adbb904
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-06/fulltext-06.1.ddl.sqlpp
@@ -0,0 +1,56 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/*
+ *  Description     : Full-text search non-index test
+ *                  : This test is intended to verify that the full-text search DOES NOT work as expected.
+ *                  : query #3 - a string phrase in an unordered list is provided as a query predicate.
+ *                  :            this should throw an exception since we don't support a phrase search yet.
+ *  Expected Result : Exception
+ *
+*/
+
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type MyRecord as closed {
+  id: int64,
+  docid: int64,
+  val1: int64,
+  title: string,
+  point: point,
+  kwds: string,
+  line1: line,
+  line2: line,
+  poly1: polygon,
+  poly2: polygon,
+  rec: rectangle,
+  circle: circle
+};
+
+create type MyKeyword as closed {
+  keyword_text: string
+};
+
+create dataset MyData(MyRecord)
+  primary key id;
+
+create dataset MyKeywordData(MyKeyword)
+  primary key keyword_text;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-06/fulltext-06.2.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-06/fulltext-06.2.query.sqlpp
new file mode 100644
index 0000000..9a8bac5
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-06/fulltext-06.2.query.sqlpp
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use test;
+
+select element {"id":o.id}
+from MyData as o
+where test.ftcontains(o.title, {{"object database","systems"}}, {"mode":"any"})
+order by o.id;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-07/fulltext-07.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-07/fulltext-07.1.ddl.sqlpp
new file mode 100644
index 0000000..6190f4b
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-07/fulltext-07.1.ddl.sqlpp
@@ -0,0 +1,62 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/*
+ *  Description     : Full-text search non-index test
+ *                  : This test is intended to verify that the full-text search works as expected.
+ *                  : But, the form of the query is join. So, each keyword from the outer dataset will be processed
+ *                  : separately. Thus, query #3 and query #4 should generate the same result.
+ *                  : query #3 - two string values in [an ordered list] query with "any" option.
+ *                  :            an ordered list is first initialized by let clause and is being used.
+ *                  :            in this case, "any" option that enforces a disjunctive search will be applied.
+ *                  : query #4 - the same as query #3, but with a different option - "all"
+ *                  :            in this case, we explicitly specify "all" option that enforces a conjunctive search.
+ *                  : query #5 - the same as query #4, but without any option that is equivalent to "all".
+ *  Expected Result : Success
+ *
+*/
+
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type MyRecord as closed {
+  id: int64,
+  docid: int64,
+  val1: int64,
+  title: string,
+  point: point,
+  kwds: string,
+  line1: line,
+  line2: line,
+  poly1: polygon,
+  poly2: polygon,
+  rec: rectangle,
+  circle: circle
+};
+
+create type MyKeyword as closed {
+  keyword_text: string
+};
+
+create dataset MyData(MyRecord)
+  primary key id;
+
+create dataset MyKeywordData(MyKeyword)
+  primary key keyword_text;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-07/fulltext-07.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-07/fulltext-07.2.update.sqlpp
new file mode 100644
index 0000000..19bca80
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-07/fulltext-07.2.update.sqlpp
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use test;
+
+load dataset MyData
+using localfs
+(("path"="asterix_nc1://data/spatial/spatialData2.json"),("format"="adm"));
+
+insert into MyKeywordData ({"keyword_text":"object"});
+
+insert into MyKeywordData ({"keyword_text":"database"});
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-07/fulltext-07.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-07/fulltext-07.3.query.sqlpp
new file mode 100644
index 0000000..c6bf319
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-07/fulltext-07.3.query.sqlpp
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use test;
+
+select element {"id":t.id}
+from MyData t, MyKeywordData k
+where test.ftcontains(t.title, k.keyword_text, {"mode":"any"})
+order by t.id;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-07/fulltext-07.5.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-07/fulltext-07.5.query.sqlpp
new file mode 100644
index 0000000..3276f4e
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-07/fulltext-07.5.query.sqlpp
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use test;
+
+select element {"id":t.id}
+from MyData t, MyKeywordData k
+where test.ftcontains(t.title, k.keyword_text, {"mode":"all"})
+order by t.id;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-08/fulltext-08.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-08/fulltext-08.1.ddl.sqlpp
new file mode 100644
index 0000000..9957b25
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-08/fulltext-08.1.ddl.sqlpp
@@ -0,0 +1,91 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/*
+ *  Description     : Full-text search non-index test
+ *                  : This test is intended to verify that the full-text search works as expected.
+ *                  : But, the form of the query is join. So, each keyword from the outer dataset will be processed
+ *                  : separately. Thus, query #3 and query #4 should generate the same result.
+ *                  : query #3 - two string values in [an ordered list] query with "any" option.
+ *                  :            an ordered list is first initialized by let clause and is being used.
+ *                  :            in this case, "any" option that enforces a disjunctive search will be applied.
+ *                  : query #4 - the same as query #3, but with a different option - "all"
+ *                  :            in this case, we explicitly specify "all" option that enforces a conjunctive search.
+ *                  : query #5 - the same as query #4, but without any option that is equivalent to "all".
+ *  Expected Result : Success
+ *
+*/
+
+drop dataverse twitter if exists;
+create dataverse twitter if not exists;
+use twitter;
+create type typeUser if not exists as open {
+    id: int64,
+    name: string,
+    screen_name : string,
+    lang : string,
+    location: string,
+    create_at: date,
+    description: string,
+    followers_count: int32,
+    friends_count: int32,
+    statues_count: int64
+};
+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 typeGeoTag if not exists as open {
+    stateID: int32,
+    stateName: string,
+    countyID: int32,
+    countyName: string,
+    cityID: int32?,
+    cityName: string?
+};
+create type typeTweet 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 }} ? ,
+    user : typeUser,
+    place : typePlace?,
+    geo_tag: typeGeoTag
+};
+create dataset ds_tweet(typeTweet) if not exists primary key id
+with filter on create_at
+with {
+  "merge-policy": {
+    "name": "prefix",
+    "parameters": { "max-mergable-component-size": 134217728, "max-tolerance-component-count": 10 }
+  }
+};
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-08/fulltext-08.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-08/fulltext-08.2.update.sqlpp
new file mode 100644
index 0000000..5490f81
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-08/fulltext-08.2.update.sqlpp
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use twitter;
+
+load dataset ds_tweet
+using localfs
+(("path"="asterix_nc1://data/fulltext/cloudberry_sample_tweet.adm"),("format"="adm"));
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-08/fulltext-08.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-08/fulltext-08.3.query.sqlpp
new file mode 100644
index 0000000..147c0e5
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-08/fulltext-08.3.query.sqlpp
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use twitter;
+
+select element {"id":t.id}
+from twitter.ds_tweet t
+where twitter.ftcontains(t.text, ['good'])
+order by t.id
+
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-08/fulltext-08.4.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-08/fulltext-08.4.query.sqlpp
new file mode 100644
index 0000000..db0ed00
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-08/fulltext-08.4.query.sqlpp
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use twitter;
+
+select element {"id":t.id}
+from twitter.ds_tweet t
+where twitter.ftcontains(t.text, ['good','difficult'])
+order by t.id
+
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-08/fulltext-08.5.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-08/fulltext-08.5.query.sqlpp
new file mode 100644
index 0000000..49de67e
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-08/fulltext-08.5.query.sqlpp
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use twitter;
+
+select element {"id":t.id}
+from twitter.ds_tweet t
+where twitter.ftcontains(t.text, ['good','difficult'], {'mode':'any'})
+order by t.id
+
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-index-04/fulltext-index-04.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-index-04/fulltext-index-04.1.ddl.sqlpp
new file mode 100644
index 0000000..78531b9
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-index-04/fulltext-index-04.1.ddl.sqlpp
@@ -0,0 +1,58 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/*
+ *  Description     : Full-text search index test
+ *                  : This test is intended to verify that the full-text search DOES NOT work as expected.
+ *                  : query #2 - a string phrase is provided as a query predicate.
+ *                  :            this should throw an exception since we don't support a phrase search yet.
+ *  Expected Result : Exception
+ *
+*/
+
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type MyRecord as closed {
+  id: int64,
+  docid: int64,
+  val1: int64,
+  title: string,
+  point: point,
+  kwds: string,
+  line1: line,
+  line2: line,
+  poly1: polygon,
+  poly2: polygon,
+  rec: rectangle,
+  circle: circle
+};
+
+create type MyKeyword as closed {
+  keyword_text: string
+};
+
+create dataset MyData(MyRecord)
+  primary key id;
+
+create dataset MyKeywordData(MyKeyword)
+  primary key keyword_text;
+
+create index fulltext_index_title on MyData(title) type fulltext;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-index-04/fulltext-index-04.2.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-index-04/fulltext-index-04.2.query.sqlpp
new file mode 100644
index 0000000..490d4d9
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-index-04/fulltext-index-04.2.query.sqlpp
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use test;
+
+select element {"id":o.id}
+from MyData o
+where test.ftcontains(o.title, "object database", {"mode":"any"})
+order by o.id;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-index-05/fulltext-index-05.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-index-05/fulltext-index-05.1.ddl.sqlpp
new file mode 100644
index 0000000..2d824e1
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-index-05/fulltext-index-05.1.ddl.sqlpp
@@ -0,0 +1,58 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/*
+ *  Description     : Full-text search index test
+ *                  : This test is intended to verify that the full-text search DOES NOT work as expected.
+ *                  : query #2 - a string phrase in an ordered list is provided as a query predicate.
+ *                  :            this should throw an exception since we don't support a phrase search yet.
+ *  Expected Result : Exception
+ *
+*/
+
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type MyRecord as closed {
+  id: int64,
+  docid: int64,
+  val1: int64,
+  title: string,
+  point: point,
+  kwds: string,
+  line1: line,
+  line2: line,
+  poly1: polygon,
+  poly2: polygon,
+  rec: rectangle,
+  circle: circle
+};
+
+create type MyKeyword as closed {
+  keyword_text: string
+};
+
+create dataset MyData(MyRecord)
+  primary key id;
+
+create dataset MyKeywordData(MyKeyword)
+  primary key keyword_text;
+
+create index fulltext_index_title on MyData(title) type fulltext;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-index-05/fulltext-index-05.2.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-index-05/fulltext-index-05.2.query.sqlpp
new file mode 100644
index 0000000..a7af996
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-index-05/fulltext-index-05.2.query.sqlpp
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use test;
+
+select element {"id":o.id}
+from MyData o
+where test.ftcontains(o.title, ["object database", "systems"], {"mode":"any"})
+order by o.id;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-index-06/fulltext-index-06.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-index-06/fulltext-index-06.1.ddl.sqlpp
new file mode 100644
index 0000000..79583ba
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-index-06/fulltext-index-06.1.ddl.sqlpp
@@ -0,0 +1,58 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/*
+ *  Description     : Full-text search index test
+ *                  : This test is intended to verify that the full-text search DOES NOT work as expected.
+ *                  : query #2 - a string phrase in an unordered list is provided as a query predicate.
+ *                  :            this should throw an exception since we don't support a phrase search yet.
+ *  Expected Result : Exception
+ *
+*/
+
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type MyRecord as closed {
+  id: int64,
+  docid: int64,
+  val1: int64,
+  title: string,
+  point: point,
+  kwds: string,
+  line1: line,
+  line2: line,
+  poly1: polygon,
+  poly2: polygon,
+  rec: rectangle,
+  circle: circle
+};
+
+create type MyKeyword as closed {
+  keyword_text: string
+};
+
+create dataset MyData(MyRecord)
+  primary key id;
+
+create dataset MyKeywordData(MyKeyword)
+  primary key keyword_text;
+
+create index fulltext_index_title on MyData(title) type fulltext;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-index-06/fulltext-index-06.2.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-index-06/fulltext-index-06.2.query.sqlpp
new file mode 100644
index 0000000..6038b05
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fulltext/fulltext-index-06/fulltext-index-06.2.query.sqlpp
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use test;
+
+select element {"id":o.id}
+from MyData o
+where test.ftcontains(o.title, {{"object database", "systems"}}, {"mode":"any"})
+order by o.id;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1/basic-1_1.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1/basic-1_1.1.ddl.sqlpp
new file mode 100644
index 0000000..be7ff99
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1/basic-1_1.1.ddl.sqlpp
@@ -0,0 +1,40 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+drop dataverse fuzzyjoin_basic if exists;
+
+create dataverse fuzzyjoin_basic;
+
+use fuzzyjoin_basic;
+
+create type BasicType as open {
+    id: int32,
+    summary: string?
+};
+
+create type BasicWithIndexType as open {
+    id: int32
+};
+
+create dataset Basic(BasicType) primary key id;
+
+create dataset BasicWithIndex(BasicWithIndexType) primary key id;
+
+create index BasicWithIndex_summary_bt_idx on BasicWithIndex(summary: string?) type btree enforced;
+
+create index BasicWithIndex_summary_kw_idx on BasicWithIndex(summary: string?) type keyword enforced;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1/basic-1_1.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1/basic-1_1.2.update.sqlpp
new file mode 100644
index 0000000..a840608
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1/basic-1_1.2.update.sqlpp
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+use fuzzyjoin_basic;
+
+insert into Basic(
+{"id": 1, "summary": "Clear, Concise, and fun!"}
+);
+insert into Basic(
+{"id": 2, "summary": "Clear, Concise, and Charitable"}
+);
+
+insert into BasicWithIndex(
+{"id": 1, "summary": "Clear, Concise, and fun!"}
+);
+insert into BasicWithIndex(
+{"id": 2, "summary": "Clear, Concise, and Charitable"}
+);
+
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1/basic-1_1.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1/basic-1_1.3.query.sqlpp
new file mode 100644
index 0000000..18e6f8a
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1/basic-1_1.3.query.sqlpp
@@ -0,0 +1,160 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use fuzzyjoin_basic;
+
+set simthreshold '0.6f';
+
+let s1 = "Clear, Concise, and fun!",
+    s2 = "Clear, Concise, and Charitable",
+    psj = (
+        select element {
+            "s1":s,
+            "s2":t
+        } from [s1] s, [s2] t
+        where `word-tokens`(s) ~= `word-tokens`(t)
+    ),
+    nsj = (
+        select element {
+            "s1":s,
+            "s2":t
+        } from [s1] s, [s2] t
+        where `word-tokens`(s) /*+ indexnl */ ~= `word-tokens`(t)
+    ),
+    nvj = (
+        select element {
+            "s1": s,
+            "s2": t
+        } from [s1] s, [s2] t
+        where `similarity-jaccard-check`(`word-tokens`(s), `word-tokens`(t), .6f)[0] = true
+    ),
+    nvr = (
+        select element {
+            "s1": s,
+            "s2": t
+        } from [s1] s, [s2] t
+        where `similarity-jaccard`(`word-tokens`(s), `word-tokens`(t)) >= .6f
+    ),
+    tpsj = (
+        select element {
+            "s1": s.summary,
+            "s2": t.summary
+        } from Basic s, Basic t
+        where /*+ skip-index */ `similarity-jaccard`(`word-tokens`(s.summary), `word-tokens`(t.summary)) >= .6f
+        and s.id < t.id
+    ),
+    tnsj = (
+        select element {
+            "s1": s.summary,
+            "s2": t.summary
+        } from Basic s, Basic t
+        where /*+ indexnl */ `similarity-jaccard`(`word-tokens`(s.summary), `word-tokens`(t.summary)) >= .6f
+        and s.id < t.id
+    ),
+    itpsj = (
+        select element {
+            "s1": s.summary,
+            "s2": t.summary
+        } from BasicWithIndex s, BasicWithIndex t
+        where /*+ skip-index */ `similarity-jaccard`(`word-tokens`(s.summary), `word-tokens`(t.summary)) >= 0.6
+        and s.id < t.id
+    ),
+    itnsj = (
+        select element {
+            "s1": s.summary,
+            "s2": t.summary
+        } from BasicWithIndex s, BasicWithIndex t
+        where /*+ indexnl */ `similarity-jaccard`(`word-tokens`(s.summary), `word-tokens`(t.summary)) >= 0.6
+        and s.id < t.id
+    ),
+    `left` = `word-tokens`(s1),
+    `right` = `word-tokens`(s2),
+    vj = `similarity-jaccard-check`(`left`, `right`, 0.6f),
+    sr = `similarity-jaccard`(`left`, `right`) >= 0.6
+
+select element {"psj": psj, "nsj": nsj, "nvj": nvj, "nvr": nvr, "tpsj": tpsj, "tnsj": tnsj, "itpsj": itpsj, "itnsj": itnsj, "vj": vj, "sr": sr};
+
+/*
+
+Old .aql test. They have confirmed equivalent results.
+
+use dataverse fuzzyjoin_basic;
+
+set simthreshold '0.6f';
+
+let $s1 := "Clear, Concise, and fun!"
+let $s2 := "Clear, Concise, and Charitable"
+let $psj := (
+    for $s in [$s1]
+    for $t in [$s2]
+    where word-tokens($s) ~= word-tokens($t)
+    return {"s1": $s, "s2": $t}
+)
+let $nsj := (
+    for $s in [$s1]
+    for $t in [$s2]
+    where word-tokens($s) /*+ indexnl */ ~= word-tokens($t)
+    return {"s1": $s, "s2": $t}
+)
+let $nvj := (
+    for $s in [$s1]
+    for $t in [$s2]
+    where similarity-jaccard-check(word-tokens($s), word-tokens($t), .6f)[0] = true
+    return {"s1": $s, "s2": $t}
+)
+let $nvr := (
+    for $s in [$s1]
+    for $t in [$s2]
+    where similarity-jaccard(word-tokens($s), word-tokens($t)) >= .6f
+    return {"s1": $s, "s2": $t}
+)
+let $tpsj := (
+    for $s in dataset Basic
+    for $t in dataset Basic
+    where /*+ skip-index */ similarity-jaccard(word-tokens($s.summary), word-tokens($t.summary)) >= .6f
+    and $s.id < $t.id
+    return {"s1": $s.summary, "s2": $t.summary}
+)
+let $tnsj := (
+    for $s in dataset Basic
+    for $t in dataset Basic
+    where /*+ indexnl */ similarity-jaccard(word-tokens($s.summary), word-tokens($t.summary)) >= .6f
+    and $s.id < $t.id
+    return {"s1": $s.summary, "s2": $t.summary}
+)
+let $itpsj := (
+    for $s in dataset BasicWithIndex
+    for $t in dataset BasicWithIndex
+    where /*+ skip-index */ similarity-jaccard(word-tokens($s.summary), word-tokens($t.summary)) >= 0.6
+    and $s.id < $t.id
+    return {"s1": $s.summary, "s2": $t.summary}
+)
+let $itnsj := (
+    for $s in dataset BasicWithIndex
+    for $t in dataset BasicWithIndex
+    where /*+ indexnl */ similarity-jaccard(word-tokens($s.summary), word-tokens($t.summary)) >= 0.6
+    and $s.id < $t.id
+    return {"s1": $s.summary, "s2": $t.summary}
+)
+let $left := word-tokens($s1)
+let $right := word-tokens($s2)
+let $vj := similarity-jaccard-check($left, $right, 0.6f)
+let $sr := similarity-jaccard($left, $right) >= 0.6
+return {"psj": $psj, "nsj": $nsj, "nvj": $nvj, "nvr": $nvr, "tpsj": $tpsj, "tnsj": $tnsj, "itpsj": $itpsj, "itnsj": $itnsj, "vj": $vj, "sr": $sr}
+*/
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_2/basic-1_1_2.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_2/basic-1_1_2.1.ddl.sqlpp
new file mode 100644
index 0000000..8db1244
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_2/basic-1_1_2.1.ddl.sqlpp
@@ -0,0 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+drop dataverse fuzzyjoin_basic if exists;
+
+create dataverse fuzzyjoin_basic;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_2/basic-1_1_2.10.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_2/basic-1_1_2.10.query.sqlpp
new file mode 100644
index 0000000..c4cafe2
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_2/basic-1_1_2.10.query.sqlpp
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Support we have two records [1, 2, 3, 4, 5, 6, 7, 8, 9] and [2, 3, 4, 5, 6, 7, 8, 9, 10], we should return their
+ * similarity 0.8 by similarity-jaccard-check.
+ */
+use fuzzyjoin_basic;
+
+set `import-private-functions` 'true';
+
+let `left` = [1, 2, 3, 4, 5, 6, 7, 8, 9],
+    `right` = [2, 3, 4, 5, 6, 7, 8, 9, 10]
+
+select value `similarity-jaccard-check`(`left`, `right`, 0.8f);
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_2/basic-1_1_2.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_2/basic-1_1_2.2.update.sqlpp
new file mode 100644
index 0000000..042f3ce
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_2/basic-1_1_2.2.update.sqlpp
@@ -0,0 +1,18 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_2/basic-1_1_2.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_2/basic-1_1_2.3.query.sqlpp
new file mode 100644
index 0000000..602affb
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_2/basic-1_1_2.3.query.sqlpp
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Support we have two records [1, 2, 3, 4, 5, 6, 7, 8, 9] and [2, 3, 4, 5, 6, 7, 8, 9, 10], we should return their
+ * similarity 0.8 by similarity-jaccard-prefix even the first token of the left side is removed so that it takes the
+ * form of [2, 3, 4, 5, 6, 7, 8, 9] with its actual length 9 as the first parameter of similarity-jaccard-prefix.
+ */
+use fuzzyjoin_basic;
+
+set `import-private-functions` 'true';
+
+let `left` = [2, 3, 4, 5, 6, 7, 8, 9],
+    `right` = [2, 3, 4, 5, 6, 7, 8, 9, 10]
+
+select value `similarity-jaccard-prefix`(9, `left`, 9, `right`, `left`[1], 0.8f);
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_2/basic-1_1_2.4.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_2/basic-1_1_2.4.query.sqlpp
new file mode 100644
index 0000000..6da776a
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_2/basic-1_1_2.4.query.sqlpp
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Support we have two records [1, 2, 3, 4, 5, 6, 7, 8, 9] and [2, 3, 4, 5, 6, 7, 8, 9, 10], we should return their
+ * similarity 0.8 by similarity-jaccard-prefix even the first token of the right side is removed so that it takes the
+ * form of [2, 3, 4, 5, 6, 7, 8, 9] with its actual length 9 as the first parameter of similarity-jaccard-prefix.
+ */
+use fuzzyjoin_basic;
+
+set `import-private-functions` 'true';
+
+let `left` = [1, 2, 3, 4, 5, 6, 7, 8, 9],
+    `right` = [2, 3, 4, 5, 6, 7, 8, 9]
+
+select value `similarity-jaccard-prefix`(9, `left`, 9, `right`, `left`[1], 0.8f);
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_2/basic-1_1_2.5.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_2/basic-1_1_2.5.query.sqlpp
new file mode 100644
index 0000000..89a3ea4
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_2/basic-1_1_2.5.query.sqlpp
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Support we have two records [2, 3, 4, 5, 6, 7, 8, 9, 10] and [1, 2, 3, 4, 5, 6, 7, 8, 9], we should return their
+ * similarity 0.8 by similarity-jaccard-prefix even the first token of the right side is removed so that it takes the
+ * form of [2, 3, 4, 5, 6, 7, 8, 9] with its actual length 9 as the first parameter of similarity-jaccard-prefix.
+ */
+use fuzzyjoin_basic;
+
+set `import-private-functions` 'true';
+
+let `left` = [2, 3, 4, 5, 6, 7, 8, 9, 10],
+    `right` = [2, 3, 4, 5, 6, 7, 8, 9]
+
+select value `similarity-jaccard-prefix`(9, `left`, 9, `right`, `left`[1], 0.8f);
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_2/basic-1_1_2.6.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_2/basic-1_1_2.6.query.sqlpp
new file mode 100644
index 0000000..47fe16c
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_2/basic-1_1_2.6.query.sqlpp
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Support we have two records [2, 3, 4, 5, 6, 7, 8, 9, 10] and [1, 2, 3, 4, 5, 6, 7, 8, 9], we should return their
+ * similarity 0.8 by similarity-jaccard-prefix even the first token of the left side is removed so that it takes the
+ * form of [2, 3, 4, 5, 6, 7, 8, 9] with its actual length 9 as the first parameter of similarity-jaccard-prefix.
+ */
+use fuzzyjoin_basic;
+
+set `import-private-functions` 'true';
+
+let `left` = [2, 3, 4, 5, 6, 7, 8, 9],
+    `right` = [1, 2, 3, 4, 5, 6, 7, 8, 9]
+
+select value `similarity-jaccard-prefix`(9, `left`, 9, `right`, `left`[1], 0.8f);
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_2/basic-1_1_2.7.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_2/basic-1_1_2.7.query.sqlpp
new file mode 100644
index 0000000..837d644
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_2/basic-1_1_2.7.query.sqlpp
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Support we have two records [-3, -2, -1, 2, 0, 3, 5, 7, 9] and [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], we should return their
+ * similarity 5/15 by similarity-jaccard-prefix even the tokens {-3, -2, -1} of the left side are removed so that it
+ * takes the form of [2, 0, 3, 5, 7, 9] with its actual length 9 as the first parameter of similarity-jaccard-prefix.
+ */
+use fuzzyjoin_basic;
+
+set `import-private-functions` 'true';
+
+let `left` = [2, 0, 3, 5, 7, 9],
+    `right` = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
+
+select value `similarity-jaccard-prefix`(10, `left`, 10, `right`, `right`[1], 0.33f);
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_2/basic-1_1_2.8.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_2/basic-1_1_2.8.query.sqlpp
new file mode 100644
index 0000000..b754df4
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_2/basic-1_1_2.8.query.sqlpp
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Support we have two records [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] and [-3, -2, -1, 0, 2, 3, 5, 7, 9], we should return their
+ * similarity 5/14 by similarity-jaccard-prefix even the tokens {-3, -2, -1, 0} of the right side is removed so that it
+ * takes the form of [2, 3, 5, 7, 9] with its actual length 9 as the first parameter of similarity-jaccard-prefix.
+ */
+use fuzzyjoin_basic;
+
+set `import-private-functions` 'true';
+
+let `left` = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
+    `right` = [2, 3, 5, 7, 9]
+
+select value `similarity-jaccard-prefix`(10, `left`, 9, `right`, `left`[0], 0.35f);
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_2/basic-1_1_2.9.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_2/basic-1_1_2.9.query.sqlpp
new file mode 100644
index 0000000..6e4e514
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_2/basic-1_1_2.9.query.sqlpp
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Support we have two records [1, 2, 3, 4, 5, 6, 7, 8, 9] and [2, 3, 4, 5, 6, 7, 8, 9, 10], we should return their
+ * similarity 0.8 by similarity-jaccard-sorted.
+ */
+use fuzzyjoin_basic;
+
+set `import-private-functions` 'true';
+
+let `left` = [1, 2, 3, 4, 5, 6, 7, 8, 9],
+    `right` = [2, 3, 4, 5, 6, 7, 8, 9, 10]
+
+select value `similarity-jaccard-sorted`(`left`, `right`);
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_3/basic-1_1_3.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_3/basic-1_1_3.1.ddl.sqlpp
new file mode 100644
index 0000000..8db1244
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_3/basic-1_1_3.1.ddl.sqlpp
@@ -0,0 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+drop dataverse fuzzyjoin_basic if exists;
+
+create dataverse fuzzyjoin_basic;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_3/basic-1_1_3.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_3/basic-1_1_3.2.update.sqlpp
new file mode 100644
index 0000000..042f3ce
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_3/basic-1_1_3.2.update.sqlpp
@@ -0,0 +1,18 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_3/basic-1_1_3.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_3/basic-1_1_3.3.query.sqlpp
new file mode 100644
index 0000000..ee219cd
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_3/basic-1_1_3.3.query.sqlpp
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Support we have two records [3, 4, 5, 6, 8, 9] and [0, 1, 2, 3, 5, 6, 7], we should return their similarity 0.3 by
+ * similarity-jaccard-prefix even the first token of the left side is removed so that it takes the form of
+ * [2, 3, 4, 5, 6, 7, 8, 9] with its actual length 9 as the first parameter of similarity-jaccard-prefix.
+ */
+use fuzzyjoin_basic;
+
+set `import-private-functions` 'true';
+
+let `left` = [3, 4, 5, 6, 8, 9],
+    `right` = [3, 5, 6, 7]
+
+select value `similarity-jaccard-prefix`(6, `left`, 7, `right`, `right`[0], 0.3f);
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_3/basic-1_1_3.4.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_3/basic-1_1_3.4.query.sqlpp
new file mode 100644
index 0000000..9cf16c1
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/fuzzyjoin/basic-1_1_3/basic-1_1_3.4.query.sqlpp
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+use fuzzyjoin_basic;
+
+set `import-private-functions` 'true';
+
+let sims = [
+    `similarity-jaccard-prefix`(6, [3, 4, 5, 6, 8, 9], 7, [0, 1, 2, 3, 5, 6, 7], -1, 0.3f),
+    `similarity-jaccard-prefix`(6, [3, 4, 5, 6, 8, 9], 7, [3, 5, 6, 7], -1, 0.3f),
+    `similarity-jaccard-prefix`(7, [3, 5, 6, 7], 6, [3, 4, 5, 6, 8, 9], -1, 0.3f),
+    `similarity-jaccard-prefix`(6, [3, 4, 5, 6, 8, 9], 7, [3, 5, 6, 7], 3, 0.3f),
+    `similarity-jaccard-prefix`(7, [3, 5, 6, 7], 6, [3, 4, 5, 6, 8, 9], 3, 0.3f),
+    `similarity-jaccard-prefix`(6, [3, 4, 5, 6, 8, 9], 7, [3, 5, 6, 7], 6, 0.3f),
+    `similarity-jaccard-prefix`(7, [3, 5, 6, 7], 6, [3, 4, 5, 6, 8, 9], 6, 0.3f),
+    `similarity-jaccard-prefix`(7, [0, 1, 2, 3, 5, 6, 7], 6, [3, 5, 6, 8], -1, 0.3f),
+    `similarity-jaccard-prefix`(6, [3, 5, 6, 9], 7, [0, 1, 2, 3, 5, 6, 7], -1, 0.3f),
+    `similarity-jaccard-prefix`(7, [0, 1, 2, 3, 5, 6, 7], 6, [3, 5, 6, 8], 3, 0.3f),
+    `similarity-jaccard-prefix`(6, [3, 5, 6, 9], 7, [0, 1, 2, 3, 5, 6, 7], 3, 0.3f),
+    `similarity-jaccard-prefix`(7, [0, 1, 2, 3, 5, 6, 7], 6, [3, 5, 6, 8], 6, 0.3f),
+    `similarity-jaccard-prefix`(6, [3, 5, 6, 9], 7, [0, 1, 2, 3, 5, 6, 7], 6, 0.3f)
+]
+
+select value sims;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-join/btree-secondary-self-equi-join_01/btree-secondary-self-equi-join_01.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-join/btree-secondary-self-equi-join_01/btree-secondary-self-equi-join_01.1.ddl.sqlpp
new file mode 100644
index 0000000..b5d3049
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-join/btree-secondary-self-equi-join_01/btree-secondary-self-equi-join_01.1.ddl.sqlpp
@@ -0,0 +1,57 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+ /*
+ * Description    : We try to do a self_equi join on a dataset.
+ *                  We expect the join to be transformed into an indexed nested_loop join.
+ * Issue          : ASTERIXDB-1250
+ * Success        : Yes
+ */
+
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type TwitterUserType as closed {
+    screen_name: string,
+    lang: string,
+    friends_count: int64,
+    statuses_count: int64,
+    name: string,
+    followers_count: int64
+};
+
+create type TweetMessageType as closed {
+    tweetid: int64,
+        user: TwitterUserType,
+        sender_location: point,
+    send_time: datetime,
+        referred_topics: {{ string }},
+    message_text: string,
+    countA: int64,
+    countB: int64
+};
+
+create dataset TweetMessages(TweetMessageType)
+primary key tweetid;
+
+create index twmSndLocIx on TweetMessages(sender_location) type rtree;
+create index msgCountAIx on TweetMessages(countA) type btree;
+create index msgCountBIx on TweetMessages(countB) type btree;
+create index msgTextIx on TweetMessages(message_text) type keyword;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-join/btree-secondary-self-equi-join_01/btree-secondary-self-equi-join_01.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-join/btree-secondary-self-equi-join_01/btree-secondary-self-equi-join_01.2.update.sqlpp
new file mode 100644
index 0000000..7c91869
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-join/btree-secondary-self-equi-join_01/btree-secondary-self-equi-join_01.2.update.sqlpp
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+ /*
+ * Description    : We try to do a self-equi join on a dataset.
+ *                  We expect the join to be transformed into an indexed nested-loop join.
+ * Issue          : ASTERIXDB-1250
+ * Success        : Yes
+ */
+
+use test;
+
+load dataset TweetMessages
+using localfs
+(("path"="asterix_nc1://data/twitter/tw_for_indexleftouterjoinsqlpp.adm"),("format"="adm"));
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-join/btree-secondary-self-equi-join_01/btree-secondary-self-equi-join_01.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-join/btree-secondary-self-equi-join_01/btree-secondary-self-equi-join_01.3.query.sqlpp
new file mode 100644
index 0000000..c6330fc
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-join/btree-secondary-self-equi-join_01/btree-secondary-self-equi-join_01.3.query.sqlpp
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+ /*
+ * Description    : We try to do a self-equi join on a dataset.
+ *                  We expect the join to be transformed into an indexed nested-loop join.
+ * Issue          : ASTERIXDB-1250
+ * Success        : Yes
+ */
+
+USE test;
+
+SELECT ELEMENT {"tweetid2":t2.tweetid, "count2":t2.countB}
+FROM TweetMessages t1, TweetMessages t2
+let c = t1.countA + 20
+WHERE c = t2.countB
+ORDER BY t2.tweetid;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-join/rtree-spatial-self-intersect-point/rtree-spatial-self-intersect-point.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-join/rtree-spatial-self-intersect-point/rtree-spatial-self-intersect-point.1.ddl.sqlpp
new file mode 100644
index 0000000..0ddff82
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-join/rtree-spatial-self-intersect-point/rtree-spatial-self-intersect-point.1.ddl.sqlpp
@@ -0,0 +1,58 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+ /*
+ * Description    : We try to do a self_equi join on a dataset.
+ *                  We expect the join to be transformed into an indexed nested_loop join.
+ * Issue          : ASTERIXDB-1249
+ * Success        : Yes
+ */
+
+
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type TwitterUserType as closed {
+    screen_name: string,
+    lang: string,
+    friends_count: int64,
+    statuses_count: int64,
+    name: string,
+    followers_count: int64
+};
+
+create type TweetMessageType as closed {
+    tweetid: int64,
+        user: TwitterUserType,
+        sender_location: point,
+    send_time: datetime,
+        referred_topics: {{ string }},
+    message_text: string,
+    countA: int64,
+    countB: int64
+};
+
+create dataset TweetMessages(TweetMessageType)
+primary key tweetid;
+
+create index twmSndLocIx on TweetMessages(sender_location) type rtree;
+create index msgCountAIx on TweetMessages(countA) type btree;
+create index msgCountBIx on TweetMessages(countB) type btree;
+create index msgTextIx on TweetMessages(message_text) type keyword;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-join/rtree-spatial-self-intersect-point/rtree-spatial-self-intersect-point.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-join/rtree-spatial-self-intersect-point/rtree-spatial-self-intersect-point.2.update.sqlpp
new file mode 100644
index 0000000..98bb29d
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-join/rtree-spatial-self-intersect-point/rtree-spatial-self-intersect-point.2.update.sqlpp
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+ /*
+ * Description    : We try to do a self-equi join on a dataset.
+ *                  We expect the join to be transformed into an indexed nested-loop join.
+ * Issue          : ASTERIXDB-1249
+ * Success        : Yes
+ */
+
+use test;
+
+load dataset TweetMessages
+using localfs
+(("path"="asterix_nc1://data/twitter/tw_for_indexleftouterjoinsqlpp.adm"),("format"="adm"));
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-join/rtree-spatial-self-intersect-point/rtree-spatial-self-intersect-point.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-join/rtree-spatial-self-intersect-point/rtree-spatial-self-intersect-point.3.query.sqlpp
new file mode 100644
index 0000000..99e3d41
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-join/rtree-spatial-self-intersect-point/rtree-spatial-self-intersect-point.3.query.sqlpp
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+ /*
+ * Description    : We try to do a self-equi join on a dataset.
+ *                  We expect the join to be transformed into an indexed nested-loop join.
+ * Issue          : ASTERIXDB-1249
+ * Success        : Yes
+ */
+
+use test;
+
+select element {"tweetid2":t2.tweetid, "loc2":t2.sender_location}
+from TweetMessages t1, TweetMessages t2
+let n = create_circle(t1.sender_location, 0.5)
+where spatial_intersect(t2.sender_location, n)
+order by t2.tweetid;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-leftouterjoin/probe-pidx-with-join-btree-pidx1/probe-pidx-with-join-btree-pidx1.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-leftouterjoin/probe-pidx-with-join-btree-pidx1/probe-pidx-with-join-btree-pidx1.1.ddl.sqlpp
new file mode 100644
index 0000000..5669261
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-leftouterjoin/probe-pidx-with-join-btree-pidx1/probe-pidx-with-join-btree-pidx1.1.ddl.sqlpp
@@ -0,0 +1,56 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/*
+ * Description  : Test that left-outer-join may use two available indexes, one for primary index in prob subtree and
+ *                another for primary index in index subtree.
+ * Expected Res : Success
+ */
+
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type TwitterUserType as closed {
+    screen_name: string,
+    lang: string,
+    friends_count: int64,
+    statuses_count: int64,
+    name: string,
+    followers_count: int64
+};
+
+create type TweetMessageType as closed {
+    tweetid: int64,
+        user: TwitterUserType,
+        sender_location: point,
+    send_time: datetime,
+        referred_topics: {{ string }},
+    message_text: string,
+    countA: int64,
+    countB: int64
+};
+
+create dataset TweetMessages(TweetMessageType)
+primary key tweetid;
+
+create index twmSndLocIx on TweetMessages(sender_location) type rtree;
+create index msgCountAIx on TweetMessages(countA) type btree;
+create index msgCountBIx on TweetMessages(countB) type btree;
+create index msgTextIx on TweetMessages(message_text) type keyword;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-leftouterjoin/probe-pidx-with-join-btree-pidx1/probe-pidx-with-join-btree-pidx1.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-leftouterjoin/probe-pidx-with-join-btree-pidx1/probe-pidx-with-join-btree-pidx1.2.update.sqlpp
new file mode 100644
index 0000000..aeaff05
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-leftouterjoin/probe-pidx-with-join-btree-pidx1/probe-pidx-with-join-btree-pidx1.2.update.sqlpp
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/*
+ * Description  : Test that left-outer-join may use two available indexes, one for primary index in prob subtree and
+ *                another for primary index in index subtree.
+ * Expected Res : Success
+ */
+
+use test;
+
+load dataset TweetMessages
+using localfs
+(("path"="asterix_nc1://data/twitter/tw_for_indexleftouterjoinsqlpp.adm"),("format"="adm"));
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-leftouterjoin/probe-pidx-with-join-btree-pidx1/probe-pidx-with-join-btree-pidx1.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-leftouterjoin/probe-pidx-with-join-btree-pidx1/probe-pidx-with-join-btree-pidx1.3.query.sqlpp
new file mode 100644
index 0000000..b0811eb
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-leftouterjoin/probe-pidx-with-join-btree-pidx1/probe-pidx-with-join-btree-pidx1.3.query.sqlpp
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/*
+ * Description  : Test that left-outer-join may use two available indexes, one for primary index in prob subtree and
+ *                another for primary index in index subtree.
+ * Expected Res : Success
+ */
+
+
+use test;
+
+select value count(*)
+from (
+    select element {"tweetid1": t1.tweetid, "count1":t1.countA, "t2info": n}
+    from TweetMessages t1
+    let n = (
+            select element {"tweetid2":t2.tweetid, "count2":t2.countB}
+            from TweetMessages t2
+            where t1.tweetid = t2.tweetid
+    )
+    where t1.tweetid < int64("10")
+) m;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/btree-index-composite-key-02/btree-index-composite-key-02.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/btree-index-composite-key-02/btree-index-composite-key-02.1.ddl.sqlpp
new file mode 100644
index 0000000..4ea6d2f
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/btree-index-composite-key-02/btree-index-composite-key-02.1.ddl.sqlpp
@@ -0,0 +1,68 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/*
+ * Description     : Test that BTree index is used in query plan.
+ *                 : define two BTree indexes - composite key (l_orderkey,l_linenumber) on LineItem
+ *                 : single key (o_orderkey) on Orders
+ *                 : predicate => where $l.l_orderkey = $o.o_orderkey
+ *                 : Outer - $l (LineItem), Inner - $l (Orders)
+ * Expected Result : Success
+ * Issue           : ASTERIXDB-1186
+ */
+
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type LineItemType as
+{
+  l_orderkey: int64,
+  l_partkey: int64,
+  l_suppkey: int64,
+  l_linenumber: int32,
+  l_quantity: int32,
+  l_extendedprice: double,
+  l_discount: double,
+  l_tax: double,
+  l_returnflag: string,
+  l_linestatus: string,
+  l_shipdate: string,
+  l_commitdate: string,
+  l_receiptdate: string,
+  l_shipinstruct: string,
+  l_shipmode: string,
+  l_comment: string
+};
+
+create type OrderType as
+{
+  o_orderkey: int64,
+  o_custkey: int64,
+  o_orderstatus: string,
+  o_totalprice: double,
+  o_orderdate: string,
+  o_orderpriority: string,
+  o_clerk: string,
+  o_shippriority: int32,
+  o_comment: string
+};
+
+create dataset LineItem(LineItemType) primary key l_orderkey, l_linenumber;
+create dataset Orders(OrderType) primary key o_orderkey;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/btree-index-composite-key-02/btree-index-composite-key-02.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/btree-index-composite-key-02/btree-index-composite-key-02.2.update.sqlpp
new file mode 100644
index 0000000..1ae3531
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/btree-index-composite-key-02/btree-index-composite-key-02.2.update.sqlpp
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use test;
+
+load dataset LineItem
+using localfs
+(("path"="asterix_nc1://data/tpch0.001/lineitem.tbl"),("format"="delimited-text"),("delimiter"="|")) pre-sorted;
+
+load dataset Orders
+using localfs
+(("path"="asterix_nc1://data/tpch0.001/orders.tbl"),("format"="delimited-text"),("delimiter"="|")) pre-sorted;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/btree-index-composite-key-02/btree-index-composite-key-02.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/btree-index-composite-key-02/btree-index-composite-key-02.3.query.sqlpp
new file mode 100644
index 0000000..0290a70
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/btree-index-composite-key-02/btree-index-composite-key-02.3.query.sqlpp
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use test;
+
+select element {"o_orderkey":o.o_orderkey, "l_orderkey":l.l_orderkey}
+from LineItem l, Orders o
+where l.l_orderkey = o.o_orderkey
+order by o.o_orderkey, l.l_orderkey;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/btree-index-composite-key-02/btree-index-composite-key-02.4.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/btree-index-composite-key-02/btree-index-composite-key-02.4.query.sqlpp
new file mode 100644
index 0000000..603eb0f
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/btree-index-composite-key-02/btree-index-composite-key-02.4.query.sqlpp
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use test;
+
+select element {"o_orderkey":o.o_orderkey, "l_orderkey":l.l_orderkey}
+from Orders o, LineItem l
+where l.l_orderkey = o.o_orderkey
+order by o.o_orderkey, l.l_orderkey;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/intersection-with-filter/tinysocial-intersect.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/intersection-with-filter/tinysocial-intersect.1.ddl.sqlpp
new file mode 100644
index 0000000..56bf7d3
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/intersection-with-filter/tinysocial-intersect.1.ddl.sqlpp
@@ -0,0 +1,46 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+drop dataverse TinySocial if exists;
+create dataverse TinySocial;
+use TinySocial;
+
+create type TwitterUserType as open {
+        `screen-name`: string,
+        lang: string,
+        friends_count: int64,
+        statuses_count: int64,
+        name: string,
+        followers_count: int64,
+        `sender-location`: point
+};
+
+create type TweetMessageType as closed {
+        tweetid: int64,
+        user: TwitterUserType,
+        `send-time`: datetime,
+        `referred-topics`: {{ string }},
+        `message-text`: string
+};
+
+create dataset TweetMessages(TweetMessageType)
+primary key tweetid with filter on `send-time`;
+
+create index twTimeIdx on TweetMessages(`send-time`) type btree;
+create index twLocationIdx on TweetMessages(user.`sender-location`) type rtree;
+create index twMessage on TweetMessages(`message-text`) type ngram(2);
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/intersection-with-filter/tinysocial-intersect.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/intersection-with-filter/tinysocial-intersect.2.update.sqlpp
new file mode 100644
index 0000000..1212f3e
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/intersection-with-filter/tinysocial-intersect.2.update.sqlpp
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use TinySocial;
+
+load dataset TweetMessages using localfs
+(("path"="asterix_nc1://data/tinysocial/twm-nested.adm"),("format"="adm"));
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/intersection-with-filter/tinysocial-intersect.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/intersection-with-filter/tinysocial-intersect.3.query.sqlpp
new file mode 100644
index 0000000..6e89c19
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/intersection-with-filter/tinysocial-intersect.3.query.sqlpp
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+use TinySocial;
+
+let ts = datetime("2010-12-12T00:00:00Z"), region = create_rectangle(create_point(0.0,0.0),create_point(100.0,100.0)), k = 'verizon'
+select value t
+from TweetMessages t
+where t.`send-time` > ts and spatial_intersect(t.user.`sender-location`, region) and contains(t.`message-text`, k);
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/intersection/tinysocial-intersect.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/intersection/tinysocial-intersect.1.ddl.sqlpp
new file mode 100644
index 0000000..9097b92
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/intersection/tinysocial-intersect.1.ddl.sqlpp
@@ -0,0 +1,47 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+drop dataverse TinySocial if exists;
+create dataverse TinySocial;
+use TinySocial;
+
+create type TwitterUserType as open {
+        `screen-name`: string,
+        lang: string,
+        friends_count: int64,
+        statuses_count: int64,
+        name: string,
+        followers_count: int64,
+        `sender-location`: point
+};
+
+create type TweetMessageType as closed {
+        tweetid: int64,
+        user: TwitterUserType,
+        `send-time`: datetime,
+        `referred-topics`: {{ string }},
+        `message-text`: string
+};
+
+create dataset TweetMessages(TweetMessageType)
+primary key tweetid with filter on `send-time`;
+
+create index twTimeIdx on TweetMessages(`send-time`) type btree;
+create index twLocationIdx on TweetMessages(user.`sender-location`) type rtree;
+create index twMessage on TweetMessages(`message-text`) type ngram(2);
+
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/intersection/tinysocial-intersect.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/intersection/tinysocial-intersect.2.update.sqlpp
new file mode 100644
index 0000000..1212f3e
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/intersection/tinysocial-intersect.2.update.sqlpp
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use TinySocial;
+
+load dataset TweetMessages using localfs
+(("path"="asterix_nc1://data/tinysocial/twm-nested.adm"),("format"="adm"));
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/intersection/tinysocial-intersect.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/intersection/tinysocial-intersect.3.query.sqlpp
new file mode 100644
index 0000000..6e89c19
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/intersection/tinysocial-intersect.3.query.sqlpp
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+use TinySocial;
+
+let ts = datetime("2010-12-12T00:00:00Z"), region = create_rectangle(create_point(0.0,0.0),create_point(100.0,100.0)), k = 'verizon'
+select value t
+from TweetMessages t
+where t.`send-time` > ts and spatial_intersect(t.user.`sender-location`, region) and contains(t.`message-text`, k);
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/intersection_with_nodegroup/intersection_with_nodegroup.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/intersection_with_nodegroup/intersection_with_nodegroup.1.ddl.sqlpp
new file mode 100644
index 0000000..f337543
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/intersection_with_nodegroup/intersection_with_nodegroup.1.ddl.sqlpp
@@ -0,0 +1,51 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+drop dataverse TinySocial if exists;
+create dataverse TinySocial;
+use TinySocial;
+
+create type TwitterUserType as open {
+        `screen-name`: string,
+        lang: string,
+        friends_count: int64,
+        statuses_count: int64,
+        name: string,
+        followers_count: int64,
+        `sender-location`: point
+};
+
+create type TweetMessageType as closed {
+        tweetid: int64,
+        user: TwitterUserType,
+        `send-time`: datetime,
+        `referred-topics`: {{ string }},
+        `message-text`: string
+};
+
+drop nodegroup group_test if exists;
+create  nodegroup group_test  on
+    asterix_nc1;
+
+create dataset TweetMessages(TweetMessageType)
+primary key tweetid on group_test
+hints(cardinality=100);
+
+create index twTimeIdx on TweetMessages(`send-time`) type btree;
+create index twLocationIdx on TweetMessages(user.`sender-location`) type rtree;
+create index twMessage on TweetMessages(`message-text`) type ngram(2);
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/intersection_with_nodegroup/intersection_with_nodegroup.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/intersection_with_nodegroup/intersection_with_nodegroup.2.update.sqlpp
new file mode 100644
index 0000000..1212f3e
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/intersection_with_nodegroup/intersection_with_nodegroup.2.update.sqlpp
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use TinySocial;
+
+load dataset TweetMessages using localfs
+(("path"="asterix_nc1://data/tinysocial/twm-nested.adm"),("format"="adm"));
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/intersection_with_nodegroup/intersection_with_nodegroup.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/intersection_with_nodegroup/intersection_with_nodegroup.3.query.sqlpp
new file mode 100644
index 0000000..6e89c19
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/intersection_with_nodegroup/intersection_with_nodegroup.3.query.sqlpp
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+use TinySocial;
+
+let ts = datetime("2010-12-12T00:00:00Z"), region = create_rectangle(create_point(0.0,0.0),create_point(100.0,100.0)), k = 'verizon'
+select value t
+from TweetMessages t
+where t.`send-time` > ts and spatial_intersect(t.user.`sender-location`, region) and contains(t.`message-text`, k);
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/intersection_with_nodegroup/intersection_with_nodegroup.4.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/intersection_with_nodegroup/intersection_with_nodegroup.4.ddl.sqlpp
new file mode 100644
index 0000000..058c36c
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/intersection_with_nodegroup/intersection_with_nodegroup.4.ddl.sqlpp
@@ -0,0 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+drop dataverse TinySocial if exists;
+
+drop nodegroup group_test if exists;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/inverted-index-ngram-edit-distance-with-two-ngram-index/inverted-index-ngram-edit-distance-with-two-ngram-index.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/inverted-index-ngram-edit-distance-with-two-ngram-index/inverted-index-ngram-edit-distance-with-two-ngram-index.1.ddl.sqlpp
new file mode 100644
index 0000000..fb4c9cb
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/inverted-index-ngram-edit-distance-with-two-ngram-index/inverted-index-ngram-edit-distance-with-two-ngram-index.1.ddl.sqlpp
@@ -0,0 +1,43 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+ /*
+ * Description     : Test that conducts an inverted index search on the field with multiple same types of indexes.
+ * Expected Result : Success
+ * Issue           : ASTERIXDB-1700
+ */
+
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type DBLPType as closed {
+  id: int64,
+  dblpid: string,
+  title: string,
+  authors: string,
+  misc: string
+};
+
+create nodegroup group1 if not exists on asterix_nc1, asterix_nc2;
+
+create dataset DBLP(DBLPType)
+  primary key id on group1;
+
+
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/inverted-index-ngram-edit-distance-with-two-ngram-index/inverted-index-ngram-edit-distance-with-two-ngram-index.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/inverted-index-ngram-edit-distance-with-two-ngram-index/inverted-index-ngram-edit-distance-with-two-ngram-index.2.update.sqlpp
new file mode 100644
index 0000000..8d21809
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/inverted-index-ngram-edit-distance-with-two-ngram-index/inverted-index-ngram-edit-distance-with-two-ngram-index.2.update.sqlpp
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+use test;
+
+load dataset DBLP
+using localfs
+(("path"="asterix_nc1://data/dblp-small/dblp-small-id.txt"),("format"="delimited-text"),("delimiter"=":")) pre-sorted;
+
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/inverted-index-ngram-edit-distance-with-two-ngram-index/inverted-index-ngram-edit-distance-with-two-ngram-index.3.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/inverted-index-ngram-edit-distance-with-two-ngram-index/inverted-index-ngram-edit-distance-with-two-ngram-index.3.ddl.sqlpp
new file mode 100644
index 0000000..b9eeb33
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/inverted-index-ngram-edit-distance-with-two-ngram-index/inverted-index-ngram-edit-distance-with-two-ngram-index.3.ddl.sqlpp
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+use test;
+
+create index ngram2_index on DBLP(authors) type ngram(2);
+
+create index ngram3_index on DBLP(authors) type ngram(3);
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/inverted-index-ngram-edit-distance-with-two-ngram-index/inverted-index-ngram-edit-distance-with-two-ngram-index.4.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/inverted-index-ngram-edit-distance-with-two-ngram-index/inverted-index-ngram-edit-distance-with-two-ngram-index.4.query.sqlpp
new file mode 100644
index 0000000..1ed906b
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/inverted-index-ngram-edit-distance-with-two-ngram-index/inverted-index-ngram-edit-distance-with-two-ngram-index.4.query.sqlpp
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+use test;
+
+select value o
+from DBLP o
+let ed = edit_distance_check(o.authors, "Amihay Motro", 1)
+where ed[0];
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/verify/index-verify.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/verify/index-verify.1.ddl.sqlpp
new file mode 100644
index 0000000..bbc8f70
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/verify/index-verify.1.ddl.sqlpp
@@ -0,0 +1,64 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Description    : Comparison of dataset scan results to secondary index point lookups for BTree and RTree
+ * Success        : Yes
+ */
+
+drop dataverse test if exists;
+create dataverse test;
+
+use test;
+
+create type TwitterUserType as {
+    screen_name: string,
+    lang: string,
+    friends_count: int32,
+    statuses_count: int32,
+    name: string,
+    followers_count: int32
+};
+
+create type TweetMessageType as {
+    tweetid: int64,
+    user: string,
+    sender_location: point,
+    send_time: datetime,
+    forward_from: int64,
+    retweet_from: int64,
+    referred_topics: {{ string }},
+    message_text: string
+};
+
+create type FacebookMessageType as {
+    message_id: int64,
+    author_id: int64,
+    in_response_to: int64?,
+    sender_location: point,
+    send_time: datetime,
+    message: string
+};
+
+create dataset TweetMessages(TweetMessageType) primary key tweetid;
+create dataset FacebookMessages(FacebookMessageType) primary key message_id;
+
+create index fbmAutIdIx on FacebookMessages(author_id);
+
+create index twmSndTmIx on TweetMessages(send_time);
+create index twmSndLocIx on TweetMessages(sender_location) type rtree;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/verify/index-verify.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/verify/index-verify.2.update.sqlpp
new file mode 100644
index 0000000..a3a0340
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/verify/index-verify.2.update.sqlpp
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+ /*
+ * Description    : Index Nested Loop Join on three datasets. Two index nested loop joins should be nested properly.
+ * Success        : Yes
+ */
+use test;
+
+load dataset TweetMessages
+using localfs
+(("path"="asterix_nc1://data/index-join/tw_messages_sqlpp.adm"),("format"="adm"));
+
+load dataset FacebookMessages
+using localfs
+(("path"="asterix_nc1://data/fbm-with-send-time-sqlpp.adm"),("format"="adm"));
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/verify/index-verify.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/verify/index-verify.3.query.sqlpp
new file mode 100644
index 0000000..9780b99
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/verify/index-verify.3.query.sqlpp
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+ /*
+ * Description    : BTree selection compared with dataset scan
+ * Success        : Yes
+ */
+use test;
+
+let a = (select value n from FacebookMessages n), b = (select value n from FacebookMessages n where n.author_id >= 0 and n.author_id <= 10)
+
+select x from a
+where every u in b satisfies y.message_id != x.message;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/verify/index-verify.4.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/verify/index-verify.4.query.sqlpp
new file mode 100644
index 0000000..72f8b32
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/index-selection/verify/index-verify.4.query.sqlpp
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+ /*
+ * Description    : BTree selection compared with dataset scan
+ * Success        : Yes
+ */
+
+use test;
+
+let a = (
+    let pts = (select value t.sender_location from TweetMessages t)
+    select value count(t) from TweetMessages t, pts p    where spatial_intersect(t.sender_location, p)),
+    b = (select value count(t) from TweetMessages t)
+
+select value (a[0] = b[0]);
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/json/issue-ASTERIXDB-1165/nullablefield.1.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/json/issue-ASTERIXDB-1165/nullablefield.1.query.sqlpp
new file mode 100644
index 0000000..0118328
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/json/issue-ASTERIXDB-1165/nullablefield.1.query.sqlpp
@@ -0,0 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+ select value count(x) from [1,2,3] x;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/leftouterjoin/query-ASTERIXDB-769/query-ASTERIXDB-769.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/leftouterjoin/query-ASTERIXDB-769/query-ASTERIXDB-769.1.ddl.sqlpp
new file mode 100644
index 0000000..3a98864
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/leftouterjoin/query-ASTERIXDB-769/query-ASTERIXDB-769.1.ddl.sqlpp
@@ -0,0 +1,35 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type Type1 as closed {
+id: int32,
+items: [
+{ subid: string, `value`: int32 }
+]
+};
+create type Type2 as closed
+{ id: string, val: int32 };
+
+create dataset Dataset1(Type1) primary key id;
+
+create dataset Dataset2(Type2) primary key id;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/leftouterjoin/query-ASTERIXDB-769/query-ASTERIXDB-769.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/leftouterjoin/query-ASTERIXDB-769/query-ASTERIXDB-769.2.update.sqlpp
new file mode 100644
index 0000000..36d5222
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/leftouterjoin/query-ASTERIXDB-769/query-ASTERIXDB-769.2.update.sqlpp
@@ -0,0 +1,52 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+
+use test;
+
+insert into Dataset1 (
+{ "id": 1, "items": [
+{ "subid": "2", "value": 1 }
+,
+{ "subid": "4", "value": 1111 }
+] }
+);
+insert into Dataset1 (
+{ "id": 2, "items": [
+{ "subid": "0", "value": 1 }
+,
+{ "subid": "1", "value": 2222 }
+] }
+);
+insert into Dataset2 (
+{ "id": "0", "val": 0 }
+);
+insert into Dataset2 (
+{ "id": "1", "val": 1 }
+);
+insert into Dataset2 (
+{ "id": "2", "val": 2 }
+);
+insert into Dataset2 (
+{ "id": "3", "val": 3 }
+);
+insert into Dataset2 (
+{ "id": "4", "val": 4 }
+);
+
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/leftouterjoin/query-ASTERIXDB-769/query-ASTERIXDB-769.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/leftouterjoin/query-ASTERIXDB-769/query-ASTERIXDB-769.3.query.sqlpp
new file mode 100644
index 0000000..7a8dc6a
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/leftouterjoin/query-ASTERIXDB-769/query-ASTERIXDB-769.3.query.sqlpp
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use test;
+
+select element {
+    "id":i.id,
+    "items": (select element {"subid":k.id, "value": switch_case(k.id = j.subid, true, j.`value`, false, k.val)}
+              from Dataset2 k
+              order by k.id)
+}
+from Dataset1 i, i.items j
+order by i.id, j.`value`;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/list/query-ASTERIXDB-1131-2/query-ASTERIXDB-1131.1.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/list/query-ASTERIXDB-1131-2/query-ASTERIXDB-1131.1.query.sqlpp
new file mode 100644
index 0000000..c74b14a
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/list/query-ASTERIXDB-1131-2/query-ASTERIXDB-1131.1.query.sqlpp
@@ -0,0 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+select value a
+from [null, starts_with("xyz", null), starts_with("xy", "x")] a;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/list/query-ASTERIXDB-1131/query-ASTERIXDB-1131.1.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/list/query-ASTERIXDB-1131/query-ASTERIXDB-1131.1.query.sqlpp
new file mode 100644
index 0000000..8269b16
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/list/query-ASTERIXDB-1131/query-ASTERIXDB-1131.1.query.sqlpp
@@ -0,0 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+select value a
+from [starts_with("xyz", null), starts_with("xy", "x")] a;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/list/query-ASTERIXDB-1212-2-open/query-ASTERIXDB-1212-2-open.1.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/list/query-ASTERIXDB-1212-2-open/query-ASTERIXDB-1212-2-open.1.query.sqlpp
new file mode 100644
index 0000000..284f3c4
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/list/query-ASTERIXDB-1212-2-open/query-ASTERIXDB-1212-2-open.1.query.sqlpp
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+let `all` = [ { "ka":"a1",  "kb":"b1"},
+              { "ka":2,  "kb":"b2"}]
+select element {"g":k, "s1": x[1].ka}
+from `all` x
+group by x.kb as k group as x;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/list/query-ASTERIXDB-1212-2/query-ASTERIXDB-1212-2.1.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/list/query-ASTERIXDB-1212-2/query-ASTERIXDB-1212-2.1.query.sqlpp
new file mode 100644
index 0000000..53fdb27
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/list/query-ASTERIXDB-1212-2/query-ASTERIXDB-1212-2.1.query.sqlpp
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+let `all` = [{ "ka":"a1",  "kb":"b1"},
+              { "ka":"a2",  "kb":"b2"}]
+
+select element {"g": k, "s1":x[1].ka}
+from `all` x
+group by x.kb as k group as x;
+
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/list/query-ASTERIXDB-1212-open/query-ASTERIXDB-1212-open.1.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/list/query-ASTERIXDB-1212-open/query-ASTERIXDB-1212-open.1.query.sqlpp
new file mode 100644
index 0000000..67ad655
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/list/query-ASTERIXDB-1212-open/query-ASTERIXDB-1212-open.1.query.sqlpp
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+let `all` = [ { "ka":"a1",  "kb":"b1"},
+              { "ka":2,  "kb":"b2"}]
+
+select value `all`[3].ka;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/list/query-ASTERIXDB-1212/query-ASTERIXDB-1212.1.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/list/query-ASTERIXDB-1212/query-ASTERIXDB-1212.1.query.sqlpp
new file mode 100644
index 0000000..78c0eee
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/list/query-ASTERIXDB-1212/query-ASTERIXDB-1212.1.query.sqlpp
@@ -0,0 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+let `all` = [{ "ka":"a1",  "kb":"b1"}, { "ka":"a1",  "kb":"b2"}]
+
+select value `all`[3].ka;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/list/query-ASTERIXDB-673/query-ASTERIXDB-673.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/list/query-ASTERIXDB-673/query-ASTERIXDB-673.1.ddl.sqlpp
new file mode 100644
index 0000000..ca87eb0
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/list/query-ASTERIXDB-673/query-ASTERIXDB-673.1.ddl.sqlpp
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+drop dataverse test if exists;
+create dataverse test;
+
+use test;
+
+create type FacebookMessageType as closed {
+        message_id: int64,
+        author_id: int64,
+        in_response_to: int64?,
+        sender_location: point?,
+        message: string,
+        send_time: datetime
+};
+
+create dataset FacebookMessages(FacebookMessageType)
+primary key message_id;
+
+
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/list/query-ASTERIXDB-673/query-ASTERIXDB-673.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/list/query-ASTERIXDB-673/query-ASTERIXDB-673.2.update.sqlpp
new file mode 100644
index 0000000..eb58efc
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/list/query-ASTERIXDB-673/query-ASTERIXDB-673.2.update.sqlpp
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use test;
+
+load dataset FacebookMessages using localfs
+(("path"="asterix_nc1://data/fbm-with-send-time-sqlpp.adm"),("format"="adm"));
+
+
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/list/query-ASTERIXDB-673/query-ASTERIXDB-673.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/list/query-ASTERIXDB-673/query-ASTERIXDB-673.3.query.sqlpp
new file mode 100644
index 0000000..0edb869
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/list/query-ASTERIXDB-673/query-ASTERIXDB-673.3.query.sqlpp
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * This test case is to verify the fix for ASTERIXDB-673.
+ */
+
+use test;
+
+select element {"author":author, "msgids":msgid}
+from FacebookMessages m
+where msgid > 0 and msgid < 10
+group by m.author_id as author group as msgid(message_id as msgid);
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/load/dataset-with-meta/dataset-with-meta.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/load/dataset-with-meta/dataset-with-meta.1.ddl.sqlpp
new file mode 100644
index 0000000..ba0db0f
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/load/dataset-with-meta/dataset-with-meta.1.ddl.sqlpp
@@ -0,0 +1,36 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Description  : Create a dataset with meta type and load it
+ * Expected Res : Failure
+ * Date         : 15th Mar 2016
+ */
+
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type RecordType as open{
+};
+
+create type MetaType as open{
+id:string
+};
+
+create dataset DatasetWithMeta(RecordType) with meta(MetaType)primary key meta().id;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/load/dataset-with-meta/dataset-with-meta.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/load/dataset-with-meta/dataset-with-meta.2.update.sqlpp
new file mode 100644
index 0000000..9e67004
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/load/dataset-with-meta/dataset-with-meta.2.update.sqlpp
@@ -0,0 +1,27 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Description  : Create a dataset with meta type and load it
+ * Expected Res : Failure
+ * Date         : 15th Mar 2016
+ */
+
+use test;
+
+load dataset DatasetWithMeta using localfs(("format"="adm"));
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/load/escapes-err-1/escapes-err-1.3.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/load/escapes-err-1/escapes-err-1.3.ddl.sqlpp
new file mode 100644
index 0000000..11db2eb
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/load/escapes-err-1/escapes-err-1.3.ddl.sqlpp
@@ -0,0 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+drop dataverse TestDataverse;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/load/file-not-found/file-not-found.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/load/file-not-found/file-not-found.1.ddl.sqlpp
new file mode 100644
index 0000000..38567fb
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/load/file-not-found/file-not-found.1.ddl.sqlpp
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/**
+ * Test loading from a file that does not exist.
+ * Expected result: fail - File not found.
+ */
+
+drop dataverse broken if exists;
+create dataverse broken;
+use broken;
+
+create type xtype as closed { id: int32 };
+create dataset X(xtype) primary key id;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/load/file-not-found/file-not-found.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/load/file-not-found/file-not-found.2.update.sqlpp
new file mode 100644
index 0000000..af6e894
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/load/file-not-found/file-not-found.2.update.sqlpp
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/**
+ * Test loading from a file that does not exist.
+ * Expected result: fail - File not found.
+ */
+
+use broken;
+
+load dataset X using localfs(
+  ("path"="asterix_nc1://bla"),
+  ("format"="delimited-text"),
+  ("delimiter"="|")
+);
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/load/load_non-empty_index/load_non-empty_index.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/load/load_non-empty_index/load_non-empty_index.1.ddl.sqlpp
new file mode 100644
index 0000000..af5f339
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/load/load_non-empty_index/load_non-empty_index.1.ddl.sqlpp
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Description  : Bulkload non-empty index.
+ * Expected Res : Failure
+ * Date         : 29 July 2016
+ */
+drop dataverse OpenTinySocial if exists;
+create dataverse OpenTinySocial;
+use OpenTinySocial;
+
+create type FacebookMessageType as {
+  `message-id`: int64
+};
+
+create dataset FacebookMessages(FacebookMessageType)
+primary key `message-id`;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/load/load_non-empty_index/load_non-empty_index.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/load/load_non-empty_index/load_non-empty_index.2.update.sqlpp
new file mode 100644
index 0000000..5c84a3e
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/load/load_non-empty_index/load_non-empty_index.2.update.sqlpp
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Description  : Bulkload non-empty index.
+ * Expected Res : Failure
+ * Date         : 29 July 2016
+ */
+use OpenTinySocial;
+
+load dataset FacebookMessages
+using localfs
+(("path"="asterix_nc1://data/tinysocial/fbm.adm"),("format"="adm"));
+
+load dataset FacebookMessages
+using localfs
+(("path"="asterix_nc1://data/tinysocial/fbm.adm"),("format"="adm"));
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/load/load_non-empty_index/load_non-empty_index.3.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/load/load_non-empty_index/load_non-empty_index.3.ddl.sqlpp
new file mode 100644
index 0000000..dbc8d52
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/load/load_non-empty_index/load_non-empty_index.3.ddl.sqlpp
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Description  : Bulkload non-empty index.
+ * Expected Res : Failure
+ * Date         : 29 July 2016
+ */
+drop dataverse OpenTinySocial;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/load/utf8/utf8.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/load/utf8/utf8.1.ddl.sqlpp
new file mode 100644
index 0000000..58e6ccf
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/load/utf8/utf8.1.ddl.sqlpp
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type DocType as open {
+  id: string,
+  description: string?
+};
+
+create dataset Doc (DocType)
+primary key id;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/load/utf8/utf8.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/load/utf8/utf8.2.update.sqlpp
new file mode 100644
index 0000000..7147b66
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/load/utf8/utf8.2.update.sqlpp
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/**
+ *
+ * CSV file loading utf8
+ * Expected result: success
+ *
+ */
+
+use test;
+
+load dataset Doc
+using localfs
+(("path"="asterix_nc1://data/adm-load/utf8.adm"),("format"="adm"));
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/load/utf8/utf8.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/load/utf8/utf8.3.query.sqlpp
new file mode 100644
index 0000000..a538b32
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/load/utf8/utf8.3.query.sqlpp
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+use test;
+
+let s = (select value count(i) from Doc i)
+
+select value s[0];
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/meta/query_dataset_with_meta-1/query_dataset_with_meta-1.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/meta/query_dataset_with_meta-1/query_dataset_with_meta-1.1.ddl.sqlpp
new file mode 100644
index 0000000..f3247e5
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/meta/query_dataset_with_meta-1/query_dataset_with_meta-1.1.ddl.sqlpp
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type AuxiliaryType as open {
+  `key`:int32
+};
+
+create type LineType as open {
+  id:int32,
+  text: string
+};
+
+create dataset Book(LineType) with meta(AuxiliaryType)
+primary key id;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/meta/query_dataset_with_meta-1/query_dataset_with_meta-1.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/meta/query_dataset_with_meta-1/query_dataset_with_meta-1.2.update.sqlpp
new file mode 100644
index 0000000..bd244d0
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/meta/query_dataset_with_meta-1/query_dataset_with_meta-1.2.update.sqlpp
@@ -0,0 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/meta/query_dataset_with_meta-1/query_dataset_with_meta-1.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/meta/query_dataset_with_meta-1/query_dataset_with_meta-1.3.query.sqlpp
new file mode 100644
index 0000000..2281961
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/meta/query_dataset_with_meta-1/query_dataset_with_meta-1.3.query.sqlpp
@@ -0,0 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use test;
+
+select value x from Book x;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/meta/query_dataset_with_meta-1/query_dataset_with_meta-1.4.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/meta/query_dataset_with_meta-1/query_dataset_with_meta-1.4.ddl.sqlpp
new file mode 100644
index 0000000..dc10acd
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/meta/query_dataset_with_meta-1/query_dataset_with_meta-1.4.ddl.sqlpp
@@ -0,0 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+drop dataverse test if exists;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/meta/query_dataset_with_meta-2/query_dataset_with_meta-2.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/meta/query_dataset_with_meta-2/query_dataset_with_meta-2.1.ddl.sqlpp
new file mode 100644
index 0000000..5ce4322
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/meta/query_dataset_with_meta-2/query_dataset_with_meta-2.1.ddl.sqlpp
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type AuxiliaryType as open {
+  `key`:int32
+};
+
+create type LineType as open {
+  id:int32,
+  text: string
+};
+
+create dataset Book(LineType) with meta(AuxiliaryType)
+primary key meta().`key`;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/meta/query_dataset_with_meta-2/query_dataset_with_meta-2.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/meta/query_dataset_with_meta-2/query_dataset_with_meta-2.2.update.sqlpp
new file mode 100644
index 0000000..bd244d0
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/meta/query_dataset_with_meta-2/query_dataset_with_meta-2.2.update.sqlpp
@@ -0,0 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/meta/query_dataset_with_meta-2/query_dataset_with_meta-2.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/meta/query_dataset_with_meta-2/query_dataset_with_meta-2.3.query.sqlpp
new file mode 100644
index 0000000..9a4ddad
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/meta/query_dataset_with_meta-2/query_dataset_with_meta-2.3.query.sqlpp
@@ -0,0 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use test;
+
+select value x from Book x;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/meta/query_dataset_with_meta-2/query_dataset_with_meta-2.4.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/meta/query_dataset_with_meta-2/query_dataset_with_meta-2.4.ddl.sqlpp
new file mode 100644
index 0000000..dc10acd
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/meta/query_dataset_with_meta-2/query_dataset_with_meta-2.4.ddl.sqlpp
@@ -0,0 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+drop dataverse test if exists;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/meta/query_dataset_with_meta_failure/query_dataset_with_meta_failure.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/meta/query_dataset_with_meta_failure/query_dataset_with_meta_failure.1.ddl.sqlpp
new file mode 100644
index 0000000..1085b54
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/meta/query_dataset_with_meta_failure/query_dataset_with_meta_failure.1.ddl.sqlpp
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type AuxiliaryType as open {
+  `key`:int32
+};
+
+create type LineType as open {
+  id:int32,
+  text: string
+};
+
+create dataset Book(LineType) with meta(AuxiliaryType)
+primary key meta().`key`;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/meta/query_dataset_with_meta_failure/query_dataset_with_meta_failure.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/meta/query_dataset_with_meta_failure/query_dataset_with_meta_failure.2.update.sqlpp
new file mode 100644
index 0000000..bd244d0
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/meta/query_dataset_with_meta_failure/query_dataset_with_meta_failure.2.update.sqlpp
@@ -0,0 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/meta/query_dataset_with_meta_failure/query_dataset_with_meta_failure.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/meta/query_dataset_with_meta_failure/query_dataset_with_meta_failure.3.query.sqlpp
new file mode 100644
index 0000000..ee2bfd1
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/meta/query_dataset_with_meta_failure/query_dataset_with_meta_failure.3.query.sqlpp
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use test;
+
+select value x
+from Book x, Book y
+where meta().`key` = y.id;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/meta/query_dataset_with_meta_failure/query_dataset_with_meta_failure.4.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/meta/query_dataset_with_meta_failure/query_dataset_with_meta_failure.4.ddl.sqlpp
new file mode 100644
index 0000000..dc10acd
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/meta/query_dataset_with_meta_failure/query_dataset_with_meta_failure.4.ddl.sqlpp
@@ -0,0 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+drop dataverse test if exists;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/misc/query-ASTERIXDB-819-2/query-ASTERIXDB-819-2.1.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/misc/query-ASTERIXDB-819-2/query-ASTERIXDB-819-2.1.query.sqlpp
new file mode 100644
index 0000000..4e1e44f
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/misc/query-ASTERIXDB-819-2/query-ASTERIXDB-819-2.1.query.sqlpp
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+case
+    when (1!=1.0) then "result"
+    else {"type": "object"}
+end;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/misc/query-ASTERIXDB-819/query-ASTERIXDB-819.1.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/misc/query-ASTERIXDB-819/query-ASTERIXDB-819.1.query.sqlpp
new file mode 100644
index 0000000..5e7b92a
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/misc/query-ASTERIXDB-819/query-ASTERIXDB-819.1.query.sqlpp
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+case
+    when (true) then null
+    else 1
+end;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/misc/query-ASTERIXDB-865/query-ASTERIXDB-865.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/misc/query-ASTERIXDB-865/query-ASTERIXDB-865.1.ddl.sqlpp
new file mode 100644
index 0000000..954456b
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/misc/query-ASTERIXDB-865/query-ASTERIXDB-865.1.ddl.sqlpp
@@ -0,0 +1,40 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type page_info_type as open {};
+
+create type page_views_type as closed {
+    user: string,
+    action: int32,
+    timespent: int32,
+    query_term: string,
+    ip_addr: int32,
+    timestamp: int32,
+    estimated_revenue: double,
+    page_info: page_info_type,
+    page_links: {{ page_info_type}}
+};
+
+create dataset page_views(page_views_type)
+primary key user;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/misc/query-ASTERIXDB-865/query-ASTERIXDB-865.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/misc/query-ASTERIXDB-865/query-ASTERIXDB-865.2.update.sqlpp
new file mode 100644
index 0000000..cc2e853
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/misc/query-ASTERIXDB-865/query-ASTERIXDB-865.2.update.sqlpp
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use test;
+
+load dataset page_views using localfs
+(("path"="asterix_nc1://data/page_views.adm"),("format"="adm"));
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/misc/query-ASTERIXDB-865/query-ASTERIXDB-865.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/misc/query-ASTERIXDB-865/query-ASTERIXDB-865.3.query.sqlpp
new file mode 100644
index 0000000..cea7528
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/misc/query-ASTERIXDB-865/query-ASTERIXDB-865.3.query.sqlpp
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/* This test is to verify the fix for ASTERIXDB-865. */
+
+use test;
+
+select element {"user": t.user, "header": h}
+from page_views as t, (
+    case
+        when (t.action = 1) then [t.page_info.a]
+        else (select value pl.b from t.page_links pl)
+    end
+) h
+order by t.user, h;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/nestrecords/query-ASTERIXDB-1025/query-ASTERIXDB-1025.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/nestrecords/query-ASTERIXDB-1025/query-ASTERIXDB-1025.1.ddl.sqlpp
new file mode 100644
index 0000000..9b7851e
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/nestrecords/query-ASTERIXDB-1025/query-ASTERIXDB-1025.1.ddl.sqlpp
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+drop dataverse TinyCollege if exists;
+create dataverse TinyCollege;
+use TinyCollege;
+
+create type MentorType as open
+{
+  name:string
+};
+
+create type StaffType as open
+{
+  name: string,
+  office: string,
+  employment: interval,
+  mentor: MentorType
+};
+
+create dataset Staff(StaffType) primary key name;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/nestrecords/query-ASTERIXDB-1025/query-ASTERIXDB-1025.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/nestrecords/query-ASTERIXDB-1025/query-ASTERIXDB-1025.2.update.sqlpp
new file mode 100644
index 0000000..461b252
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/nestrecords/query-ASTERIXDB-1025/query-ASTERIXDB-1025.2.update.sqlpp
@@ -0,0 +1,36 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use TinyCollege;
+
+insert into Staff ({"name":"Alex", "office":"A", "employment":interval(date("2003-01-01"), date("2008-01-01")), "mentor":
+{"name":"Agent K", "status":"unknown"}
+, "kids":{"name":"Joe","age":13}});
+
+insert into Staff ({"name":"Frank", "office":"A", "employment":interval(date("2004-01-01"), date("2009-01-01")), "mentor":
+{"name":"Agent K", "status":"unknown"}
+, "kids":{"name":"Wrae","age":10}});
+
+insert into Staff ({"name":"Henry", "office":"C", "employment":interval(date("2003-01-01"), date("2008-01-01")), "mentor":{"name":"Agent K", "status":"unknown"}});
+
+insert into Staff ({"name":"Mary", "office":"B", "employment":interval(date("2006-01-01"), date("2010-01-01")), "mentor":
+{"name":"Agent K", "status":"unknown"}
+, "kids":{"name":"Jill","age":11}});
+
+insert into Staff ({"name":"Vicky", "office":"D", "employment":interval(date("2001-01-01"), date("2010-01-01")), "mentor":{"name":"Agent K", "status":"unknown"}});
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/nestrecords/query-ASTERIXDB-1025/query-ASTERIXDB-1025.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/nestrecords/query-ASTERIXDB-1025/query-ASTERIXDB-1025.3.query.sqlpp
new file mode 100644
index 0000000..75a9dfe
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/nestrecords/query-ASTERIXDB-1025/query-ASTERIXDB-1025.3.query.sqlpp
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use TinyCollege;
+
+select value f.kids
+from TinyCollege.Staff f
+order by f.name;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/nestrecords/query-ASTERIXDB-1025/query-ASTERIXDB-1025.4.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/nestrecords/query-ASTERIXDB-1025/query-ASTERIXDB-1025.4.ddl.sqlpp
new file mode 100644
index 0000000..b6ddd8e
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/nestrecords/query-ASTERIXDB-1025/query-ASTERIXDB-1025.4.ddl.sqlpp
@@ -0,0 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+drop dataverse TinyCollege;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/nonpure/global-datetime-use-index/global-datetime-use-index.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/nonpure/global-datetime-use-index/global-datetime-use-index.1.ddl.sqlpp
new file mode 100644
index 0000000..d17245d
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/nonpure/global-datetime-use-index/global-datetime-use-index.1.ddl.sqlpp
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+drop dataverse channels if exists;
+create dataverse channels;
+use channels;
+
+create type userLocation as {
+  userId: int,
+  stamp: datetime
+};
+
+create dataset Users(userLocation)
+primary key stamp;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/nonpure/global-datetime-use-index/global-datetime-use-index.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/nonpure/global-datetime-use-index/global-datetime-use-index.2.update.sqlpp
new file mode 100644
index 0000000..d45d6b8
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/nonpure/global-datetime-use-index/global-datetime-use-index.2.update.sqlpp
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use channels;
+
+insert into Users(
+[{"userId":1,"stamp":`current-datetime`() - `day-time-duration`("PT10M")},
+{"userId":2,"stamp":`current-datetime`() - `day-time-duration`("PT8M")},
+{"userId":3,"stamp":`current-datetime`() + `day-time-duration`("PT10M")}]
+);
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/nonpure/global-datetime-use-index/global-datetime-use-index.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/nonpure/global-datetime-use-index/global-datetime-use-index.3.query.sqlpp
new file mode 100644
index 0000000..07cb0ad
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/nonpure/global-datetime-use-index/global-datetime-use-index.3.query.sqlpp
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use channels;
+
+let time = current_datetime()
+select value result.userId
+from Users result
+where result.stamp < time
+order by result.userId;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/nonpure/local-datetime-ignore-index/local-datetime-ignore-index.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/nonpure/local-datetime-ignore-index/local-datetime-ignore-index.1.ddl.sqlpp
new file mode 100644
index 0000000..d17245d
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/nonpure/local-datetime-ignore-index/local-datetime-ignore-index.1.ddl.sqlpp
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+drop dataverse channels if exists;
+create dataverse channels;
+use channels;
+
+create type userLocation as {
+  userId: int,
+  stamp: datetime
+};
+
+create dataset Users(userLocation)
+primary key stamp;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/nonpure/local-datetime-ignore-index/local-datetime-ignore-index.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/nonpure/local-datetime-ignore-index/local-datetime-ignore-index.2.update.sqlpp
new file mode 100644
index 0000000..bfec71d
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/nonpure/local-datetime-ignore-index/local-datetime-ignore-index.2.update.sqlpp
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use channels;
+
+insert into Users(
+[{"userId":1,"stamp":`current-datetime`() - `day-time-duration`("PT10M")},
+{"userId":2,"stamp":`current-datetime`() + `day-time-duration`("PT8M")},
+{"userId":3,"stamp":`current-datetime`() + `day-time-duration`("PT10M")}]
+);
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/nonpure/local-datetime-ignore-index/local-datetime-ignore-index.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/nonpure/local-datetime-ignore-index/local-datetime-ignore-index.3.query.sqlpp
new file mode 100644
index 0000000..3c8d1d8
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/nonpure/local-datetime-ignore-index/local-datetime-ignore-index.3.query.sqlpp
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use channels;
+
+let time = current_datetime()
+select value result.userId
+from Users result
+where result.stamp > time
+order by result.userId;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/objects/ObjectsQueries.xml b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/objects/ObjectsQueries.xml
index 87bd204..b1ccdcd 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/objects/ObjectsQueries.xml
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/objects/ObjectsQueries.xml
@@ -228,4 +228,4 @@
       <expected-warn>Duplicate field name "fname1" (in line 25, at column 45)</expected-warn>
     </compilation-unit>
   </test-case>
-</test-group>
\ No newline at end of file
+</test-group>
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/error-checking/index-type-collision/index-type-collision.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/error-checking/index-type-collision/index-type-collision.1.ddl.sqlpp
new file mode 100644
index 0000000..ac95391
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/error-checking/index-type-collision/index-type-collision.1.ddl.sqlpp
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type testType as open {
+   id: int32
+};
+
+create dataset testDS(testType) primary key id;
+create index testIdx1 on testDS(`value`: int32?) enforced;
+create index testIdx2 on testDS(`value`: string?) enforced;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/error-checking/index-type-promotion-collision/index-type-promotion-collision.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/error-checking/index-type-promotion-collision/index-type-promotion-collision.1.ddl.sqlpp
new file mode 100644
index 0000000..5ec440b
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/error-checking/index-type-promotion-collision/index-type-promotion-collision.1.ddl.sqlpp
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type testType as open {
+   id: int32
+};
+
+create dataset testDS(testType) primary key id;
+create index testIdx1 on testDS(`value`: int64?) enforced;
+create index testIdx2 on testDS(`value`: int32?) enforced;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/error-checking/object-type-collision/object-type-collision.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/error-checking/object-type-collision/object-type-collision.1.ddl.sqlpp
new file mode 100644
index 0000000..04c34fc
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/error-checking/object-type-collision/object-type-collision.1.ddl.sqlpp
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type testType as open {
+   id: int32,
+   `value`: string
+};
+
+create dataset testDS(testType) primary key id;
+create index testIdx on testDS(`value`: int32?) enforced;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/index-selection/multi-index-composite-key/multi-index-composite-key.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/index-selection/multi-index-composite-key/multi-index-composite-key.1.ddl.sqlpp
new file mode 100644
index 0000000..3849d9b
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/index-selection/multi-index-composite-key/multi-index-composite-key.1.ddl.sqlpp
@@ -0,0 +1,50 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Description     : Test that BTree open index is used in query plan
+ *                 : define the BTree open index on a composite key (fname,lanme)
+ *                 : predicate => where $l.fname="Julio" and $l.lname="Isa"
+ * Expected Result : Success
+ * Issue           : Issue 162
+ * Date            : 27th March 2014
+ */
+
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type Emp as closed {
+id:int64,
+fname:string,
+lname:string,
+age:int64,
+dept:string
+};
+
+create type EmpOpen as open {
+id:int64,
+fname:string,
+age:int64,
+dept:string
+};
+
+create dataset employee(Emp) primary key id;
+
+create dataset employeeOpen(EmpOpen) primary key id;
+
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/index-selection/multi-index-composite-key/multi-index-composite-key.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/index-selection/multi-index-composite-key/multi-index-composite-key.2.update.sqlpp
new file mode 100644
index 0000000..c9b421e
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/index-selection/multi-index-composite-key/multi-index-composite-key.2.update.sqlpp
@@ -0,0 +1,36 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Description     : Test that BTree enforced open index is used in query plan
+ *                 : define the BTree enforced open index on a composite key (fname?,lanme?)
+ *                 : predicate => where $l.fname="Julio" and $l.lname="Isa"
+ * Expected Result : Success
+ * Issue           : Issue 162
+ * Date            : 27th March 2014
+ */
+
+use test;
+
+load dataset employee
+using localfs
+(("path"="asterix_nc1://data/names.adm"),("format"="delimited-text"),("delimiter"="|"));
+
+insert into employeeOpen (
+  select value x from employee x
+);
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/index-selection/multi-index-composite-key/multi-index-composite-key.3.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/index-selection/multi-index-composite-key/multi-index-composite-key.3.ddl.sqlpp
new file mode 100644
index 0000000..8dd9a96
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/index-selection/multi-index-composite-key/multi-index-composite-key.3.ddl.sqlpp
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Description     : Test that BTree enforced open index is used in query plan
+ *                 : define the BTree enforced open index on a composite key (fname?,lanme?)
+ *                 : predicate => where $l.fname="Julio" and $l.lname="Isa"
+ * Expected Result : Success
+ * Issue           : Issue 162
+ * Date            : 27th March 2014
+ */
+
+use test;
+
+// create secondary index
+
+create index idx_employee_f_l_name on employeeOpen(fname, lname:string?) enforced;
+create index idx_employee_l_f_name on employeeOpen(lname:string?, fname) enforced;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/index-selection/multi-index-composite-key/multi-index-composite-key.4.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/index-selection/multi-index-composite-key/multi-index-composite-key.4.query.sqlpp
new file mode 100644
index 0000000..29d205c
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/index-selection/multi-index-composite-key/multi-index-composite-key.4.query.sqlpp
@@ -0,0 +1,38 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Description     : Test that BTree enforced open index is used in query plan
+ *                 : define the BTree enforced open index on a composite key (fname?,lanme?)
+ *                 : predicate => where $l.fname="Julio" and $l.lname="Isa"
+ * Expected Result : Success
+ * Issue           : Issue 162
+ * Date            : 27th March 2014
+ */
+
+use test;
+
+select element {
+  "id": l.id,
+  "fname": l.fname,
+  "lname": l.lname,
+  "age": l.age,
+  "dept": l.dept
+}
+from employeeOpen l
+where l.fname="Julio" and l.lname="Isa";
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/index-selection/multi-index-composite-key/multi-index-composite-key.5.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/index-selection/multi-index-composite-key/multi-index-composite-key.5.ddl.sqlpp
new file mode 100644
index 0000000..102f37b
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/index-selection/multi-index-composite-key/multi-index-composite-key.5.ddl.sqlpp
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Description     : Test that BTree enforced open index is used in query plan
+ *                 : define the BTree enforced open index on a composite key (fname?,lanme?)
+ *                 : predicate => where $l.fname="Julio" and $l.lname="Isa"
+ * Expected Result : Success
+ * Issue           : Issue 162
+ * Date            : 27th March 2014
+ */
+
+use test;
+
+// create secondary index
+
+drop index employeeOpen.idx_employee_f_l_name;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/index-selection/multi-index-composite-key/multi-index-composite-key.6.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/index-selection/multi-index-composite-key/multi-index-composite-key.6.query.sqlpp
new file mode 100644
index 0000000..29d205c
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/index-selection/multi-index-composite-key/multi-index-composite-key.6.query.sqlpp
@@ -0,0 +1,38 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+/*
+ * Description     : Test that BTree enforced open index is used in query plan
+ *                 : define the BTree enforced open index on a composite key (fname?,lanme?)
+ *                 : predicate => where $l.fname="Julio" and $l.lname="Isa"
+ * Expected Result : Success
+ * Issue           : Issue 162
+ * Date            : 27th March 2014
+ */
+
+use test;
+
+select element {
+  "id": l.id,
+  "fname": l.fname,
+  "lname": l.lname,
+  "age": l.age,
+  "dept": l.dept
+}
+from employeeOpen l
+where l.fname="Julio" and l.lname="Isa";
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/index-selection/multi-index/multi-index.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/index-selection/multi-index/multi-index.1.ddl.sqlpp
new file mode 100644
index 0000000..ebe24c2
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/index-selection/multi-index/multi-index.1.ddl.sqlpp
@@ -0,0 +1,43 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type DBLPType as closed {
+  id: int64,
+  dblpid: string,
+  title: string,
+  authors: string,
+  misc: string
+};
+
+create type DBLPOpenType as open {
+  id: int64,
+  dblpid: string,
+  authors: string,
+  misc: string
+};
+
+create nodegroup group1 if not exists on asterix_nc1, asterix_nc2;
+
+create dataset DBLP(DBLPType)
+  primary key id on group1;
+create dataset DBLPOpen(DBLPOpenType)
+  primary key id on group1;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/index-selection/multi-index/multi-index.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/index-selection/multi-index/multi-index.2.update.sqlpp
new file mode 100644
index 0000000..81120b1
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/index-selection/multi-index/multi-index.2.update.sqlpp
@@ -0,0 +1,35 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+use test;
+
+load dataset DBLP
+using localfs
+(("path"="asterix_nc1://data/dblp-small/dblp-small-id.txt"),("format"="delimited-text"),("delimiter"=":")) pre-sorted;
+
+insert into test.DBLPOpen (
+  select value x
+  from test.DBLP x
+  where x.id <= 50
+);
+
+insert into test.DBLPOpen (
+  select element {"id":c.id, "dblpid": c.dblpid, "authors": c.authors, "misc":c.misc}
+  from test.DBLP c
+  where c.id > 50
+);
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/index-selection/multi-index/multi-index.3.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/index-selection/multi-index/multi-index.3.ddl.sqlpp
new file mode 100644
index 0000000..2c66af5
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/index-selection/multi-index/multi-index.3.ddl.sqlpp
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use test;
+
+create index ngram_index on DBLPOpen(title:string?) type ngram(3) enforced;
+create index keyword_index on DBLPOpen(title:string?) type keyword enforced;
+create index btree_index on DBLPOpen(title:string?) enforced;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/index-selection/multi-index/multi-index.4.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/index-selection/multi-index/multi-index.4.query.sqlpp
new file mode 100644
index 0000000..d0a6651
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/index-selection/multi-index/multi-index.4.query.sqlpp
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+use test;
+
+select element {"id": o.id,
+  "dblpid": o.dblpid,
+  "title": o.title,
+  "authors": o.authors,
+  "misc": o.misc
+}
+from DBLPOpen o
+where contains(o.title, "Multimedia")
+order by o.id;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/index-selection/multi-index/multi-index.5.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/index-selection/multi-index/multi-index.5.query.sqlpp
new file mode 100644
index 0000000..89e863c
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/index-selection/multi-index/multi-index.5.query.sqlpp
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use test;
+
+select element {
+  "id": o.id,
+  "dblpid": o.dblpid,
+  "title": o.title,
+  "authors": o.authors,
+  "misc": o.misc
+}
+from DBLPOpen o
+let jacc = similarity_jaccard_check(word_tokens(o.title), word_tokens("Transactions for Cooperative Environments"), 0.5f)
+where jacc[0];
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/index-selection/multi-index/multi-index.6.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/index-selection/multi-index/multi-index.6.query.sqlpp
new file mode 100644
index 0000000..bb0c143
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/open-index-enforced/index-selection/multi-index/multi-index.6.query.sqlpp
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+use test;
+
+select element {
+  "id": o.id,
+  "dblpid": o.dblpid,
+  "title": o.title,
+  "authors": o.authors,
+  "misc": o.misc
+}
+from DBLPOpen o
+where o.title = "Multimedia Information Systems  Issues and Approaches."
+order by o.title;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/limit_on_variable_01/limit_on_variable_01.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/limit_on_variable_01/limit_on_variable_01.1.ddl.sqlpp
new file mode 100644
index 0000000..c10b3c5
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/limit_on_variable_01/limit_on_variable_01.1.ddl.sqlpp
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/*
+ *  Description     : Limit on a variable should work.
+ *  Issue           : ASTERIXDB-1204
+ *  Expected Result : Success
+ *
+*/
+
+drop dataverse ifVerse if exists;
+create dataverse ifVerse;
+use ifVerse;
+
+create type ifType as open
+{
+    id: int32
+};
+
+create dataset ifds(ifType)
+primary key id;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/limit_on_variable_01/limit_on_variable_01.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/limit_on_variable_01/limit_on_variable_01.2.update.sqlpp
new file mode 100644
index 0000000..bdb3751
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/limit_on_variable_01/limit_on_variable_01.2.update.sqlpp
@@ -0,0 +1,59 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/*
+ *  Description     : Limit on a variable should work.
+ *  Issue           : ASTERIXDB-1204
+ *  Expected Result : Success
+ *
+*/
+
+use ifVerse;
+
+insert into ifds(
+{
+  "id":0,
+  "names":{
+    "count": "1",
+    "name" :{
+      "firstName" : "wail",
+      "lastName" : "Alkowaileet"
+    }
+  }
+}
+);
+
+insert into ifds(
+{
+  "id":1,
+  "names":{
+    "count": "2",
+    "name" :[
+    {
+      "firstName" : "wail",
+      "lastName" : "Alkowaileet"
+    },
+    {
+      "firstName" : "Sattam",
+      "lastName" : "Alsubaiee"
+    }
+    ]
+  }
+}
+);
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/limit_on_variable_01/limit_on_variable_01.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/limit_on_variable_01/limit_on_variable_01.3.query.sqlpp
new file mode 100644
index 0000000..91e6481
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/limit_on_variable_01/limit_on_variable_01.3.query.sqlpp
@@ -0,0 +1,46 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/*
+ *  Description     : Limit on a variable should work.
+ *  Issue           : ASTERIXDB-1204
+ *  Expected Result : Success
+ *
+*/
+
+use ifVerse;
+
+let coAuthList = (
+    select element {
+        nameString:x.names.name
+    }
+    from ifds x
+    let nameString = "names"
+    where x.names.count != "1"
+), coAuth = (
+    select element {
+        "firstName": y.firstName,
+        "lastName": y.lastName
+    }
+    from coAuthList x, x.names y
+)
+
+select value x
+from coAuth x
+limit 1;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/orderby_limit_01/orderby_limit_01.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/orderby_limit_01/orderby_limit_01.1.ddl.sqlpp
new file mode 100644
index 0000000..9d49a03
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/orderby_limit_01/orderby_limit_01.1.ddl.sqlpp
@@ -0,0 +1,53 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/*
+ *  Description     : Limit Push-down into an external sort after an index-search - order by a non primary key field.
+ *  Expected Result : Success
+ *
+*/
+
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type MyRecord as closed {
+  id: int64,
+  docid: int64,
+  val1: int64,
+  title: string,
+  point: point,
+  kwds: string,
+  line1: line,
+  line2: line,
+  poly1: polygon,
+  poly2: polygon,
+  rec: rectangle,
+  circle: circle
+};
+
+create dataset MyData(MyRecord)
+  primary key id;
+
+create index btree_index_docid on MyData(docid) type btree;
+create index btree_index_val1 on MyData(val1) type btree;
+create index rtree_index_point on MyData(point) type rtree;
+create index rtree_index_rec on MyData(rec) type rtree;
+create index ngram_index_title on MyData(title) type ngram(3);
+create index keyword_index_title on MyData(title) type keyword;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/orderby_limit_01/orderby_limit_01.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/orderby_limit_01/orderby_limit_01.2.update.sqlpp
new file mode 100644
index 0000000..fe38ff7
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/orderby_limit_01/orderby_limit_01.2.update.sqlpp
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/*
+ *  Description     : Limit Push-down into an external sort after an index-search - order by a non primary key field.
+ *  Expected Result : Success
+ *
+*/
+
+use test;
+
+load dataset MyData
+using localfs
+(("path"="asterix_nc1://data/spatial/spatialData2.json"),("format"="adm"));
+
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/orderby_limit_01/orderby_limit_01.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/orderby_limit_01/orderby_limit_01.3.query.sqlpp
new file mode 100644
index 0000000..aee1329
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/orderby_limit_01/orderby_limit_01.3.query.sqlpp
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/*
+ *  Description     : Limit Push-down into an external sort after an index-search - order by a non primary key field.
+ *  Expected Result : Success
+ *
+*/
+
+use test;
+
+select element {
+    "pk":o.id,
+    "sk":o.docid
+} from MyData o
+where o.id < 50
+order by o.docid
+limit 2;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/orderby_limit_02/orderby_limit_02.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/orderby_limit_02/orderby_limit_02.1.ddl.sqlpp
new file mode 100644
index 0000000..9d868d2
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/orderby_limit_02/orderby_limit_02.1.ddl.sqlpp
@@ -0,0 +1,36 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/*
+ *  Description     : Range search query with LIMIT (and ORDER BY) should work fine.
+ *  Issue           : ASTERIXDB-636
+ *  Expected Result : Success
+ *
+ */
+
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type Emp as open
+{ id : int32, name: string, salary: int32 };
+
+create dataset Employee(Emp) primary key id;
+
+create index `idx-02` on Employee(name);
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/orderby_limit_02/orderby_limit_02.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/orderby_limit_02/orderby_limit_02.2.update.sqlpp
new file mode 100644
index 0000000..4e532c8
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/orderby_limit_02/orderby_limit_02.2.update.sqlpp
@@ -0,0 +1,60 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/*
+ *  Description     : Range search query with LIMIT (and ORDER BY) should work fine.
+ *  Issue           : ASTERIXDB-636
+ *  Expected Result : Success
+ *
+ */
+
+
+use test;
+
+insert into Employee (
+    {"id":123,"name":"Kevin","salary":10000}
+);
+
+insert into Employee (
+    {"id":13,"name":"John","salary":5000}
+);
+
+insert into Employee (
+    {"id":23,"name":"Susan","salary":7500}
+);
+
+insert into Employee (
+    {"id":12,"name":"Smith","salary":4000}
+);
+
+insert into Employee (
+    {"id":113,"name":"Roger","salary":8000}
+);
+
+insert into Employee (
+    {"id":143,"name":"Raj","salary":6000}
+);
+
+insert into Employee (
+    {"id":149,"name":"Ramesh","salary":5000}
+);
+
+insert into Employee (
+    {"id":240,"name":"Ravi","salary":6500}
+);
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/orderby_limit_02/orderby_limit_02.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/orderby_limit_02/orderby_limit_02.3.query.sqlpp
new file mode 100644
index 0000000..cbed2d9
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/orderby_limit_02/orderby_limit_02.3.query.sqlpp
@@ -0,0 +1,35 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/*
+ *  Description     : Range search query with LIMIT (and ORDER BY) should work fine.
+ *  Issue           : ASTERIXDB-636
+ *  Expected Result : Success
+ *
+ */
+
+use test;
+
+select element {
+    "name":l.name
+}
+from Employee l
+where l.name >= "A" and l.name <= "Z"
+order by l.name desc
+limit 5;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/orderby_limit_offset_01/orderby_limit_offset_01.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/orderby_limit_offset_01/orderby_limit_offset_01.1.ddl.sqlpp
new file mode 100644
index 0000000..365614b
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/orderby_limit_offset_01/orderby_limit_offset_01.1.ddl.sqlpp
@@ -0,0 +1,53 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/*
+ *  Description     : Limit with offset Push-down into an external sort after an index-search - order by a non primary key field.
+ *  Expected Result : Success
+ *
+*/
+
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type MyRecord as closed {
+  id: int64,
+  docid: int64,
+  val1: int64,
+  title: string,
+  point: point,
+  kwds: string,
+  line1: line,
+  line2: line,
+  poly1: polygon,
+  poly2: polygon,
+  rec: rectangle,
+  circle: circle
+};
+
+create dataset MyData(MyRecord)
+  primary key id;
+
+create index btree_index_docid on MyData(docid) type btree;
+create index btree_index_val1 on MyData(val1) type btree;
+create index rtree_index_point on MyData(point) type rtree;
+create index rtree_index_rec on MyData(rec) type rtree;
+create index ngram_index_title on MyData(title) type ngram(3);
+create index keyword_index_title on MyData(title) type keyword;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/orderby_limit_offset_01/orderby_limit_offset_01.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/orderby_limit_offset_01/orderby_limit_offset_01.2.update.sqlpp
new file mode 100644
index 0000000..37477ae
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/orderby_limit_offset_01/orderby_limit_offset_01.2.update.sqlpp
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/*
+ *  Description     : Limit with offset Push-down into an external sort after an index-search - order by a non primary key field.
+ *  Expected Result : Success
+ *
+*/
+
+use test;
+
+load dataset MyData
+using localfs
+(("path"="asterix_nc1://data/spatial/spatialData2.json"),("format"="adm"));
+
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/orderby_limit_offset_01/orderby_limit_offset_01.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/orderby_limit_offset_01/orderby_limit_offset_01.3.query.sqlpp
new file mode 100644
index 0000000..4d6c4ca
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/orderby_limit_offset_01/orderby_limit_offset_01.3.query.sqlpp
@@ -0,0 +1,35 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/*
+ *  Description     : Limit with offset Push-down into an external sort after an index-search - order by a non primary key field.
+ *  Expected Result : Success
+ *
+*/
+
+use test;
+
+select element {
+    "pk":o.id,
+    "sk": o.docid
+}
+from MyData o
+where o.id < 50
+order by o.docid
+limit 2 offset 2;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/orderby_limit_primary_index_01/orderby_limit_primary_index_01.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/orderby_limit_primary_index_01/orderby_limit_primary_index_01.1.ddl.sqlpp
new file mode 100644
index 0000000..d7b4920
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/orderby_limit_primary_index_01/orderby_limit_primary_index_01.1.ddl.sqlpp
@@ -0,0 +1,53 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/*
+ *  Description     : Limit Push-down into an external sort after an index-search - order by the primary key field.
+ *  Expected Result : Success
+ *
+*/
+
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type MyRecord as closed {
+  id: int64,
+  docid: int64,
+  val1: int64,
+  title: string,
+  point: point,
+  kwds: string,
+  line1: line,
+  line2: line,
+  poly1: polygon,
+  poly2: polygon,
+  rec: rectangle,
+  circle: circle
+};
+
+create dataset MyData(MyRecord)
+  primary key id;
+
+create index btree_index_docid on MyData(docid) type btree;
+create index btree_index_val1 on MyData(val1) type btree;
+create index rtree_index_point on MyData(point) type rtree;
+create index rtree_index_rec on MyData(rec) type rtree;
+create index ngram_index_title on MyData(title) type ngram(3);
+create index keyword_index_title on MyData(title) type keyword;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/orderby_limit_primary_index_01/orderby_limit_primary_index_01.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/orderby_limit_primary_index_01/orderby_limit_primary_index_01.2.update.sqlpp
new file mode 100644
index 0000000..211c056
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/orderby_limit_primary_index_01/orderby_limit_primary_index_01.2.update.sqlpp
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/*
+ *  Description     : Limit Push-down into an external sort after an index-search - order by the primary key field.
+ *  Expected Result : Success
+ *
+*/
+
+use test;
+
+load dataset MyData
+using localfs
+(("path"="asterix_nc1://data/spatial/spatialData2.json"),("format"="adm"));
+
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/orderby_limit_primary_index_01/orderby_limit_primary_index_01.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/orderby_limit_primary_index_01/orderby_limit_primary_index_01.3.query.sqlpp
new file mode 100644
index 0000000..d6d2c87
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/orderby_limit/orderby_limit_primary_index_01/orderby_limit_primary_index_01.3.query.sqlpp
@@ -0,0 +1,35 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/*
+ *  Description     : Limit Push-down into an external sort after an index-search - order by the primary key field.
+ *  Expected Result : Success
+ *
+*/
+
+use test;
+
+select element {
+    "pk":o.id,
+    "sk": o.docid
+}
+from MyData o
+where o.id < 50
+order by o.docid
+limit 2;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/string/query-ASTERIXDB-1190/query-ASTERIXDB-1190.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/string/query-ASTERIXDB-1190/query-ASTERIXDB-1190.1.ddl.sqlpp
new file mode 100644
index 0000000..21de3ea
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/string/query-ASTERIXDB-1190/query-ASTERIXDB-1190.1.ddl.sqlpp
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type testStringType as open
+{
+    id: int32
+};
+
+create dataset stringTest(testStringType) primary key id;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/string/query-ASTERIXDB-1190/query-ASTERIXDB-1190.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/string/query-ASTERIXDB-1190/query-ASTERIXDB-1190.2.update.sqlpp
new file mode 100644
index 0000000..dcd5c20
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/string/query-ASTERIXDB-1190/query-ASTERIXDB-1190.2.update.sqlpp
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use test;
+
+insert into stringTest(
+{
+    "id":0,
+    "b":{
+        "c":{
+            "d": "hi"
+        }
+    }
+}
+);
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/string/query-ASTERIXDB-1190/query-ASTERIXDB-1190.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/string/query-ASTERIXDB-1190/query-ASTERIXDB-1190.3.query.sqlpp
new file mode 100644
index 0000000..dcec487
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/string/query-ASTERIXDB-1190/query-ASTERIXDB-1190.3.query.sqlpp
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use test;
+
+select value string_length(x.b.c.d)
+from stringTest x;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/string/string-equal-public/string-equal-public.1.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/string/string-equal-public/string-equal-public.1.query.sqlpp
new file mode 100644
index 0000000..64e08f5
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/string/string-equal-public/string-equal-public.1.query.sqlpp
@@ -0,0 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+"的"="离";
+"و"="ن"
+;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/string/substring-after-5/substring-after-5.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/string/substring-after-5/substring-after-5.1.ddl.sqlpp
new file mode 100644
index 0000000..e34eb1e
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/string/substring-after-5/substring-after-5.1.ddl.sqlpp
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type LogType as {
+  id: int64,
+  RemoteHost: string?
+};
+
+create dataset log(LogType) primary key id;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/string/substring-after-5/substring-after-5.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/string/substring-after-5/substring-after-5.2.update.sqlpp
new file mode 100644
index 0000000..f552d24
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/string/substring-after-5/substring-after-5.2.update.sqlpp
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use test;
+
+insert into log {
+  "id": 1,
+  "RemoteHost": "10.0.0.2@123"
+};
+
+insert into log {
+   "id": 2
+};
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/string/substring-after-5/substring-after-5.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/string/substring-after-5/substring-after-5.3.query.sqlpp
new file mode 100644
index 0000000..d4f1ed4
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/string/substring-after-5/substring-after-5.3.query.sqlpp
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/* This query is to verify the fix for ASTERIXDB-1409. */
+
+use test;
+
+select value substring_after(e.RemoteHost, "@")
+from log e
+where not (is_null(e.RemoteHost)) limit 1;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/string/substring-after-6/substring-after-6.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/string/substring-after-6/substring-after-6.1.ddl.sqlpp
new file mode 100644
index 0000000..c5e1ce8
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/string/substring-after-6/substring-after-6.1.ddl.sqlpp
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+drop dataverse test if exists;
+create dataverse test;
+use test;
+
+create type LogType as {
+  id: int64
+};
+
+create dataset log(LogType) primary key id;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/string/substring-after-6/substring-after-6.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/string/substring-after-6/substring-after-6.2.update.sqlpp
new file mode 100644
index 0000000..f552d24
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/string/substring-after-6/substring-after-6.2.update.sqlpp
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+use test;
+
+insert into log {
+  "id": 1,
+  "RemoteHost": "10.0.0.2@123"
+};
+
+insert into log {
+   "id": 2
+};
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/string/substring-after-6/substring-after-6.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/string/substring-after-6/substring-after-6.3.query.sqlpp
new file mode 100644
index 0000000..8a6aee7
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/string/substring-after-6/substring-after-6.3.query.sqlpp
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/* This query is to verify substring-after can work with open type. */
+
+use test;
+
+select value substring_after(e.RemoteHost, "@")
+from log e
+where not (is_null(e.RemoteHost)) limit 1;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/tpch/q01-ASTERIXDB-830/q01-ASTERIXDB-830.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/tpch/q01-ASTERIXDB-830/q01-ASTERIXDB-830.1.ddl.sqlpp
new file mode 100644
index 0000000..604185d
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/tpch/q01-ASTERIXDB-830/q01-ASTERIXDB-830.1.ddl.sqlpp
@@ -0,0 +1,45 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+drop dataverse tpch if exists;
+create dataverse tpch;
+
+use tpch;
+
+create type LineItemType as closed {
+  l_orderkey: int64,
+  l_partkey: int64,
+  l_suppkey: int64,
+  l_linenumber: int64,
+  l_quantity: double,
+  l_extendedprice: double,
+  l_discount: double,
+  l_tax: double,
+  l_returnflag: string,
+  l_linestatus: string,
+  l_shipdate: string,
+  l_commitdate: string,
+  l_receiptdate: string,
+  l_shipinstruct: string,
+  l_shipmode: string,
+  l_comment: string
+};
+
+create dataset LineItem(LineItemType)
+  primary key l_orderkey, l_linenumber;
+
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/tpch/q01-ASTERIXDB-830/q01-ASTERIXDB-830.2.update.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/tpch/q01-ASTERIXDB-830/q01-ASTERIXDB-830.2.update.sqlpp
new file mode 100644
index 0000000..9b9e8a9
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/tpch/q01-ASTERIXDB-830/q01-ASTERIXDB-830.2.update.sqlpp
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+use tpch;
+
+load dataset LineItem
+using localfs
+(("path"="asterix_nc1://data/tpch0.001/lineitem.tbl"),("format"="delimited-text"),("delimiter"="|")) pre-sorted;
+
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/tpch/q01-ASTERIXDB-830/q01-ASTERIXDB-830.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/tpch/q01-ASTERIXDB-830/q01-ASTERIXDB-830.3.query.sqlpp
new file mode 100644
index 0000000..624c007
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/tpch/q01-ASTERIXDB-830/q01-ASTERIXDB-830.3.query.sqlpp
@@ -0,0 +1,40 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+use tpch;
+
+select element {
+  "l_returnflag": l_returnflag,
+  "l_linestatus": l_linestatus,
+  "sum_qty": sum(quantity),
+  "sum_base_price": sum(extendedprice),
+  "sum_disc_price": sum(disc_price),
+  "sum_charge": sum(charge),
+  "ave_qty": avg(quantity),
+  "ave_price": avg(extendedprice),
+  "ave_disc": avg(discount),
+  "count_order": count(l)
+} from LineItem l
+let quantity = l.l_quantity,
+    extendedprice = l.l_extendedprice,
+    disc_price = l.l_extendedprice * (1 - l.l_discount),
+    charge = extendedprice * (1 - l.l_discount) * (1 + l.l_tax),
+    discount = l.l_discount
+where l.l_shipdate <='1998-09-02'
+group by l.l_returnflag as l_returnflag, l.l_linestatus as l_linestatus group as l
+order by l_returnflag, l_linestatus;
\ No newline at end of file
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/types/domain_boundaries/domain_boundaries.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/types/domain_boundaries/domain_boundaries.1.ddl.sqlpp
new file mode 100644
index 0000000..ddf874b
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/types/domain_boundaries/domain_boundaries.1.ddl.sqlpp
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+drop dataverse test if exists;
+create dataverse test;
+
+use test;
+
+create type `Type` as open {
+  id: int64,
+  int8: int8,
+  int16: int16,
+  int32: int32,
+  int64: int64
+};
+
+create dataset TestDS(`Type`) primary key id;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/types/domain_boundaries/domain_boundaries.2.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/types/domain_boundaries/domain_boundaries.2.ddl.sqlpp
new file mode 100644
index 0000000..e5bd53e
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/types/domain_boundaries/domain_boundaries.2.ddl.sqlpp
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+use test;
+
+insert into TestDS(
+{
+   "id": 1,
+   "int8": int8("-128"),
+   "int16": int16("-32768"),
+   "int32": int32("-2147483648"),
+   "int64": int64("-9223372036854775808")
+});
+
+insert into TestDS(
+{
+   "id": 2,
+   "int8": int8("127"),
+   "int16": int16("32767"),
+   "int32": int32("2147483647"),
+   "int64": int64("9223372036854775807")
+});
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/types/domain_boundaries/domain_boundaries.3.query.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/types/domain_boundaries/domain_boundaries.3.query.sqlpp
new file mode 100644
index 0000000..e063fb6
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/types/domain_boundaries/domain_boundaries.3.query.sqlpp
@@ -0,0 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+select value x
+from test.TestDS x;
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/types/domain_boundaries_error/domain_boundaries_error.1.ddl.sqlpp b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/types/domain_boundaries_error/domain_boundaries_error.1.ddl.sqlpp
new file mode 100644
index 0000000..ca2910f
--- /dev/null
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp/types/domain_boundaries_error/domain_boundaries_error.1.ddl.sqlpp
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+drop dataverse test if exists;
+create dataverse test;
+
... 1922 lines suppressed ...