From ec50ad4f8df7903e621de85c5d48201290c477be Mon Sep 17 00:00:00 2001 From: Zoltan Haindrich Date: Wed, 10 Jul 2024 15:46:24 +0000 Subject: [PATCH] x --- .../Heatmap_kttm.iq | 230 ++ .../Line-chart_kttm.iq | 431 +++ .../Overall_kttm.iq | 126 + .../Sparkline_kttm.iq | 485 +++ .../Spotmatrix_kttm.iq | 238 ++ .../Stackarea_kttm.iq | 226 ++ .../Table_kttm.iq | 617 +++ .../Vertical-bars_kttm.iq | 579 +++ .../horizontal-bars_kttm.iq | 1142 ------ .../sunburst_kttm.iq | 3307 +++++++++++++++++ 10 files changed, 6239 insertions(+), 1142 deletions(-) create mode 100644 quidem-it/src/test/quidem/org.apache.druid.quidem.QTest/Heatmap_kttm.iq create mode 100644 quidem-it/src/test/quidem/org.apache.druid.quidem.QTest/Line-chart_kttm.iq create mode 100644 quidem-it/src/test/quidem/org.apache.druid.quidem.QTest/Overall_kttm.iq create mode 100644 quidem-it/src/test/quidem/org.apache.druid.quidem.QTest/Sparkline_kttm.iq create mode 100644 quidem-it/src/test/quidem/org.apache.druid.quidem.QTest/Spotmatrix_kttm.iq create mode 100644 quidem-it/src/test/quidem/org.apache.druid.quidem.QTest/Stackarea_kttm.iq create mode 100644 quidem-it/src/test/quidem/org.apache.druid.quidem.QTest/Table_kttm.iq create mode 100644 quidem-it/src/test/quidem/org.apache.druid.quidem.QTest/Vertical-bars_kttm.iq create mode 100644 quidem-it/src/test/quidem/org.apache.druid.quidem.QTest/sunburst_kttm.iq diff --git a/quidem-it/src/test/quidem/org.apache.druid.quidem.QTest/Heatmap_kttm.iq b/quidem-it/src/test/quidem/org.apache.druid.quidem.QTest/Heatmap_kttm.iq new file mode 100644 index 000000000000..4f030194cc32 --- /dev/null +++ b/quidem-it/src/test/quidem/org.apache.druid.quidem.QTest/Heatmap_kttm.iq @@ -0,0 +1,230 @@ +#started Wed Jul 10 19:21:24 IST 2024 +!use druidtest:///?componentSupplier=KttmNestedComponentSupplier +!set outputformat mysql +# Wed Jul 10 19:21:27 IST 2024 +SELECT TABLE_NAME, COLUMN_NAME, DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = 'druid'; +!ok +# Wed Jul 10 19:22:09 IST 2024 +SELECT TABLE_NAME, COLUMN_NAME, DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = 'druid'; +!ok +# Wed Jul 10 19:22:28 IST 2024 +SELECT TABLE_NAME, COLUMN_NAME, DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = 'druid'; +!ok +# Wed Jul 10 19:23:06 IST 2024 +SELECT +MAX(CAST(t."__time" AS TIMESTAMP)) AS "__VALUE__" +FROM "kttm_nested" AS t +GROUP BY (); +!ok +# Wed Jul 10 19:23:09 IST 2024 +SELECT TABLE_NAME, COLUMN_NAME, DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = 'druid'; +!ok +# Wed Jul 10 19:23:29 IST 2024 +SELECT TABLE_NAME, COLUMN_NAME, DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = 'druid'; +!ok +# Wed Jul 10 19:24:09 IST 2024 +SELECT TABLE_NAME, COLUMN_NAME, DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = 'druid'; +!ok +# Wed Jul 10 19:24:30 IST 2024 +SELECT TABLE_NAME, COLUMN_NAME, DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = 'druid'; +!ok +# Wed Jul 10 19:25:09 IST 2024 +SELECT TABLE_NAME, COLUMN_NAME, DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = 'druid'; +!ok +# Wed Jul 10 19:25:31 IST 2024 +SELECT TABLE_NAME, COLUMN_NAME, DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = 'druid'; +!ok +# Wed Jul 10 19:26:00 IST 2024 +SELECT +MAX(CAST(t."__time" AS TIMESTAMP)) AS "__VALUE__" +FROM "kttm_nested" AS t +GROUP BY (); +!ok +# Wed Jul 10 19:26:00 IST 2024 +SELECT +MAX(CAST(t."__time" AS TIMESTAMP)) AS "__VALUE__" +FROM "kttm_nested" AS t +GROUP BY (); +!ok +# Wed Jul 10 19:26:01 IST 2024 +SELECT +(COUNT(*)) AS "__VALUE__" +FROM "kttm_nested" AS t +WHERE (TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP) | -| arrays | arrayNoType | ARRAY | -| arrays | arrayObject | COMPLEX | -| arrays | arrayString | ARRAY | -| arrays | arrayStringNulls | ARRAY | -| arrays | arrayVariant | ARRAY | -| arrays | cnt | BIGINT | -| broadcast | __time | TIMESTAMP | -| broadcast | cnt | BIGINT | -| broadcast | d1 | DOUBLE | -| broadcast | d2 | DOUBLE | -| broadcast | dim1 | VARCHAR | -| broadcast | dim2 | VARCHAR | -| broadcast | dim3 | VARCHAR | -| broadcast | dim4 | VARCHAR | -| broadcast | dim5 | VARCHAR | -| broadcast | dim6 | VARCHAR | -| broadcast | f1 | FLOAT | -| broadcast | f2 | FLOAT | -| broadcast | l1 | BIGINT | -| broadcast | l2 | BIGINT | -| broadcast | m1 | FLOAT | -| broadcast | m2 | DOUBLE | -| broadcast | unique_dim1 | COMPLEX | -| foo | __time | TIMESTAMP | -| foo | cnt | BIGINT | -| foo | dim1 | VARCHAR | -| foo | dim2 | VARCHAR | -| foo | dim3 | VARCHAR | -| foo | m1 | FLOAT | -| foo | m2 | DOUBLE | -| foo | unique_dim1 | COMPLEX | -| foo2 | __time | TIMESTAMP | -| foo2 | cnt | BIGINT | -| foo2 | dim1 | VARCHAR | -| foo2 | dim2 | VARCHAR | -| foo2 | dim3 | BIGINT | -| foo2 | m1 | BIGINT | -| foo2 | m2 | DOUBLE | -| foo2 | unique_dim1 | COMPLEX | -| foo4 | __time | TIMESTAMP | -| foo4 | cnt | BIGINT | -| foo4 | dim1 | VARCHAR | -| foo4 | dim2 | VARCHAR | -| foo4 | dim3 | VARCHAR | -| foo4 | m1 | FLOAT | -| foo4 | m2 | DOUBLE | -| foo4 | unique_dim1 | COMPLEX | -| kttm_nested | __time | TIMESTAMP | -| kttm_nested | adblock_list | VARCHAR | -| kttm_nested | agent | COMPLEX | -| kttm_nested | app_version | VARCHAR | -| kttm_nested | client_ip | VARCHAR | -| kttm_nested | event | COMPLEX | -| kttm_nested | geo_ip | VARCHAR | -| kttm_nested | language | VARCHAR | -| kttm_nested | loaded_image | VARCHAR | -| kttm_nested | number | VARCHAR | -| kttm_nested | path | VARCHAR | -| kttm_nested | referrer | VARCHAR | -| kttm_nested | referrer_host | VARCHAR | -| kttm_nested | screen | VARCHAR | -| kttm_nested | server_ip | VARCHAR | -| kttm_nested | session | VARCHAR | -| kttm_nested | session_length | BIGINT | -| kttm_nested | timezone | VARCHAR | -| kttm_nested | timezone_offset | BIGINT | -| kttm_nested | window | VARCHAR | -| lotsocolumns | __time | TIMESTAMP | -| lotsocolumns | count | BIGINT | -| lotsocolumns | dimHyperUnique | VARCHAR | -| lotsocolumns | dimMultivalEnumerated | VARCHAR | -| lotsocolumns | dimMultivalEnumerated2 | VARCHAR | -| lotsocolumns | dimMultivalSequentialWithNulls | VARCHAR | -| lotsocolumns | dimSequential | VARCHAR | -| lotsocolumns | dimSequentialHalfNull | VARCHAR | -| lotsocolumns | dimUniform | VARCHAR | -| lotsocolumns | dimZipf | VARCHAR | -| lotsocolumns | metFloatNormal | VARCHAR | -| lotsocolumns | metFloatZipf | VARCHAR | -| lotsocolumns | metLongSequential | VARCHAR | -| lotsocolumns | metLongUniform | VARCHAR | -| numfoo | __time | TIMESTAMP | -| numfoo | cnt | BIGINT | -| numfoo | d1 | DOUBLE | -| numfoo | d2 | DOUBLE | -| numfoo | dim1 | VARCHAR | -| numfoo | dim2 | VARCHAR | -| numfoo | dim3 | VARCHAR | -| numfoo | dim4 | VARCHAR | -| numfoo | dim5 | VARCHAR | -| numfoo | dim6 | VARCHAR | -| numfoo | f1 | FLOAT | -| numfoo | f2 | FLOAT | -| numfoo | l1 | BIGINT | -| numfoo | l2 | BIGINT | -| numfoo | m1 | FLOAT | -| numfoo | m2 | DOUBLE | -| numfoo | unique_dim1 | COMPLEX | -| some_datasource | __time | TIMESTAMP | -| some_datasource | cnt | BIGINT | -| some_datasource | dim1 | VARCHAR | -| some_datasource | dim2 | VARCHAR | -| some_datasource | dim3 | VARCHAR | -| some_datasource | m1 | FLOAT | -| some_datasource | m2 | DOUBLE | -| some_datasource | unique_dim1 | COMPLEX | -| somexdatasource | __time | TIMESTAMP | -| somexdatasource | cnt_x | BIGINT | -| somexdatasource | m1_x | FLOAT | -| somexdatasource | m2_x | DOUBLE | -| somexdatasource | unique_dim1_x | COMPLEX | -| visits | __time | TIMESTAMP | -| visits | city | VARCHAR | -| visits | cnt | BIGINT | -| visits | country | VARCHAR | -| visits | m1 | FLOAT | -| visits | m2 | DOUBLE | -| visits | unique_dim1 | COMPLEX | -| visits | user | VARCHAR | -| wikipedia | __time | TIMESTAMP | -| wikipedia | added | BIGINT | -| wikipedia | channel | VARCHAR | -| wikipedia | cityName | VARCHAR | -| wikipedia | comment | VARCHAR | -| wikipedia | countryIsoCode | VARCHAR | -| wikipedia | countryName | VARCHAR | -| wikipedia | deleted | BIGINT | -| wikipedia | delta | BIGINT | -| wikipedia | isAnonymous | VARCHAR | -| wikipedia | isMinor | VARCHAR | -| wikipedia | isNew | VARCHAR | -| wikipedia | isRobot | VARCHAR | -| wikipedia | isUnpatrolled | VARCHAR | -| wikipedia | metroCode | VARCHAR | -| wikipedia | namespace | VARCHAR | -| wikipedia | page | VARCHAR | -| wikipedia | regionIsoCode | VARCHAR | -| wikipedia | regionName | VARCHAR | -| wikipedia | user | VARCHAR | -| wikipedia_first_last | __time | TIMESTAMP | -| wikipedia_first_last | channel | VARCHAR | -| wikipedia_first_last | cityName | VARCHAR | -| wikipedia_first_last | comment | VARCHAR | -| wikipedia_first_last | countryIsoCode | VARCHAR | -| wikipedia_first_last | countryName | VARCHAR | -| wikipedia_first_last | double_first_added | COMPLEX | -| wikipedia_first_last | double_last_added | COMPLEX | -| wikipedia_first_last | float_first_added | COMPLEX | -| wikipedia_first_last | float_last_added | COMPLEX | -| wikipedia_first_last | isAnonymous | VARCHAR | -| wikipedia_first_last | isMinor | VARCHAR | -| wikipedia_first_last | isNew | VARCHAR | -| wikipedia_first_last | isRobot | VARCHAR | -| wikipedia_first_last | isUnpatrolled | VARCHAR | -| wikipedia_first_last | long_first_added | COMPLEX | -| wikipedia_first_last | long_last_added | COMPLEX | -| wikipedia_first_last | metroCode | VARCHAR | -| wikipedia_first_last | namespace | VARCHAR | -| wikipedia_first_last | page | VARCHAR | -| wikipedia_first_last | regionIsoCode | VARCHAR | -| wikipedia_first_last | regionName | VARCHAR | -| wikipedia_first_last | string_first_added | COMPLEX | -| wikipedia_first_last | string_last_added | COMPLEX | -| wikipedia_first_last | user | VARCHAR | -+----------------------+--------------------------------+-------------------------------------+ -(170 rows) - !ok # Wed Jul 10 16:23:54 IST 2024 SELECT TABLE_NAME, COLUMN_NAME, DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = 'druid'; -+----------------------+--------------------------------+-------------------------------------+ -| TABLE_NAME | COLUMN_NAME | DATA_TYPE | -+----------------------+--------------------------------+-------------------------------------+ -| arrays | __time | TIMESTAMP | -| arrays | arrayDouble | ARRAY | -| arrays | arrayDoubleNulls | ARRAY | -| arrays | arrayLong | ARRAY | -| arrays | arrayLongNulls | ARRAY | -| arrays | arrayNestedLong | COMPLEX | -| arrays | arrayNoType | ARRAY | -| arrays | arrayObject | COMPLEX | -| arrays | arrayString | ARRAY | -| arrays | arrayStringNulls | ARRAY | -| arrays | arrayVariant | ARRAY | -| arrays | cnt | BIGINT | -| broadcast | __time | TIMESTAMP | -| broadcast | cnt | BIGINT | -| broadcast | d1 | DOUBLE | -| broadcast | d2 | DOUBLE | -| broadcast | dim1 | VARCHAR | -| broadcast | dim2 | VARCHAR | -| broadcast | dim3 | VARCHAR | -| broadcast | dim4 | VARCHAR | -| broadcast | dim5 | VARCHAR | -| broadcast | dim6 | VARCHAR | -| broadcast | f1 | FLOAT | -| broadcast | f2 | FLOAT | -| broadcast | l1 | BIGINT | -| broadcast | l2 | BIGINT | -| broadcast | m1 | FLOAT | -| broadcast | m2 | DOUBLE | -| broadcast | unique_dim1 | COMPLEX | -| foo | __time | TIMESTAMP | -| foo | cnt | BIGINT | -| foo | dim1 | VARCHAR | -| foo | dim2 | VARCHAR | -| foo | dim3 | VARCHAR | -| foo | m1 | FLOAT | -| foo | m2 | DOUBLE | -| foo | unique_dim1 | COMPLEX | -| foo2 | __time | TIMESTAMP | -| foo2 | cnt | BIGINT | -| foo2 | dim1 | VARCHAR | -| foo2 | dim2 | VARCHAR | -| foo2 | dim3 | BIGINT | -| foo2 | m1 | BIGINT | -| foo2 | m2 | DOUBLE | -| foo2 | unique_dim1 | COMPLEX | -| foo4 | __time | TIMESTAMP | -| foo4 | cnt | BIGINT | -| foo4 | dim1 | VARCHAR | -| foo4 | dim2 | VARCHAR | -| foo4 | dim3 | VARCHAR | -| foo4 | m1 | FLOAT | -| foo4 | m2 | DOUBLE | -| foo4 | unique_dim1 | COMPLEX | -| kttm_nested | __time | TIMESTAMP | -| kttm_nested | adblock_list | VARCHAR | -| kttm_nested | agent | COMPLEX | -| kttm_nested | app_version | VARCHAR | -| kttm_nested | client_ip | VARCHAR | -| kttm_nested | event | COMPLEX | -| kttm_nested | geo_ip | VARCHAR | -| kttm_nested | language | VARCHAR | -| kttm_nested | loaded_image | VARCHAR | -| kttm_nested | number | VARCHAR | -| kttm_nested | path | VARCHAR | -| kttm_nested | referrer | VARCHAR | -| kttm_nested | referrer_host | VARCHAR | -| kttm_nested | screen | VARCHAR | -| kttm_nested | server_ip | VARCHAR | -| kttm_nested | session | VARCHAR | -| kttm_nested | session_length | BIGINT | -| kttm_nested | timezone | VARCHAR | -| kttm_nested | timezone_offset | BIGINT | -| kttm_nested | window | VARCHAR | -| lotsocolumns | __time | TIMESTAMP | -| lotsocolumns | count | BIGINT | -| lotsocolumns | dimHyperUnique | VARCHAR | -| lotsocolumns | dimMultivalEnumerated | VARCHAR | -| lotsocolumns | dimMultivalEnumerated2 | VARCHAR | -| lotsocolumns | dimMultivalSequentialWithNulls | VARCHAR | -| lotsocolumns | dimSequential | VARCHAR | -| lotsocolumns | dimSequentialHalfNull | VARCHAR | -| lotsocolumns | dimUniform | VARCHAR | -| lotsocolumns | dimZipf | VARCHAR | -| lotsocolumns | metFloatNormal | VARCHAR | -| lotsocolumns | metFloatZipf | VARCHAR | -| lotsocolumns | metLongSequential | VARCHAR | -| lotsocolumns | metLongUniform | VARCHAR | -| numfoo | __time | TIMESTAMP | -| numfoo | cnt | BIGINT | -| numfoo | d1 | DOUBLE | -| numfoo | d2 | DOUBLE | -| numfoo | dim1 | VARCHAR | -| numfoo | dim2 | VARCHAR | -| numfoo | dim3 | VARCHAR | -| numfoo | dim4 | VARCHAR | -| numfoo | dim5 | VARCHAR | -| numfoo | dim6 | VARCHAR | -| numfoo | f1 | FLOAT | -| numfoo | f2 | FLOAT | -| numfoo | l1 | BIGINT | -| numfoo | l2 | BIGINT | -| numfoo | m1 | FLOAT | -| numfoo | m2 | DOUBLE | -| numfoo | unique_dim1 | COMPLEX | -| some_datasource | __time | TIMESTAMP | -| some_datasource | cnt | BIGINT | -| some_datasource | dim1 | VARCHAR | -| some_datasource | dim2 | VARCHAR | -| some_datasource | dim3 | VARCHAR | -| some_datasource | m1 | FLOAT | -| some_datasource | m2 | DOUBLE | -| some_datasource | unique_dim1 | COMPLEX | -| somexdatasource | __time | TIMESTAMP | -| somexdatasource | cnt_x | BIGINT | -| somexdatasource | m1_x | FLOAT | -| somexdatasource | m2_x | DOUBLE | -| somexdatasource | unique_dim1_x | COMPLEX | -| visits | __time | TIMESTAMP | -| visits | city | VARCHAR | -| visits | cnt | BIGINT | -| visits | country | VARCHAR | -| visits | m1 | FLOAT | -| visits | m2 | DOUBLE | -| visits | unique_dim1 | COMPLEX | -| visits | user | VARCHAR | -| wikipedia | __time | TIMESTAMP | -| wikipedia | added | BIGINT | -| wikipedia | channel | VARCHAR | -| wikipedia | cityName | VARCHAR | -| wikipedia | comment | VARCHAR | -| wikipedia | countryIsoCode | VARCHAR | -| wikipedia | countryName | VARCHAR | -| wikipedia | deleted | BIGINT | -| wikipedia | delta | BIGINT | -| wikipedia | isAnonymous | VARCHAR | -| wikipedia | isMinor | VARCHAR | -| wikipedia | isNew | VARCHAR | -| wikipedia | isRobot | VARCHAR | -| wikipedia | isUnpatrolled | VARCHAR | -| wikipedia | metroCode | VARCHAR | -| wikipedia | namespace | VARCHAR | -| wikipedia | page | VARCHAR | -| wikipedia | regionIsoCode | VARCHAR | -| wikipedia | regionName | VARCHAR | -| wikipedia | user | VARCHAR | -| wikipedia_first_last | __time | TIMESTAMP | -| wikipedia_first_last | channel | VARCHAR | -| wikipedia_first_last | cityName | VARCHAR | -| wikipedia_first_last | comment | VARCHAR | -| wikipedia_first_last | countryIsoCode | VARCHAR | -| wikipedia_first_last | countryName | VARCHAR | -| wikipedia_first_last | double_first_added | COMPLEX | -| wikipedia_first_last | double_last_added | COMPLEX | -| wikipedia_first_last | float_first_added | COMPLEX | -| wikipedia_first_last | float_last_added | COMPLEX | -| wikipedia_first_last | isAnonymous | VARCHAR | -| wikipedia_first_last | isMinor | VARCHAR | -| wikipedia_first_last | isNew | VARCHAR | -| wikipedia_first_last | isRobot | VARCHAR | -| wikipedia_first_last | isUnpatrolled | VARCHAR | -| wikipedia_first_last | long_first_added | COMPLEX | -| wikipedia_first_last | long_last_added | COMPLEX | -| wikipedia_first_last | metroCode | VARCHAR | -| wikipedia_first_last | namespace | VARCHAR | -| wikipedia_first_last | page | VARCHAR | -| wikipedia_first_last | regionIsoCode | VARCHAR | -| wikipedia_first_last | regionName | VARCHAR | -| wikipedia_first_last | string_first_added | COMPLEX | -| wikipedia_first_last | string_last_added | COMPLEX | -| wikipedia_first_last | user | VARCHAR | -+----------------------+--------------------------------+-------------------------------------+ -(170 rows) - !ok # Wed Jul 10 16:24:06 IST 2024 SELECT MAX(CAST(t."__time" AS TIMESTAMP)) AS "__VALUE__" FROM "kttm_nested" AS t GROUP BY (); -+-------------------------+ -| __VALUE__ | -+-------------------------+ -| 2019-08-25 23:59:59.686 | -+-------------------------+ -(1 row) - !ok # Wed Jul 10 16:24:06 IST 2024 SELECT MAX(CAST(t."__time" AS TIMESTAMP)) AS "__VALUE__" FROM "kttm_nested" AS t GROUP BY (); -+-------------------------+ -| __VALUE__ | -+-------------------------+ -| 2019-08-25 23:59:59.686 | -+-------------------------+ -(1 row) - !ok # Wed Jul 10 16:24:06 IST 2024 SELECT @@ -391,13 +25,6 @@ SELECT FROM "kttm_nested" AS t WHERE (TIMESTAMP '2024-07-09 10:55:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP) | -| arrays | arrayNoType | ARRAY | -| arrays | arrayObject | COMPLEX | -| arrays | arrayString | ARRAY | -| arrays | arrayStringNulls | ARRAY | -| arrays | arrayVariant | ARRAY | -| arrays | cnt | BIGINT | -| broadcast | __time | TIMESTAMP | -| broadcast | cnt | BIGINT | -| broadcast | d1 | DOUBLE | -| broadcast | d2 | DOUBLE | -| broadcast | dim1 | VARCHAR | -| broadcast | dim2 | VARCHAR | -| broadcast | dim3 | VARCHAR | -| broadcast | dim4 | VARCHAR | -| broadcast | dim5 | VARCHAR | -| broadcast | dim6 | VARCHAR | -| broadcast | f1 | FLOAT | -| broadcast | f2 | FLOAT | -| broadcast | l1 | BIGINT | -| broadcast | l2 | BIGINT | -| broadcast | m1 | FLOAT | -| broadcast | m2 | DOUBLE | -| broadcast | unique_dim1 | COMPLEX | -| foo | __time | TIMESTAMP | -| foo | cnt | BIGINT | -| foo | dim1 | VARCHAR | -| foo | dim2 | VARCHAR | -| foo | dim3 | VARCHAR | -| foo | m1 | FLOAT | -| foo | m2 | DOUBLE | -| foo | unique_dim1 | COMPLEX | -| foo2 | __time | TIMESTAMP | -| foo2 | cnt | BIGINT | -| foo2 | dim1 | VARCHAR | -| foo2 | dim2 | VARCHAR | -| foo2 | dim3 | BIGINT | -| foo2 | m1 | BIGINT | -| foo2 | m2 | DOUBLE | -| foo2 | unique_dim1 | COMPLEX | -| foo4 | __time | TIMESTAMP | -| foo4 | cnt | BIGINT | -| foo4 | dim1 | VARCHAR | -| foo4 | dim2 | VARCHAR | -| foo4 | dim3 | VARCHAR | -| foo4 | m1 | FLOAT | -| foo4 | m2 | DOUBLE | -| foo4 | unique_dim1 | COMPLEX | -| kttm_nested | __time | TIMESTAMP | -| kttm_nested | adblock_list | VARCHAR | -| kttm_nested | agent | COMPLEX | -| kttm_nested | app_version | VARCHAR | -| kttm_nested | client_ip | VARCHAR | -| kttm_nested | event | COMPLEX | -| kttm_nested | geo_ip | VARCHAR | -| kttm_nested | language | VARCHAR | -| kttm_nested | loaded_image | VARCHAR | -| kttm_nested | number | VARCHAR | -| kttm_nested | path | VARCHAR | -| kttm_nested | referrer | VARCHAR | -| kttm_nested | referrer_host | VARCHAR | -| kttm_nested | screen | VARCHAR | -| kttm_nested | server_ip | VARCHAR | -| kttm_nested | session | VARCHAR | -| kttm_nested | session_length | BIGINT | -| kttm_nested | timezone | VARCHAR | -| kttm_nested | timezone_offset | BIGINT | -| kttm_nested | window | VARCHAR | -| lotsocolumns | __time | TIMESTAMP | -| lotsocolumns | count | BIGINT | -| lotsocolumns | dimHyperUnique | VARCHAR | -| lotsocolumns | dimMultivalEnumerated | VARCHAR | -| lotsocolumns | dimMultivalEnumerated2 | VARCHAR | -| lotsocolumns | dimMultivalSequentialWithNulls | VARCHAR | -| lotsocolumns | dimSequential | VARCHAR | -| lotsocolumns | dimSequentialHalfNull | VARCHAR | -| lotsocolumns | dimUniform | VARCHAR | -| lotsocolumns | dimZipf | VARCHAR | -| lotsocolumns | metFloatNormal | VARCHAR | -| lotsocolumns | metFloatZipf | VARCHAR | -| lotsocolumns | metLongSequential | VARCHAR | -| lotsocolumns | metLongUniform | VARCHAR | -| numfoo | __time | TIMESTAMP | -| numfoo | cnt | BIGINT | -| numfoo | d1 | DOUBLE | -| numfoo | d2 | DOUBLE | -| numfoo | dim1 | VARCHAR | -| numfoo | dim2 | VARCHAR | -| numfoo | dim3 | VARCHAR | -| numfoo | dim4 | VARCHAR | -| numfoo | dim5 | VARCHAR | -| numfoo | dim6 | VARCHAR | -| numfoo | f1 | FLOAT | -| numfoo | f2 | FLOAT | -| numfoo | l1 | BIGINT | -| numfoo | l2 | BIGINT | -| numfoo | m1 | FLOAT | -| numfoo | m2 | DOUBLE | -| numfoo | unique_dim1 | COMPLEX | -| some_datasource | __time | TIMESTAMP | -| some_datasource | cnt | BIGINT | -| some_datasource | dim1 | VARCHAR | -| some_datasource | dim2 | VARCHAR | -| some_datasource | dim3 | VARCHAR | -| some_datasource | m1 | FLOAT | -| some_datasource | m2 | DOUBLE | -| some_datasource | unique_dim1 | COMPLEX | -| somexdatasource | __time | TIMESTAMP | -| somexdatasource | cnt_x | BIGINT | -| somexdatasource | m1_x | FLOAT | -| somexdatasource | m2_x | DOUBLE | -| somexdatasource | unique_dim1_x | COMPLEX | -| visits | __time | TIMESTAMP | -| visits | city | VARCHAR | -| visits | cnt | BIGINT | -| visits | country | VARCHAR | -| visits | m1 | FLOAT | -| visits | m2 | DOUBLE | -| visits | unique_dim1 | COMPLEX | -| visits | user | VARCHAR | -| wikipedia | __time | TIMESTAMP | -| wikipedia | added | BIGINT | -| wikipedia | channel | VARCHAR | -| wikipedia | cityName | VARCHAR | -| wikipedia | comment | VARCHAR | -| wikipedia | countryIsoCode | VARCHAR | -| wikipedia | countryName | VARCHAR | -| wikipedia | deleted | BIGINT | -| wikipedia | delta | BIGINT | -| wikipedia | isAnonymous | VARCHAR | -| wikipedia | isMinor | VARCHAR | -| wikipedia | isNew | VARCHAR | -| wikipedia | isRobot | VARCHAR | -| wikipedia | isUnpatrolled | VARCHAR | -| wikipedia | metroCode | VARCHAR | -| wikipedia | namespace | VARCHAR | -| wikipedia | page | VARCHAR | -| wikipedia | regionIsoCode | VARCHAR | -| wikipedia | regionName | VARCHAR | -| wikipedia | user | VARCHAR | -| wikipedia_first_last | __time | TIMESTAMP | -| wikipedia_first_last | channel | VARCHAR | -| wikipedia_first_last | cityName | VARCHAR | -| wikipedia_first_last | comment | VARCHAR | -| wikipedia_first_last | countryIsoCode | VARCHAR | -| wikipedia_first_last | countryName | VARCHAR | -| wikipedia_first_last | double_first_added | COMPLEX | -| wikipedia_first_last | double_last_added | COMPLEX | -| wikipedia_first_last | float_first_added | COMPLEX | -| wikipedia_first_last | float_last_added | COMPLEX | -| wikipedia_first_last | isAnonymous | VARCHAR | -| wikipedia_first_last | isMinor | VARCHAR | -| wikipedia_first_last | isNew | VARCHAR | -| wikipedia_first_last | isRobot | VARCHAR | -| wikipedia_first_last | isUnpatrolled | VARCHAR | -| wikipedia_first_last | long_first_added | COMPLEX | -| wikipedia_first_last | long_last_added | COMPLEX | -| wikipedia_first_last | metroCode | VARCHAR | -| wikipedia_first_last | namespace | VARCHAR | -| wikipedia_first_last | page | VARCHAR | -| wikipedia_first_last | regionIsoCode | VARCHAR | -| wikipedia_first_last | regionName | VARCHAR | -| wikipedia_first_last | string_first_added | COMPLEX | -| wikipedia_first_last | string_last_added | COMPLEX | -| wikipedia_first_last | user | VARCHAR | -+----------------------+--------------------------------+-------------------------------------+ -(170 rows) - !ok # Wed Jul 10 16:24:36 IST 2024 SELECT @@ -901,12 +123,6 @@ CAST(t."adblock_list" AS VARCHAR) AS "adblock_list", FROM "kttm_nested" AS t WHERE (((TIMESTAMP '2019-08-24 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP) | -| arrays | arrayNoType | ARRAY | -| arrays | arrayObject | COMPLEX | -| arrays | arrayString | ARRAY | -| arrays | arrayStringNulls | ARRAY | -| arrays | arrayVariant | ARRAY | -| arrays | cnt | BIGINT | -| broadcast | __time | TIMESTAMP | -| broadcast | cnt | BIGINT | -| broadcast | d1 | DOUBLE | -| broadcast | d2 | DOUBLE | -| broadcast | dim1 | VARCHAR | -| broadcast | dim2 | VARCHAR | -| broadcast | dim3 | VARCHAR | -| broadcast | dim4 | VARCHAR | -| broadcast | dim5 | VARCHAR | -| broadcast | dim6 | VARCHAR | -| broadcast | f1 | FLOAT | -| broadcast | f2 | FLOAT | -| broadcast | l1 | BIGINT | -| broadcast | l2 | BIGINT | -| broadcast | m1 | FLOAT | -| broadcast | m2 | DOUBLE | -| broadcast | unique_dim1 | COMPLEX | -| foo | __time | TIMESTAMP | -| foo | cnt | BIGINT | -| foo | dim1 | VARCHAR | -| foo | dim2 | VARCHAR | -| foo | dim3 | VARCHAR | -| foo | m1 | FLOAT | -| foo | m2 | DOUBLE | -| foo | unique_dim1 | COMPLEX | -| foo2 | __time | TIMESTAMP | -| foo2 | cnt | BIGINT | -| foo2 | dim1 | VARCHAR | -| foo2 | dim2 | VARCHAR | -| foo2 | dim3 | BIGINT | -| foo2 | m1 | BIGINT | -| foo2 | m2 | DOUBLE | -| foo2 | unique_dim1 | COMPLEX | -| foo4 | __time | TIMESTAMP | -| foo4 | cnt | BIGINT | -| foo4 | dim1 | VARCHAR | -| foo4 | dim2 | VARCHAR | -| foo4 | dim3 | VARCHAR | -| foo4 | m1 | FLOAT | -| foo4 | m2 | DOUBLE | -| foo4 | unique_dim1 | COMPLEX | -| kttm_nested | __time | TIMESTAMP | -| kttm_nested | adblock_list | VARCHAR | -| kttm_nested | agent | COMPLEX | -| kttm_nested | app_version | VARCHAR | -| kttm_nested | client_ip | VARCHAR | -| kttm_nested | event | COMPLEX | -| kttm_nested | geo_ip | VARCHAR | -| kttm_nested | language | VARCHAR | -| kttm_nested | loaded_image | VARCHAR | -| kttm_nested | number | VARCHAR | -| kttm_nested | path | VARCHAR | -| kttm_nested | referrer | VARCHAR | -| kttm_nested | referrer_host | VARCHAR | -| kttm_nested | screen | VARCHAR | -| kttm_nested | server_ip | VARCHAR | -| kttm_nested | session | VARCHAR | -| kttm_nested | session_length | BIGINT | -| kttm_nested | timezone | VARCHAR | -| kttm_nested | timezone_offset | BIGINT | -| kttm_nested | window | VARCHAR | -| lotsocolumns | __time | TIMESTAMP | -| lotsocolumns | count | BIGINT | -| lotsocolumns | dimHyperUnique | VARCHAR | -| lotsocolumns | dimMultivalEnumerated | VARCHAR | -| lotsocolumns | dimMultivalEnumerated2 | VARCHAR | -| lotsocolumns | dimMultivalSequentialWithNulls | VARCHAR | -| lotsocolumns | dimSequential | VARCHAR | -| lotsocolumns | dimSequentialHalfNull | VARCHAR | -| lotsocolumns | dimUniform | VARCHAR | -| lotsocolumns | dimZipf | VARCHAR | -| lotsocolumns | metFloatNormal | VARCHAR | -| lotsocolumns | metFloatZipf | VARCHAR | -| lotsocolumns | metLongSequential | VARCHAR | -| lotsocolumns | metLongUniform | VARCHAR | -| numfoo | __time | TIMESTAMP | -| numfoo | cnt | BIGINT | -| numfoo | d1 | DOUBLE | -| numfoo | d2 | DOUBLE | -| numfoo | dim1 | VARCHAR | -| numfoo | dim2 | VARCHAR | -| numfoo | dim3 | VARCHAR | -| numfoo | dim4 | VARCHAR | -| numfoo | dim5 | VARCHAR | -| numfoo | dim6 | VARCHAR | -| numfoo | f1 | FLOAT | -| numfoo | f2 | FLOAT | -| numfoo | l1 | BIGINT | -| numfoo | l2 | BIGINT | -| numfoo | m1 | FLOAT | -| numfoo | m2 | DOUBLE | -| numfoo | unique_dim1 | COMPLEX | -| some_datasource | __time | TIMESTAMP | -| some_datasource | cnt | BIGINT | -| some_datasource | dim1 | VARCHAR | -| some_datasource | dim2 | VARCHAR | -| some_datasource | dim3 | VARCHAR | -| some_datasource | m1 | FLOAT | -| some_datasource | m2 | DOUBLE | -| some_datasource | unique_dim1 | COMPLEX | -| somexdatasource | __time | TIMESTAMP | -| somexdatasource | cnt_x | BIGINT | -| somexdatasource | m1_x | FLOAT | -| somexdatasource | m2_x | DOUBLE | -| somexdatasource | unique_dim1_x | COMPLEX | -| visits | __time | TIMESTAMP | -| visits | city | VARCHAR | -| visits | cnt | BIGINT | -| visits | country | VARCHAR | -| visits | m1 | FLOAT | -| visits | m2 | DOUBLE | -| visits | unique_dim1 | COMPLEX | -| visits | user | VARCHAR | -| wikipedia | __time | TIMESTAMP | -| wikipedia | added | BIGINT | -| wikipedia | channel | VARCHAR | -| wikipedia | cityName | VARCHAR | -| wikipedia | comment | VARCHAR | -| wikipedia | countryIsoCode | VARCHAR | -| wikipedia | countryName | VARCHAR | -| wikipedia | deleted | BIGINT | -| wikipedia | delta | BIGINT | -| wikipedia | isAnonymous | VARCHAR | -| wikipedia | isMinor | VARCHAR | -| wikipedia | isNew | VARCHAR | -| wikipedia | isRobot | VARCHAR | -| wikipedia | isUnpatrolled | VARCHAR | -| wikipedia | metroCode | VARCHAR | -| wikipedia | namespace | VARCHAR | -| wikipedia | page | VARCHAR | -| wikipedia | regionIsoCode | VARCHAR | -| wikipedia | regionName | VARCHAR | -| wikipedia | user | VARCHAR | -| wikipedia_first_last | __time | TIMESTAMP | -| wikipedia_first_last | channel | VARCHAR | -| wikipedia_first_last | cityName | VARCHAR | -| wikipedia_first_last | comment | VARCHAR | -| wikipedia_first_last | countryIsoCode | VARCHAR | -| wikipedia_first_last | countryName | VARCHAR | -| wikipedia_first_last | double_first_added | COMPLEX | -| wikipedia_first_last | double_last_added | COMPLEX | -| wikipedia_first_last | float_first_added | COMPLEX | -| wikipedia_first_last | float_last_added | COMPLEX | -| wikipedia_first_last | isAnonymous | VARCHAR | -| wikipedia_first_last | isMinor | VARCHAR | -| wikipedia_first_last | isNew | VARCHAR | -| wikipedia_first_last | isRobot | VARCHAR | -| wikipedia_first_last | isUnpatrolled | VARCHAR | -| wikipedia_first_last | long_first_added | COMPLEX | -| wikipedia_first_last | long_last_added | COMPLEX | -| wikipedia_first_last | metroCode | VARCHAR | -| wikipedia_first_last | namespace | VARCHAR | -| wikipedia_first_last | page | VARCHAR | -| wikipedia_first_last | regionIsoCode | VARCHAR | -| wikipedia_first_last | regionName | VARCHAR | -| wikipedia_first_last | string_first_added | COMPLEX | -| wikipedia_first_last | string_last_added | COMPLEX | -| wikipedia_first_last | user | VARCHAR | -+----------------------+--------------------------------+-------------------------------------+ -(170 rows) - !ok # Wed Jul 10 16:25:31 IST 2024 SELECT TABLE_NAME, COLUMN_NAME, DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = 'druid'; -+----------------------+--------------------------------+-------------------------------------+ -| TABLE_NAME | COLUMN_NAME | DATA_TYPE | -+----------------------+--------------------------------+-------------------------------------+ -| arrays | __time | TIMESTAMP | -| arrays | arrayDouble | ARRAY | -| arrays | arrayDoubleNulls | ARRAY | -| arrays | arrayLong | ARRAY | -| arrays | arrayLongNulls | ARRAY | -| arrays | arrayNestedLong | COMPLEX | -| arrays | arrayNoType | ARRAY | -| arrays | arrayObject | COMPLEX | -| arrays | arrayString | ARRAY | -| arrays | arrayStringNulls | ARRAY | -| arrays | arrayVariant | ARRAY | -| arrays | cnt | BIGINT | -| broadcast | __time | TIMESTAMP | -| broadcast | cnt | BIGINT | -| broadcast | d1 | DOUBLE | -| broadcast | d2 | DOUBLE | -| broadcast | dim1 | VARCHAR | -| broadcast | dim2 | VARCHAR | -| broadcast | dim3 | VARCHAR | -| broadcast | dim4 | VARCHAR | -| broadcast | dim5 | VARCHAR | -| broadcast | dim6 | VARCHAR | -| broadcast | f1 | FLOAT | -| broadcast | f2 | FLOAT | -| broadcast | l1 | BIGINT | -| broadcast | l2 | BIGINT | -| broadcast | m1 | FLOAT | -| broadcast | m2 | DOUBLE | -| broadcast | unique_dim1 | COMPLEX | -| foo | __time | TIMESTAMP | -| foo | cnt | BIGINT | -| foo | dim1 | VARCHAR | -| foo | dim2 | VARCHAR | -| foo | dim3 | VARCHAR | -| foo | m1 | FLOAT | -| foo | m2 | DOUBLE | -| foo | unique_dim1 | COMPLEX | -| foo2 | __time | TIMESTAMP | -| foo2 | cnt | BIGINT | -| foo2 | dim1 | VARCHAR | -| foo2 | dim2 | VARCHAR | -| foo2 | dim3 | BIGINT | -| foo2 | m1 | BIGINT | -| foo2 | m2 | DOUBLE | -| foo2 | unique_dim1 | COMPLEX | -| foo4 | __time | TIMESTAMP | -| foo4 | cnt | BIGINT | -| foo4 | dim1 | VARCHAR | -| foo4 | dim2 | VARCHAR | -| foo4 | dim3 | VARCHAR | -| foo4 | m1 | FLOAT | -| foo4 | m2 | DOUBLE | -| foo4 | unique_dim1 | COMPLEX | -| kttm_nested | __time | TIMESTAMP | -| kttm_nested | adblock_list | VARCHAR | -| kttm_nested | agent | COMPLEX | -| kttm_nested | app_version | VARCHAR | -| kttm_nested | client_ip | VARCHAR | -| kttm_nested | event | COMPLEX | -| kttm_nested | geo_ip | VARCHAR | -| kttm_nested | language | VARCHAR | -| kttm_nested | loaded_image | VARCHAR | -| kttm_nested | number | VARCHAR | -| kttm_nested | path | VARCHAR | -| kttm_nested | referrer | VARCHAR | -| kttm_nested | referrer_host | VARCHAR | -| kttm_nested | screen | VARCHAR | -| kttm_nested | server_ip | VARCHAR | -| kttm_nested | session | VARCHAR | -| kttm_nested | session_length | BIGINT | -| kttm_nested | timezone | VARCHAR | -| kttm_nested | timezone_offset | BIGINT | -| kttm_nested | window | VARCHAR | -| lotsocolumns | __time | TIMESTAMP | -| lotsocolumns | count | BIGINT | -| lotsocolumns | dimHyperUnique | VARCHAR | -| lotsocolumns | dimMultivalEnumerated | VARCHAR | -| lotsocolumns | dimMultivalEnumerated2 | VARCHAR | -| lotsocolumns | dimMultivalSequentialWithNulls | VARCHAR | -| lotsocolumns | dimSequential | VARCHAR | -| lotsocolumns | dimSequentialHalfNull | VARCHAR | -| lotsocolumns | dimUniform | VARCHAR | -| lotsocolumns | dimZipf | VARCHAR | -| lotsocolumns | metFloatNormal | VARCHAR | -| lotsocolumns | metFloatZipf | VARCHAR | -| lotsocolumns | metLongSequential | VARCHAR | -| lotsocolumns | metLongUniform | VARCHAR | -| numfoo | __time | TIMESTAMP | -| numfoo | cnt | BIGINT | -| numfoo | d1 | DOUBLE | -| numfoo | d2 | DOUBLE | -| numfoo | dim1 | VARCHAR | -| numfoo | dim2 | VARCHAR | -| numfoo | dim3 | VARCHAR | -| numfoo | dim4 | VARCHAR | -| numfoo | dim5 | VARCHAR | -| numfoo | dim6 | VARCHAR | -| numfoo | f1 | FLOAT | -| numfoo | f2 | FLOAT | -| numfoo | l1 | BIGINT | -| numfoo | l2 | BIGINT | -| numfoo | m1 | FLOAT | -| numfoo | m2 | DOUBLE | -| numfoo | unique_dim1 | COMPLEX | -| some_datasource | __time | TIMESTAMP | -| some_datasource | cnt | BIGINT | -| some_datasource | dim1 | VARCHAR | -| some_datasource | dim2 | VARCHAR | -| some_datasource | dim3 | VARCHAR | -| some_datasource | m1 | FLOAT | -| some_datasource | m2 | DOUBLE | -| some_datasource | unique_dim1 | COMPLEX | -| somexdatasource | __time | TIMESTAMP | -| somexdatasource | cnt_x | BIGINT | -| somexdatasource | m1_x | FLOAT | -| somexdatasource | m2_x | DOUBLE | -| somexdatasource | unique_dim1_x | COMPLEX | -| visits | __time | TIMESTAMP | -| visits | city | VARCHAR | -| visits | cnt | BIGINT | -| visits | country | VARCHAR | -| visits | m1 | FLOAT | -| visits | m2 | DOUBLE | -| visits | unique_dim1 | COMPLEX | -| visits | user | VARCHAR | -| wikipedia | __time | TIMESTAMP | -| wikipedia | added | BIGINT | -| wikipedia | channel | VARCHAR | -| wikipedia | cityName | VARCHAR | -| wikipedia | comment | VARCHAR | -| wikipedia | countryIsoCode | VARCHAR | -| wikipedia | countryName | VARCHAR | -| wikipedia | deleted | BIGINT | -| wikipedia | delta | BIGINT | -| wikipedia | isAnonymous | VARCHAR | -| wikipedia | isMinor | VARCHAR | -| wikipedia | isNew | VARCHAR | -| wikipedia | isRobot | VARCHAR | -| wikipedia | isUnpatrolled | VARCHAR | -| wikipedia | metroCode | VARCHAR | -| wikipedia | namespace | VARCHAR | -| wikipedia | page | VARCHAR | -| wikipedia | regionIsoCode | VARCHAR | -| wikipedia | regionName | VARCHAR | -| wikipedia | user | VARCHAR | -| wikipedia_first_last | __time | TIMESTAMP | -| wikipedia_first_last | channel | VARCHAR | -| wikipedia_first_last | cityName | VARCHAR | -| wikipedia_first_last | comment | VARCHAR | -| wikipedia_first_last | countryIsoCode | VARCHAR | -| wikipedia_first_last | countryName | VARCHAR | -| wikipedia_first_last | double_first_added | COMPLEX | -| wikipedia_first_last | double_last_added | COMPLEX | -| wikipedia_first_last | float_first_added | COMPLEX | -| wikipedia_first_last | float_last_added | COMPLEX | -| wikipedia_first_last | isAnonymous | VARCHAR | -| wikipedia_first_last | isMinor | VARCHAR | -| wikipedia_first_last | isNew | VARCHAR | -| wikipedia_first_last | isRobot | VARCHAR | -| wikipedia_first_last | isUnpatrolled | VARCHAR | -| wikipedia_first_last | long_first_added | COMPLEX | -| wikipedia_first_last | long_last_added | COMPLEX | -| wikipedia_first_last | metroCode | VARCHAR | -| wikipedia_first_last | namespace | VARCHAR | -| wikipedia_first_last | page | VARCHAR | -| wikipedia_first_last | regionIsoCode | VARCHAR | -| wikipedia_first_last | regionName | VARCHAR | -| wikipedia_first_last | string_first_added | COMPLEX | -| wikipedia_first_last | string_last_added | COMPLEX | -| wikipedia_first_last | user | VARCHAR | -+----------------------+--------------------------------+-------------------------------------+ -(170 rows) - !ok diff --git a/quidem-it/src/test/quidem/org.apache.druid.quidem.QTest/sunburst_kttm.iq b/quidem-it/src/test/quidem/org.apache.druid.quidem.QTest/sunburst_kttm.iq new file mode 100644 index 000000000000..2d5864335743 --- /dev/null +++ b/quidem-it/src/test/quidem/org.apache.druid.quidem.QTest/sunburst_kttm.iq @@ -0,0 +1,3307 @@ +#started Wed Jul 10 19:19:15 IST 2024 +!use druidtest:///?componentSupplier=KttmNestedComponentSupplier +!set outputformat mysql +# Wed Jul 10 19:19:25 IST 2024 +SELECT TABLE_NAME, COLUMN_NAME, DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = 'druid'; +!ok +# Wed Jul 10 19:20:02 IST 2024 +SELECT +FLOOR(CAST(t."session_length" AS DOUBLE) / 10) * 10 AS "session_length" +FROM "kttm_nested" AS t +WHERE (TIMESTAMP '2019-08-25 00:00:00'<=CAST(t."__time" AS TIMESTAMP) AND CAST(t."__time" AS TIMESTAMP)