Loading tutorials
CREATE TABLE, SELECT, INSERT) and have used Delta tables in Databricks. You also need a SQL warehouse or cluster and a Unity Catalog volume or external location that holds a few files. Granting access to that location was covered in the previous chapter4 min readCOPY INTO statement, as shown in the previous chapter. You also need to know what a Delta table is. You should be able to recognize CSV, JSON, and Parquet files by their structure. Here you will learn how FILEFORMAT tells COPY INTO how to read files, 5 min readCOPY INTO considers every file under the source path. This chapter covers the two clauses that narrow that set: PATTERN, which matches file names with a glob, and FILES, which lists exact file names. It assumes you can run a basic COPY INTO statement and have a Unity Catalog volu5 min readCOPY INTO statement from the earlier chapters and know what a Delta table commit is. It explains how COPY INTO avoids loading a file twice, what that guarantee covers, and where it stops.6 min readCOPY INTO statement, set FORMAT_OPTIONS, and select files with PATTERN. It also assumes you know that a Delta table accepts only data that matches its schema and constraints. You need a Unity Catalog volume or external location with a few test files.5 min readcoupon_code field to its order export, and the next CSV file has one more column than your target table. This chapter explains what COPY INTO does in that case and how the mergeSchema copy option lets the table grow with the data.6 min readCOPY INTO statement, know how PATTERN and FILES select files, and understand that COPY INTO skips files it has already loaded. It covers the force option, which turns that skipping off. You will see what it does and why it is risky. You will also 5 min readCOPY INTO statement, you know how COPY INTO skips files it has already loaded, and you have seen a Delta table and a Unity Catalog volume. You don't need to have used Structured Streaming. The chapter explains the parts of Auto Loader you need for the d7 min readCOPY INTO statement, know that it skips files it has already loaded, and can run SQL in a Databricks workspace. You should also know what a Delta table is. Here you will move from running a load by hand to running it on a schedule, and you will learn how 7 min readCOPY INTO statement and know how it skips files it has already loaded. It also assumes you have Unity Catalog permissions to create tables and read from a volume. You should know the options covered earlier: FORMAT_OPTIONS, PATTERN, VALIDATE, `merge6 min read