# Create a column list with compression on name columns
columns = [
[ "id", "int", "primary_key" ],
[ "dept_id", "int", "primary_key", "shard_key" ],
[ "manager_id", "int", "nullable" ],
[ "first_name", "string", "char32", "compress(lz4(9))", "nullable" ],
[ "last_name", "string", "char32", "compress(zstd)", "nullable" ],
[ "salary", "string", "decimal", "nullable" ],
[ "hire_date", "string", "date", "nullable" ]
]
# Create a simple table using the column list, applying snappy compression
# to all columns without explicit compression defined
t = gpudb.GPUdbTable(
columns,
name = table_name,
db = kinetica,
options = {"compression_codec": "snappy"}
)