2018-03-02 23:59:34 +00:00
|
|
|
.load ./libparquet
|
2018-03-04 01:00:50 +00:00
|
|
|
.headers on
|
2018-03-07 02:02:26 +00:00
|
|
|
--select 'creating without enough args';
|
|
|
|
--create virtual table noargs using parquet;
|
2018-03-03 20:44:01 +00:00
|
|
|
|
2018-03-07 02:02:26 +00:00
|
|
|
--select 'creating with invalid file';
|
|
|
|
--create virtual table nonexistent using parquet('nonexistent');
|
2018-03-03 20:44:01 +00:00
|
|
|
|
2018-03-07 02:02:26 +00:00
|
|
|
--select 'creating others';
|
|
|
|
--create virtual table others using parquet('/home/cldellow/src/parquet-vtable/parquet/others.parquet');
|
|
|
|
--select * from others limit 1;
|
2018-03-04 01:00:50 +00:00
|
|
|
|
|
|
|
--select 'creating with valid file';
|
2018-03-07 02:02:26 +00:00
|
|
|
create virtual table parquet using parquet('/home/cldellow/src/csv2parquet/12m.parquet.snappy');
|
|
|
|
.tables
|
|
|
|
.timer on
|
|
|
|
.echo on
|
2018-03-04 01:00:50 +00:00
|
|
|
--select count(*) from (select * from parquet limit 1);
|
2018-03-07 02:02:26 +00:00
|
|
|
--select rowid,col0,col3,col9 from parquet where rowid > 5 limit 5;
|
2018-03-04 01:00:50 +00:00
|
|
|
--select count(*) from parquet limit 1;
|
|
|
|
--select sum(col0) from parquet limit 1;
|
|
|
|
--select * from parquet limit 10;
|
|
|
|
--select sum(length(col3)) from parquet;
|
2018-03-07 02:02:26 +00:00
|
|
|
select * from parquet where (col3 = 'Dawson Creeks') or col9 LIKE '%Bicycqq%' limit 20000;
|