Partitioning value in create_table() properties #7391
-
Hi Team, We are using Trino as our backend. We were playing around with creating tables with partitions. code used for partitioning:
With the above code, SQL that is getting passed to Trino backend is As of today, SQL accepted by Trino( for creation of tables using partitions) are: Or
Are there any suggestions or workarounds to deal with this issue? TIA! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
What connector are you using? If you're using the Hive connector, the property you're looking for is |
Beta Was this translation helpful? Give feedback.
-
If the connector you're working with does actually have a connection.create_table(
"test_partition",
obj=df_ibis,
overwrite=True,
properties={"partitioning": ["column_name"]},
) |
Beta Was this translation helpful? Give feedback.
-
I understand this discussion is closed. However, I have question related to this topic. Now that we have a partitioned table created, just checking if there is a way to overwrite a particular partition in the partitioned table? |
Beta Was this translation helpful? Give feedback.
If the connector you're working with does actually have a
partitioning
property, you should be able to pass that in as a Pythonlist
: