Skip to content

Commit

Permalink
Reuse/share code for external dataset tests (p1)
Browse files Browse the repository at this point in the history
Change-Id: Ie5caebd98a3c42536654035d5bc3954eaca6e6d5
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/11564
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Hussain Towaileb <hussainht@gmail.com>
Reviewed-by: Murtadha Hubail <mhubail@apache.org>
  • Loading branch information
htowaileb committed Jun 10, 2021
1 parent 94eb3c2 commit aba2890
Show file tree
Hide file tree
Showing 28 changed files with 433 additions and 345 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ drop dataset test if exists;
CREATE EXTERNAL DATASET test(test) USING %adapter% (
%template%,
("container"="include-exclude"),
("definition"="data/mixed/"),
("definition"="mixed-data/reviews/"),
("format"="json"),
("exclude"="*.json"),
("exclude1"="*.json")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ drop dataset test if exists;
CREATE EXTERNAL DATASET test(test) USING %adapter% (
%template%,
("container"="include-exclude"),
("definition"="data/mixed/"),
("definition"="mixed-data/reviews/"),
("format"="json"),
("exclude"="*.json"),
("exclude#"="*.json")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ drop dataset test if exists;
CREATE EXTERNAL DATASET test(test) USING %adapter% (
%template%,
("container"="include-exclude"),
("definition"="data/mixed/"),
("definition"="mixed-data/reviews/"),
("format"="json"),
("exclude"="*.json"),
("exclude#hello"="*.json")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ drop dataset test if exists;
CREATE EXTERNAL DATASET test(test) USING %adapter% (
%template%,
("container"="include-exclude"),
("definition"="data/mixed/"),
("definition"="mixed-data/reviews/"),
("format"="json"),
("include"="*.json"),
("exclude"="*.json")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ drop dataset test if exists;
CREATE EXTERNAL DATASET test(test) USING %adapter% (
%template%,
("container"="include-exclude"),
("definition"="data/mixed/"),
("definition"="mixed-data/reviews/"),
("format"="json"),
("exclude"="*.?sv")
);
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ drop dataset test if exists;
CREATE EXTERNAL DATASET test(test) USING %adapter% (
%template%,
("container"="include-exclude"),
("definition"="data/mixed/"),
("definition"="mixed-data/reviews/"),
("format"="json"),
("exclude"="data/mixed/?sv*"),
("exclude#1"="data/mixed/json/extension*"),
("exclude#100"="data/mixed/json/EXTENSION*")
("exclude"="mixed-data/reviews/?sv*"),
("exclude#1"="mixed-data/reviews/json/extension*"),
("exclude#100"="mixed-data/reviews/json/EXTENSION*")
);
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ drop dataset test if exists;
CREATE EXTERNAL DATASET test(test) USING %adapter% (
%template%,
("container"="include-exclude"),
("definition"="data/mixed/"),
("definition"="mixed-data/reviews/"),
("format"="json"),
("exclude"="data/mixed/?sv*"),
("exclude#100"="data/mixed/json*201?*")
("exclude"="mixed-data/reviews/?sv*"),
("exclude#100"="mixed-data/reviews/json*201?*")
);
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ drop dataset test if exists;
CREATE EXTERNAL DATASET test(test) USING %adapter% (
%template%,
("container"="include-exclude"),
("definition"="data/mixed/"),
("definition"="mixed-data/reviews/"),
("format"="json"),
("exclude"="data/mixed/?sv*"),
("exclude#1"="data/mixed/json*bye*")
("exclude"="mixed-data/reviews/?sv*"),
("exclude#1"="mixed-data/reviews/json*bye*")
);
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ drop dataset test if exists;
CREATE EXTERNAL DATASET test(test) USING %adapter% (
%template%,
("container"="include-exclude"),
("definition"="data/mixed/"),
("definition"="mixed-data/reviews/"),
("format"="json"),
("exclude"="data/mixed/?sv*"),
("exclude#1"="data/mixed/json/extension/hello-world-2018.json")
("exclude"="mixed-data/reviews/?sv*"),
("exclude#1"="mixed-data/reviews/json/extension/hello-world-2018.json")
);
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ drop dataset test if exists;
CREATE EXTERNAL DATASET test(test) USING %adapter% (
%template%,
("container"="include-exclude"),
("definition"="data/mixed/"),
("definition"="mixed-data/reviews/"),
("format"="json"),
("exclude"="*.[abct][abcs][abcv]")
);
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ drop dataset test if exists;
CREATE EXTERNAL DATASET test(test) USING %adapter% (
%template%,
("container"="include-exclude"),
("definition"="data/mixed/"),
("definition"="mixed-data/reviews/"),
("format"="json"),
("exclude"="*")
);
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ drop dataset test if exists;
CREATE EXTERNAL DATASET test(test) USING %adapter% (
%template%,
("container"="include-exclude"),
("definition"="data/mixed/"),
("definition"="mixed-data/reviews/"),
("format"="json"),
("include"="*2018*.json")
);
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ drop dataset test if exists;
CREATE EXTERNAL DATASET test(test) USING %adapter% (
%template%,
("container"="include-exclude"),
("definition"="data/mixed/"),
("definition"="mixed-data/reviews/"),
("format"="csv"),
("header"=false),
("include"="*[abc][.*")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ drop dataset test if exists;
CREATE EXTERNAL DATASET test(test) USING %adapter% (
%template%,
("container"="include-exclude"),
("definition"="data/mixed/"),
("definition"="mixed-data/reviews/"),
("format"="csv"),
("header"=false),
("include"="*.[a-c][a-z][a-z**||\\\\&&--~~]")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ drop dataset test if exists;
CREATE EXTERNAL DATASET test(test) USING %adapter% (
%template%,
("container"="include-exclude"),
("definition"="data/mixed/"),
("definition"="mixed-data/reviews/"),
("format"="csv"),
("header"=false),
("include"="[][!][^]]]]*[![*a-zA--&&^$||0-9B$\\*&&]*&&[^a-b||0--9][[[")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ drop dataset test if exists;
CREATE EXTERNAL DATASET test(test) USING %adapter% (
%template%,
("container"="include-exclude"),
("definition"="data/mixed/"),
("definition"="mixed-data/reviews/"),
("format"="json"),
("include"="*201?*.json")
);
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ drop dataset test if exists;
CREATE EXTERNAL DATASET test(test) USING %adapter% (
%template%,
("container"="include-exclude"),
("definition"="data/mixed/"),
("definition"="mixed-data/reviews/"),
("format"="csv"),
("header"=false),
("include"="*201?*.csv")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ drop dataset test if exists;
CREATE EXTERNAL DATASET test(test) USING %adapter% (
%template%,
("container"="include-exclude"),
("definition"="data/mixed/"),
("definition"="mixed-data/reviews/"),
("format"="tsv"),
("header"=false),
("include"="*201?*.tsv")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ drop dataset test if exists;
CREATE EXTERNAL DATASET test(test) USING %adapter% (
%template%,
("container"="include-exclude"),
("definition"="data/mixed/"),
("definition"="mixed-data/reviews/"),
("format"="json"),
("include"="*bye*.json")
);
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ drop dataset test if exists;
CREATE EXTERNAL DATASET test(test) USING %adapter% (
%template%,
("container"="include-exclude"),
("definition"="data/mixed/"),
("definition"="mixed-data/reviews/"),
("format"="json"),
("include"="data/mixed/json/*EXTENSION*")
("include"="mixed-data/reviews/json/*EXTENSION*")
);
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ drop dataset test if exists;
CREATE EXTERNAL DATASET test(test) USING %adapter% (
%template%,
("container"="include-exclude"),
("definition"="data/mixed/"),
("definition"="mixed-data/reviews/"),
("format"="json"),
("include"="data/mixed/json/NO-EXTENSION*"),
("include#0"="data/mixed/json/EXTENSION*")
("include"="mixed-data/reviews/json/NO-EXTENSION*"),
("include#0"="mixed-data/reviews/json/EXTENSION*")
);
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ drop dataset test if exists;
CREATE EXTERNAL DATASET test(test) USING %adapter% (
%template%,
("container"="include-exclude"),
("definition"="data/mixed/"),
("definition"="mixed-data/reviews/"),
("format"="csv"),
("header"=false),
("include"="*.[!xyt][!xyz][!xyz]")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ drop dataset test if exists;
CREATE EXTERNAL DATASET test(test) USING %adapter% (
%template%,
("container"="include-exclude"),
("definition"="data/mixed/"),
("definition"="mixed-data/reviews/"),
("format"="csv"),
("header"=false),
("include"="*.[a-c][a-z][a-z]")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ drop dataset test if exists;
CREATE EXTERNAL DATASET test(test) USING %adapter% (
%template%,
("container"="include-exclude"),
("definition"="data/mixed/"),
("definition"="mixed-data/reviews/"),
("format"="json"),
("include"="*")
);
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ drop dataset test if exists;
CREATE EXTERNAL DATASET test(test) USING %adapter% (
%template%,
("container"="include-exclude"),
("definition"="data/mixed/"),
("definition"="mixed-data/reviews/"),
("format"="json"),
("exclude"="*")
);
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ drop dataset test if exists;
CREATE EXTERNAL DATASET test(test) USING %adapter% (
%template%,
("container"="include-exclude"),
("definition"="data/mixed/"),
("definition"="mixed-data/reviews/"),
("format"="json"),
("include"="*.notRealExtension")
);

0 comments on commit aba2890

Please sign in to comment.