delta-io / delta

An open-source storage framework that enables building a Lakehouse architecture with compute engines including Spark, PrestoDB, Flink, Trino, and Hive and APIs
https://delta.io
Apache License 2.0
7.62k stars 1.71k forks source link

[Spark] Add INSERT tests with missing, extra, reordered columns/fields #3762

Closed johanl-db closed 3 weeks ago

johanl-db commented 1 month ago

Description

Follow on https://github.com/delta-io/delta/pull/3605

Adds more tests covering behavior for all ways of running insert with:

Note: tests are spread across multiple suites as each test case covers 20 different ways to run inserts, quickly leading to large test suites.

This change includes improvements to DeltaInsertIntoTest:

How was this patch tested?

N/A: test only