Super Richman
04/27/2023, 7:29 AMLT JOIN
on runtime table that are created with more then 2 ASOF JOINs
such as
SELECT * FROM (tt ASOF JOIN oil ASOF JOIN transactions ASOF JOIN holidays_events) LT JOIN
(SELECT * FROM (tt ASOF JOIN oil ASOF JOIN transactions ASOF JOIN holidays_events))
I get right side column 'type' is of unsupported type
Bolek Ziobrowski
04/27/2023, 8:43 AMSuper Richman
04/27/2023, 9:00 AMCREATE TABLE 'tt' (
id INT,
date TIMESTAMP,
sf SYMBOL capacity 256 CACHE,
store_nbr INT,
family SYMBOL capacity 256 CACHE,
onpromotion INT,
sales DOUBLE
) timestamp (date) PARTITION BY MONTH WAL;
CREATE TABLE 'oil' (date TIMESTAMP, dcoilwtico DOUBLE) timestamp (date) PARTITION BY MONTH WAL;
CREATE TABLE 'transactions' (date TIMESTAMP, store_nbr INT, transactions INT) timestamp (date) PARTITION BY MONTH WAL;
CREATE TABLE 'holidays_events' (
date TIMESTAMP,
type STRING,
locale STRING,
locale_name STRING,
description STRING,
transferred BOOLEAN
) timestamp (date) PARTITION BY MONTH WAL;
Bolek Ziobrowski
04/27/2023, 9:11 AMCREATE TABLE holidays_events (
date TIMESTAMP,
type SYMBOL,
locale SYMBOL,
locale_name SYMBOL,
description SYMBOL,
transferred BOOLEAN
) timestamp (date) PARTITION BY MONTH WAL;
explain
select *
from
(
select *
from
(
SELECT tt1.*, tt2.*, tr1.*, he1.*, tt2.date as ts2
FROM tt tt1
lt join tt tt2
asof join transactions tr1
asof join holidays_events he1
) timestamp(ts2)
)
asof join transactions tr2
asof join holidays_events he2
but I wouldn't expect good performance due to so many joins and lack of where clause .Super Richman
04/28/2023, 7:14 AM