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] Fix overflow in GeneratedColumnSuite #3652

Closed johanl-db closed 2 months ago

johanl-db commented 2 months ago

Description

Small test fix, follow up from https://github.com/delta-io/delta/pull/3601 The test contains an overflow and fails when running with ANSI_MODE enabled.

How was this patch tested?

Test-only

johanl-db commented 2 months ago

LGTM, just for learning, ANSI_MODE doesn't like overflow so it complained about that right?

Right, see https://spark.apache.org/docs/latest/sql-ref-ansi-compliance.html#ansi-compliance