More tests cases to deal with affinity
I'm not sure how these manifest - whether SQLite retypes them based on column affinity before we see them, or whether they're provided as is.
This commit is contained in:
parent
095b576cc2
commit
1f938a005d
|
@ -18,12 +18,18 @@ bool ParquetCursor::currentRowGroupSatisfiesFilter() {
|
||||||
int op = constraints[i].getOperator();
|
int op = constraints[i].getOperator();
|
||||||
bool rv = true;
|
bool rv = true;
|
||||||
|
|
||||||
// printf("column = %d\n", column);
|
if(column == -1) {
|
||||||
// std::unique_ptr<parquet::ColumnChunkMetaData> md = rowGroupMetadata->ColumnChunk(column);
|
if(op == IsNull) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// printf("column = %d\n", column);
|
||||||
|
// std::unique_ptr<parquet::ColumnChunkMetaData> md = rowGroupMetadata->ColumnChunk(column);
|
||||||
|
|
||||||
if(op == IsNull) {
|
if(op == IsNull) {
|
||||||
} else if(op == IsNotNull) {
|
} else if(op == IsNotNull) {
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(!rv)
|
if(!rv)
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
select printf('%.2f', double_6) as double_6 from nulls where double_6 > 98
|
select printf('%.2f', double_6) as double_6 from nulls where double_6 > 98.0
|
||||||
99.00
|
99.00
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
select printf('%.2f', double_6) from nulls where rowid = 0 and double_6 <> 99
|
select printf('%.2f', double_6) from nulls where rowid = 0 and double_6 <> 99.0
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
select printf('%.2f', double_6) from nulls where rowid = 0 and double_6 <> 100
|
select printf('%.2f', double_6) from nulls where rowid = 0 and double_6 <> 100.0
|
||||||
99.00
|
99.00
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
select count(*) from no_nulls1 where rowid = '1'
|
||||||
|
1
|
|
@ -0,0 +1,2 @@
|
||||||
|
select int8_1 from no_nulls1 where rowid = 50.0;
|
||||||
|
0
|
|
@ -0,0 +1,2 @@
|
||||||
|
select string_7 from nulls where string_7 = 22;
|
||||||
|
22
|
|
@ -0,0 +1 @@
|
||||||
|
select string_7 from nulls where string_7 = 22.0;
|
|
@ -0,0 +1,2 @@
|
||||||
|
select int8_1 from nulls where int8_1 = 30.0;
|
||||||
|
30
|
|
@ -0,0 +1,2 @@
|
||||||
|
select int8_1 from nulls where int8_1 = '30.0';
|
||||||
|
30
|
|
@ -0,0 +1,2 @@
|
||||||
|
select int8_1 from nulls where int8_1 = '30';
|
||||||
|
30
|
|
@ -0,0 +1 @@
|
||||||
|
select int8_1 from nulls where int8_1 = '30f';
|
|
@ -0,0 +1,2 @@
|
||||||
|
select int8_1 from nulls where int8_1 < '-46'
|
||||||
|
-48
|
|
@ -0,0 +1,2 @@
|
||||||
|
select int8_1 from nulls where int8_1 < -46.0
|
||||||
|
-48
|
|
@ -0,0 +1,3 @@
|
||||||
|
select int8_1 from nulls where int8_1 <= '-46'
|
||||||
|
-46
|
||||||
|
-48
|
|
@ -0,0 +1,3 @@
|
||||||
|
select int8_1 from nulls where int8_1 <= -46.0
|
||||||
|
-46
|
||||||
|
-48
|
|
@ -0,0 +1,2 @@
|
||||||
|
select int8_1 from nulls where int8_1 > '49'
|
||||||
|
50
|
|
@ -0,0 +1,2 @@
|
||||||
|
select int8_1 from nulls where int8_1 > 49.0
|
||||||
|
50
|
|
@ -0,0 +1,3 @@
|
||||||
|
select int8_1 from nulls where int8_1 >= '49'
|
||||||
|
50
|
||||||
|
49
|
|
@ -0,0 +1,3 @@
|
||||||
|
select int8_1 from nulls where int8_1 >= 49.0
|
||||||
|
50
|
||||||
|
49
|
|
@ -0,0 +1 @@
|
||||||
|
select int8_1 from nulls where rowid = 66 and int8_1 <> '-16'
|
|
@ -0,0 +1 @@
|
||||||
|
select int8_1 from nulls where rowid = 66 and int8_1 <> -16.0
|
|
@ -0,0 +1,3 @@
|
||||||
|
select int64_4 from nulls where int64_4 >= '49000000000'
|
||||||
|
50000000000
|
||||||
|
49000000000
|
|
@ -0,0 +1,3 @@
|
||||||
|
select int64_4 from nulls where int64_4 >= 49000000000.0
|
||||||
|
50000000000
|
||||||
|
49000000000
|
|
@ -0,0 +1,2 @@
|
||||||
|
select int64_4 from nulls where int64_4 > '49000000000'
|
||||||
|
50000000000
|
|
@ -0,0 +1,2 @@
|
||||||
|
select int64_4 from nulls where int64_4 > 49000000000.0
|
||||||
|
50000000000
|
|
@ -0,0 +1,2 @@
|
||||||
|
select int64_4 from nulls where int64_4 = '49000000000'
|
||||||
|
49000000000
|
|
@ -0,0 +1,2 @@
|
||||||
|
select int64_4 from nulls where int64_4 = 49000000000.0
|
||||||
|
49000000000
|
|
@ -0,0 +1,2 @@
|
||||||
|
select int64_4 from nulls where int64_4 < '-46000000000'
|
||||||
|
-47000000000
|
|
@ -0,0 +1,2 @@
|
||||||
|
select int64_4 from nulls where int64_4 < -46000000000.0
|
||||||
|
-47000000000
|
|
@ -0,0 +1,3 @@
|
||||||
|
select int64_4 from nulls where int64_4 <= '-45000000000'
|
||||||
|
-45000000000
|
||||||
|
-47000000000
|
|
@ -0,0 +1,3 @@
|
||||||
|
select int64_4 from nulls where int64_4 <= -45000000000.0
|
||||||
|
-45000000000
|
||||||
|
-47000000000
|
|
@ -0,0 +1 @@
|
||||||
|
select int64_4 from nulls where rowid = 57 and int64_4 <> '-7000000000'
|
|
@ -0,0 +1 @@
|
||||||
|
select int64_4 from nulls where rowid = 57 and int64_4 <> -7000000000.0
|
|
@ -0,0 +1,2 @@
|
||||||
|
select int64_4 from nulls where rowid = 57 and int64_4 <> '-8000000000'
|
||||||
|
-7000000000
|
|
@ -0,0 +1,2 @@
|
||||||
|
select int64_4 from nulls where rowid = 57 and int64_4 <> -8000000000.0
|
||||||
|
-7000000000
|
|
@ -0,0 +1,2 @@
|
||||||
|
select printf('%.2f', double_6) as double_6 from nulls where double_6 = '99.0'
|
||||||
|
99.00
|
|
@ -0,0 +1,2 @@
|
||||||
|
select printf('%.2f', double_6) as double_6 from nulls where double_6 = 99
|
||||||
|
99.00
|
|
@ -0,0 +1,2 @@
|
||||||
|
select printf('%.2f', double_6) as double_6 from nulls where double_6 > '98'
|
||||||
|
99.00
|
|
@ -0,0 +1,2 @@
|
||||||
|
select printf('%.2f', double_6) as double_6 from nulls where double_6 > 98
|
||||||
|
99.00
|
|
@ -0,0 +1,3 @@
|
||||||
|
select printf('%.2f', double_6) as double_6 from nulls where double_6 >= '49.5'
|
||||||
|
99.00
|
||||||
|
49.50
|
|
@ -0,0 +1,2 @@
|
||||||
|
select printf('%.2f', double_6) as double_6 from nulls where double_6 >= '99'
|
||||||
|
99.00
|
|
@ -0,0 +1,2 @@
|
||||||
|
select printf('%.2f', double_6) from nulls where double_6 < '99.0' order by double_6 desc limit 1
|
||||||
|
49.50
|
|
@ -0,0 +1,2 @@
|
||||||
|
select printf('%.2f', double_6) from nulls where double_6 < 99 order by double_6 desc limit 1
|
||||||
|
49.50
|
|
@ -0,0 +1,2 @@
|
||||||
|
select printf('%.2f', double_6) from nulls where double_6 <= '99.0' order by double_6 desc limit 1
|
||||||
|
99.00
|
|
@ -0,0 +1,2 @@
|
||||||
|
select printf('%.2f', double_6) from nulls where double_6 <= 99 order by double_6 desc limit 1
|
||||||
|
99.00
|
|
@ -0,0 +1 @@
|
||||||
|
select printf('%.2f', double_6) from nulls where rowid = 0 and double_6 <> '99.0'
|
|
@ -0,0 +1 @@
|
||||||
|
select printf('%.2f', double_6) from nulls where rowid = 0 and double_6 <> 99
|
|
@ -0,0 +1,2 @@
|
||||||
|
select printf('%.2f', double_6) from nulls where rowid = 0 and double_6 <> '100'
|
||||||
|
99.00
|
|
@ -0,0 +1,2 @@
|
||||||
|
select printf('%.2f', double_6) from nulls where rowid = 0 and double_6 <> 100
|
||||||
|
99.00
|
Loading…
Reference in New Issue