Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
2ee7005
fix and update1
kgyrtkirk Nov 6, 2024
44c098a
column order changes
kgyrtkirk Nov 6, 2024
579a848
sig changes
kgyrtkirk Nov 6, 2024
c96ef1a
column order in joinqueytest
kgyrtkirk Nov 6, 2024
fbc1bb5
column order in calcitequerytest
kgyrtkirk Nov 6, 2024
9a963c6
fix subq
kgyrtkirk Nov 6, 2024
ce123f8
fix a few more
kgyrtkirk Nov 6, 2024
a68f470
up
kgyrtkirk Nov 6, 2024
cb35cf6
updates
kgyrtkirk Nov 6, 2024
d0b25e5
up
kgyrtkirk Nov 6, 2024
ac0f5ea
fix
kgyrtkirk Nov 6, 2024
ad14eab
update
kgyrtkirk Nov 6, 2024
e67ff79
column order changes
kgyrtkirk Nov 6, 2024
387f0e7
order in join.iq
kgyrtkirk Nov 6, 2024
35c3772
fix test
kgyrtkirk Nov 7, 2024
2711a4f
update test
kgyrtkirk Nov 7, 2024
fd70ad9
fix things in scanquery
kgyrtkirk Nov 7, 2024
fa16e51
add crap and fix calcitequerytest
kgyrtkirk Nov 7, 2024
043470d
fix joinquerytest
kgyrtkirk Nov 7, 2024
2b010b0
fix more
kgyrtkirk Nov 7, 2024
b622aef
fix
kgyrtkirk Nov 7, 2024
ce7aaf7
fix
kgyrtkirk Nov 7, 2024
0bed635
fix
kgyrtkirk Nov 7, 2024
7101c66
update crap
kgyrtkirk Nov 7, 2024
c0f6bd6
fix some/etc
kgyrtkirk Nov 7, 2024
cf8c4ee
fix
kgyrtkirk Nov 7, 2024
590fc01
remove immuatblelist
kgyrtkirk Nov 7, 2024
13a8a26
more
kgyrtkirk Nov 7, 2024
9060482
cleanupo/fix/etc
kgyrtkirk Nov 7, 2024
554d244
fix
kgyrtkirk Nov 7, 2024
ebf61ce
make msqa pass
kgyrtkirk Nov 7, 2024
f13812b
fix
kgyrtkirk Nov 7, 2024
f642579
x
kgyrtkirk Nov 7, 2024
fa6c91e
x
kgyrtkirk Nov 7, 2024
44e64c7
x
kgyrtkirk Nov 7, 2024
956c8ef
fix onemore
kgyrtkirk Nov 7, 2024
f9c6d1f
fix onemore
kgyrtkirk Nov 7, 2024
0c82c61
fix onemore
kgyrtkirk Nov 7, 2024
15e4712
fix onemore
kgyrtkirk Nov 7, 2024
89e36dc
fix onemore
kgyrtkirk Nov 7, 2024
0c61433
update comment
kgyrtkirk Nov 8, 2024
436dc35
fix some
kgyrtkirk Nov 8, 2024
bc64245
remove immutablellist
kgyrtkirk Nov 8, 2024
efc97ce
40
kgyrtkirk Nov 8, 2024
42e4e22
fiox
kgyrtkirk Nov 8, 2024
c233381
fix cases
kgyrtkirk Nov 8, 2024
3680fdb
fix
kgyrtkirk Nov 8, 2024
cb474cb
fix
kgyrtkirk Nov 8, 2024
7ccf86a
make some more
kgyrtkirk Nov 8, 2024
22ede9b
sqlcompat done
kgyrtkirk Nov 8, 2024
706f86e
n1
kgyrtkirk Nov 8, 2024
974b489
onemore
kgyrtkirk Nov 8, 2024
1290a90
remove fixing tools
kgyrtkirk Nov 8, 2024
e11048f
add comment
kgyrtkirk Nov 8, 2024
b8ed336
up
kgyrtkirk Nov 11, 2024
9af9e45
Revert "up"
kgyrtkirk Nov 11, 2024
b351a64
Revert "remove fixing tools"
kgyrtkirk Nov 11, 2024
d2ae617
coltypes
kgyrtkirk Nov 11, 2024
80925a8
update wx
kgyrtkirk Nov 11, 2024
7ad5c28
remove fixing tools
kgyrtkirk Nov 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1051,6 +1051,7 @@ public void testHllEstimateAsVirtualColumn()
)
.resultFormat(ScanQuery.ResultFormat.RESULT_FORMAT_COMPACTED_LIST)
.columns("v0", "v1", "v2", "v3")
.columnTypes(ColumnType.DOUBLE, ColumnType.DOUBLE, ColumnType.DOUBLE, ColumnType.DOUBLE)
.context(QUERY_CONTEXT_DEFAULT)
.build()
),
Expand Down Expand Up @@ -1089,6 +1090,7 @@ public void testHllEstimateAsVirtualColumnWithRound()
))
.resultFormat(ScanQuery.ResultFormat.RESULT_FORMAT_COMPACTED_LIST)
.columns("v0", "v1")
.columnTypes(ColumnType.DOUBLE, ColumnType.DOUBLE)
.context(QUERY_CONTEXT_DEFAULT)
.build()
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,8 @@ public void testSubqueryWithNestedGroupBy()
new ExpressionVirtualColumn("v0", "946684800000", ColumnType.LONG, TestExprMacroTable.INSTANCE),
new ExpressionVirtualColumn("v1", "case_searched((\"j0.a0\" < \"_a0\"),'val2',((\"j0.a0\" >= \"_a0\") && (\"j0.a0\" < \"_a1\")),'val3',(\"j0.a0\" >= \"_a1\"),'val1',null)", ColumnType.STRING, TestExprMacroTable.INSTANCE)
)
.columns("j0.a0", "j0.d0", "v0", "v1")
.columns("v0", "j0.d0", "j0.a0", "v1")
.columnTypes(ColumnType.LONG, ColumnType.STRING, ColumnType.LONG, ColumnType.STRING)
.build()
),
expectedResults
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1108,6 +1108,7 @@ public void testThetaSketchEstimateAsVirtualColumn()
))
.resultFormat(ScanQuery.ResultFormat.RESULT_FORMAT_COMPACTED_LIST)
.columns("v0")
.columnTypes(ColumnType.DOUBLE)
.context(QUERY_CONTEXT_DEFAULT)
.build()
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -758,13 +758,13 @@ public void testSelectOnArrays(String contextName, Map<String, Object> context,
.build();

RowSignature scanSignature = RowSignature.builder()
.add("arrayDouble", ColumnType.DOUBLE_ARRAY)
.add("arrayDoubleNulls", ColumnType.DOUBLE_ARRAY)
.add("arrayLong", ColumnType.LONG_ARRAY)
.add("arrayLongNulls", ColumnType.LONG_ARRAY)
.add("v0", ColumnType.LONG)
.add("arrayString", ColumnType.STRING_ARRAY)
.add("arrayStringNulls", ColumnType.STRING_ARRAY)
.add("v0", ColumnType.LONG)
.add("arrayLong", ColumnType.LONG_ARRAY)
.add("arrayLongNulls", ColumnType.LONG_ARRAY)
.add("arrayDouble", ColumnType.DOUBLE_ARRAY)
.add("arrayDoubleNulls", ColumnType.DOUBLE_ARRAY)
.build();

final Map<String, Object> adjustedContext = new HashMap<>(context);
Expand All @@ -773,15 +773,8 @@ public void testSelectOnArrays(String contextName, Map<String, Object> context,
Query<?> expectedQuery = newScanQueryBuilder()
.dataSource(dataFileExternalDataSource)
.intervals(querySegmentSpec(Filtration.eternity()))
.columns(
"arrayDouble",
"arrayDoubleNulls",
"arrayLong",
"arrayLongNulls",
"arrayString",
"arrayStringNulls",
"v0"
)
.columns(scanSignature.getColumnNames())
.columnTypes(scanSignature.getColumnTypes())
.virtualColumns(new ExpressionVirtualColumn(
"v0",
"timestamp_parse(\"timestamp\",null,'UTC')",
Expand Down Expand Up @@ -862,6 +855,7 @@ public void testScanWithOrderByOnStringArray(String contextName, Map<String, Obj
.dataSource(dataFileExternalDataSource)
.intervals(querySegmentSpec(Filtration.eternity()))
.columns("arrayString")
.columnTypes(scanSignature.getColumnTypes())
.orderBy(Collections.singletonList(OrderBy.descending("arrayString")))
.context(defaultScanQueryContext(context, scanSignature))
.build();
Expand Down Expand Up @@ -925,6 +919,7 @@ public void testScanWithOrderByOnLongArray(String contextName, Map<String, Objec
.dataSource(dataFileExternalDataSource)
.intervals(querySegmentSpec(Filtration.eternity()))
.columns("arrayLong")
.columnTypes(scanSignature.getColumnTypes())
.orderBy(Collections.singletonList(OrderBy.ascending("arrayLong")))
.context(defaultScanQueryContext(context, scanSignature))
.build();
Expand Down Expand Up @@ -988,6 +983,7 @@ public void testScanWithOrderByOnDoubleArray(String contextName, Map<String, Obj
.dataSource(dataFileExternalDataSource)
.intervals(querySegmentSpec(Filtration.eternity()))
.columns("arrayDouble")
.columnTypes(scanSignature.getColumnTypes())
.orderBy(Collections.singletonList(OrderBy.ascending("arrayDouble")))
.context(defaultScanQueryContext(context, scanSignature))
.build();
Expand Down Expand Up @@ -1040,6 +1036,7 @@ public void testScanExternBooleanArray(String contextName, Map<String, Object> c
)
.intervals(querySegmentSpec(Filtration.eternity()))
.columns("a_bool")
.columnTypes(scanSignature.getColumnTypes())
.context(defaultScanQueryContext(context, scanSignature))
.build();

Expand Down Expand Up @@ -1088,6 +1085,7 @@ public void testScanExternArrayWithNonConvertibleType(String contextName, Map<St
)
.intervals(querySegmentSpec(Filtration.eternity()))
.columns("a_bool")
.columnTypes(scanSignature.getColumnTypes())
.context(defaultScanQueryContext(context, scanSignature))
.build();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ public void testSortingOnNestedData(String contextName, Map<String, Object> cont
.dataSource(dataFileExternalDataSource)
.intervals(querySegmentSpec(Filtration.eternity()))
.columns("obj")
.columnTypes(ColumnType.NESTED_DATA)
.context(defaultScanQueryContext(context, rowSignature))
.orderBy(Collections.singletonList(OrderBy.ascending("obj")))
.build()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ public void testSelectWithLoadedSegmentsOnFoo()
.dataSource(CalciteTests.DATASOURCE1)
.intervals(querySegmentSpec(Filtration.eternity()))
.columns("cnt", "dim1")
.columnTypes(resultSignature.getColumnTypes())
.context(defaultScanQueryContext(REALTIME_QUERY_CTX, resultSignature))
.build()
)
Expand Down Expand Up @@ -190,6 +191,7 @@ public void testSelectWithLoadedSegmentsOnFooWithOrderBy()
.dataSource(CalciteTests.DATASOURCE1)
.intervals(querySegmentSpec(Filtration.eternity()))
.columns("cnt", "dim1")
.columnTypes(resultSignature.getColumnTypes())
.orderBy(ImmutableList.of(OrderBy.ascending("dim1")))
.context(defaultScanQueryContext(REALTIME_QUERY_CTX, resultSignature))
.build()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ public void testIngestWithSanitizedNullByte() throws IOException
)
)
.columns("v0", "v1")
.columnTypes(ColumnType.LONG, ColumnType.STRING)
.resultFormat(ScanQuery.ResultFormat.RESULT_FORMAT_COMPACTED_LIST)
.context(defaultScanQueryContext(
context,
Expand Down Expand Up @@ -272,13 +273,14 @@ public void testIngestWithSanitizedNullByteUsingContextParameter() throws IOExce
ColumnType.LONG
)
)
.columns("agent_category", "v0")
.columns("v0", "agent_category")
.columnTypes(ColumnType.LONG, ColumnType.STRING)
.resultFormat(ScanQuery.ResultFormat.RESULT_FORMAT_COMPACTED_LIST)
.context(defaultScanQueryContext(
context,
RowSignature.builder()
.add("agent_category", ColumnType.STRING)
.add("v0", ColumnType.LONG)
.add("agent_category", ColumnType.STRING)
.build()
))
.build();
Expand Down
Loading