The query below does not work.
CREATE TABLE test_table (date varchar, id varchar, PRIMARY KEY (date,id))
I can't seem to find any docs on primary keys in Trino.
The query below does not work.
CREATE TABLE test_table (date varchar, id varchar, PRIMARY KEY (date,id))
I can't seem to find any docs on primary keys in Trino.
You don't. As the description says:
Trino is a distributed SQL query engine designed to query large data sets distributed over one or more heterogeneous data sources.
Trino does not maintain primary keys, indexes and so on. See also use cases and Trino concepts.
© 2022 - 2024 — McMap. All rights reserved.