Use Copy Into
When enabled, notebooks will use COPY INTO to read files instead of CREATE OR REPLACE TEMPORARY VIEW SQL syntax.
With the default N, landing files are read through a temporary view over read_files(...), using the generated Read Files Options. With Y, the load creates a staging table and ingests the files with COPY INTO, using the generated FORMAT_OPTIONS (Copy Format Options) and COPY_OPTIONS (Copy Options) clauses.
When to Change This Setting
Keep the default N for the lighter temporary-view read. Enable it when you want the files materialized through Databricks COPY INTO and its options instead.
Related Settings
| Setting | Interaction |
|---|---|
| Copy Format Options | Overrides the FORMAT_OPTIONS clause of the generated COPY INTO |
| Copy Options | Overrides the COPY_OPTIONS clause of the generated COPY INTO |
| Read Files Options | Overrides the read_files options of the temporary-view pattern |
| Use Temporary Views | Controls the broader temporary-view load pattern this setting interacts with |
Notes
- This setting is part of the Databricks settings category.
- The default value for this setting is
N.