Skip to content

Instantly share code, notes, and snippets.

@danthelion
Created July 4, 2022 19:32
Show Gist options
  • Save danthelion/5517aaecace45edd1e80669eee07bb7a to your computer and use it in GitHub Desktop.
Save danthelion/5517aaecace45edd1e80669eee07bb7a to your computer and use it in GitHub Desktop.
Iceberg table creation via Trino
USE iceberg;
CREATE SCHEMA IF NOT EXISTS iris
WITH (location = 's3a://iris/');
CREATE TABLE IF NOT EXISTS iceberg.iris.iris_parquet
(
sepal_length DOUBLE,
sepal_width DOUBLE,
petal_length DOUBLE,
petal_width DOUBLE,
class VARCHAR
)
WITH (location = 's3a://iris/', format = 'PARQUET');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment