QuestionQ272

VerifiedDevelopment and Ingestion

A data engineer uploads a CSV file using the "Create or modify a table using file upload" option in Databricks. To avoid incorrect schema inference, they disable the Automatically detect column types setting before creating a Unity Catalog-managed table.

What is the outcome?

Explanation

When "Automatically detect column types" is turned off during file-upload table creation in Databricks, the platform skips schema inference entirely and creates every column using the STRING data type. This lets the data engineer avoid incorrect automatic type inference and instead manually cast or transform columns to the desired types after the table has been created, using standard SQL or DataFrame operations.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!