mirror of
https://github.com/hanzoai/datastore.git
synced 2026-09-26 13:55:07 +00:00
Normalize value_type in 03457 instead of skipping the whole test on Darwin
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
-- Tags: no-darwin
|
||||
-- no-darwin: UInt64 demangles to 'unsigned long long' on macOS libc++ (vs 'unsigned long' on Linux), so the value_type name in the output differs.
|
||||
|
||||
select 'TEST groupNumericIndexedVector';
|
||||
|
||||
DROP TABLE IF EXISTS uin_value_details;
|
||||
@@ -16,13 +13,14 @@ ORDER BY ds;
|
||||
INSERT INTO uin_value_details (ds, uin, value) values ('2023-12-26', 105, 5), ('2023-12-26', 104, 4), ('2023-12-26', 103, 3);
|
||||
INSERT INTO uin_value_details (ds, uin, value) values ('2023-12-27', 10000001, 7), ('2023-12-27', 10000002, 3);
|
||||
|
||||
select numericIndexedVectorShortDebugString(groupNumericIndexedVectorState(uin, value)) from uin_value_details;
|
||||
-- Normalize value_type: UInt64 demangles to 'unsigned long long' on macOS libc++ (vs 'unsigned long' on Linux).
|
||||
select replaceRegexpAll(numericIndexedVectorShortDebugString(groupNumericIndexedVectorState(uin, value)), '"value_type":"unsigned long long"', '"value_type":"unsigned long"') from uin_value_details;
|
||||
select groupNumericIndexedVector(uin, value) from uin_value_details;
|
||||
select numericIndexedVectorAllValueSum(groupNumericIndexedVectorState(uin, value)) from uin_value_details;
|
||||
select numericIndexedVectorCardinality(groupNumericIndexedVectorState(uin, value)) from uin_value_details;
|
||||
|
||||
select numericIndexedVectorShortDebugString(groupNumericIndexedVectorStateIf(uin, value, ds = '2023-12-26')) from uin_value_details;
|
||||
select numericIndexedVectorShortDebugString(groupNumericIndexedVectorStateIf(uin, value, ds = '2023-12-27')) from uin_value_details;
|
||||
select replaceRegexpAll(numericIndexedVectorShortDebugString(groupNumericIndexedVectorStateIf(uin, value, ds = '2023-12-26')), '"value_type":"unsigned long long"', '"value_type":"unsigned long"') from uin_value_details;
|
||||
select replaceRegexpAll(numericIndexedVectorShortDebugString(groupNumericIndexedVectorStateIf(uin, value, ds = '2023-12-27')), '"value_type":"unsigned long long"', '"value_type":"unsigned long"') from uin_value_details;
|
||||
|
||||
select numericIndexedVectorCardinality(groupNumericIndexedVectorState('BSI', 64, 0)(uin, value)) from uin_value_details;
|
||||
select numericIndexedVectorCardinality(groupNumericIndexedVectorState('BSI', 32, 0)(uin, value)) from uin_value_details;
|
||||
|
||||
Reference in New Issue
Block a user