I would like to ask can i set the key field when creating table?
I have created a table by aggregation as below:
CREATE TABLE withdrawal_less_than_5min AS
SELECT executedate, status, count(*) as count
FROM TB3_WITHDRAW_RECORD_EXCLUDE_INTERNAL_USERS
GROUP BY executedate,status;
And when I DESCRIBE EXTENDED withdrawal_less_than_5min
the key field of the table is set as below, which i believe should be the executedate and status.
Key field : KSQL_INTERNAL_COL_0|+|KSQL_INTERNAL_COL_1
However when I try to join it with another table with the same aggregation it return this error.
Source table (A) key column (KSQL_INTERNAL_COL_0|+|KSQL_INTERNAL_COL_1)
is not the column used in the join criteria (EXECUTEDATE).
How do I set the key field? Thank you.