A partner's system writes daily CSV files to a folder in an Azure Data Lake Storage container. The container is registered as an external location in Unity Catalog. The partner system continues to read and update these files, so the files must stay in CSV format in their current folder. Analysts need to query the data through Unity Catalog without copying it.
Which table should you create in Unity Catalog?
Managed tables in Unity Catalog always use Delta Lake or Apache Iceberg, and Unity Catalog controls where their files are stored. The CSV files must remain CSV and stay where the partner system uses them, so the only option is an external table that points to that path. Note that direct access by outside systems bypasses Unity Catalog access controls and auditing.
- Correct: An external table defined on the CSV folder path. External tables support CSV. Unity Catalog manages only the metadata, and the files stay at the location named in the LOCATION clause, so the data is queried in place.
- Not correct: A managed Iceberg table loaded from the CSV files. Managed tables always use Delta Lake or Apache Iceberg, and their data lives in a managed storage location, not in the partner's CSV folder.
- Not correct: A managed table in a schema that uses the container as managed storage. Any managed table uses Delta Lake or Iceberg format, and Unity Catalog writes its files to hashed subdirectories under the storage root. It cannot expose the existing CSV files in their current folder.
- Not correct: A managed Delta table loaded from the CSV files. A managed table stores its data in the Unity Catalog managed storage location. Loading the CSV data into it copies the data, and the copy is in Delta format, not CSV.