提交 03ae8296 编写于 作者: A Adam Lee 提交者: Adam Lee

s3ext: speedup regression testing

update the case which reads 5120 small files to read 2001 files.
上级 4bb762d7
......@@ -34,7 +34,7 @@ CHECK_CASES=(
# huge files
"s3://s3-us-west-2.amazonaws.com/s3test.pivotal.io/regress/hugefile/airlinedata1.csv f5811ad92c994f1d6913d5338575fe38"
"s3://s3-us-west-2.amazonaws.com/s3test.pivotal.io/regress/gzipped_normal2/ a930794bc885bccf6eed45bd40367a7d"
"s3://s3-us-west-2.amazonaws.com/s3test.pivotal.io/regress/5120files/ 71277a7004842241191cc65146be24f6"
"s3://s3-us-west-2.amazonaws.com/s3test.pivotal.io/regress/2001files/ 38c18f5ddf9ef68fef9ef9842c2aa180"
)
for ((i=0; i<${#CHECK_CASES[@]}; i++))
......
......@@ -8,7 +8,7 @@ CREATE PROTOCOL s3 (
DROP EXTERNAL TABLE s3regress;
CREATE READABLE EXTERNAL TABLE s3regress (date text, time text, open float, high float,
low float, volume int) LOCATION('s3://s3-us-west-2.amazonaws.com/@read_prefix@/5120files/ config=@config_file@') FORMAT 'csv';
low float, volume int) LOCATION('s3://s3-us-west-2.amazonaws.com/@read_prefix@/2001files/ config=@config_file@') FORMAT 'csv';
SELECT count(*) count, round(sum(open)) sum, round(avg(open)) avg FROM s3regress;
......
......@@ -6,11 +6,11 @@ CREATE PROTOCOL s3 (
DROP EXTERNAL TABLE s3regress;
ERROR: table "s3regress" does not exist
CREATE READABLE EXTERNAL TABLE s3regress (date text, time text, open float, high float,
low float, volume int) LOCATION('s3://s3-us-west-2.amazonaws.com/@read_prefix@/5120files/ config=@config_file@') FORMAT 'csv';
low float, volume int) LOCATION('s3://s3-us-west-2.amazonaws.com/@read_prefix@/2001files/ config=@config_file@') FORMAT 'csv';
SELECT count(*) count, round(sum(open)) sum, round(avg(open)) avg FROM s3regress;
count | sum | avg
--------+----------+-----
655360 | 23302752 | 36
count | sum | avg
--------+---------+-----
256128 | 9107189 | 36
(1 row)
DROP EXTERNAL TABLE s3regress;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册