Kind regards,
Daniel
sql>plan select * from splitted where stamp = TIMESTAMP '2020-01-01 00:00:00';
+--------------------------------------------------------------------------------------------------------------------------------------+
| rel |
+======================================================================================================================================+
| union ( |
| | union ( |
| | | project ( |
| | | | select ( |
| | | | | table(sys.first_decade) [ "first_decade"."stamp" as "splitted"."stamp", "first_decade"."val" as "splitted"."val" ] COUNT |
| | | | ) [ "splitted"."stamp" = timestamp(7) "2020-01-01 00:00:00.000000" ] |
| | | ) [ "splitted"."stamp", "splitted"."val" ], |
| | | project ( |
| | | | select ( |
| | | | | table(sys.second_decade) [ "second_decade"."stamp" as "splitted"."stamp", "second_decade"."val" as "splitted"."val" ] COUNT |
| | | | ) [ "splitted"."stamp" = timestamp(7) "2020-01-01 00:00:00.000000" ] |
| | | ) [ "splitted"."stamp", "splitted"."val" ] |
| | ) [ "splitted"."stamp", "splitted"."val" ], |
| | project ( |
| | | select ( |
| | | | table(sys.third_decade) [ "third_decade"."stamp" as "splitted"."stamp", "third_decade"."val" as "splitted"."val" ] COUNT |
| | | ) [ "splitted"."stamp" = timestamp(7) "2020-01-01 00:00:00.000000" ] |
| | ) [ "splitted"."stamp", "splitted"."val" ] |
| ) [ "splitted"."stamp", "splitted"."val" ] |
+--------------------------------------------------------------------------------------------------------------------------------------+
19 tuples
clk: 2.428 ms