When creating a Hive table in Trino, what is the difference between external_location and location . If I have to create external table I have to use external_location right? What is the difference between these two?
According to this example Hive connector — Trino 422 Documentation
Tables created with location are managed tables. You have full control over them from their creation to modification.
tables created with external_location are tables created by 3’d party systems. We just access them mostly for read.I would encourage to use location in your case.
Got it. One question which remained was if I create with location and execute drop command on that table it will remove the data right? As the table is managed for trino? And the table format can be anything right? CSV, JSON etc…
Thanks I will try again and will let you know. Thanks for the follow up really appreciate . I really want to use Trino for data ingestion so looking forward to getting help
Were you able to achieve the external table creation from Trino for Hive? I am also kind of stuck at this and wanted to check if you had any breakthrough.