forked from apache/spark
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-42236][SQL] Refine
NULLABLE_ARRAY_OR_MAP_ELEMENT
### What changes were proposed in this pull request? This PR proposes to refine `NULLABLE_ARRAY_OR_MAP_ELEMENT` into main-sub classes structure. `NOT_NULL_CONSTRAINT_VIOLATION` - `ARRAY_ELEMENT` - `MAP_VALUE` ### Why are the changes needed? The name of error class is misleading, and we can make this more generic so that we reuse for various situation. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Updated & added UTs. Closes apache#39804 from itholic/NULLABLE_ARRAY_OR_MAP_ELEMENT. Authored-by: itholic <haejoon.lee@databricks.com> Signed-off-by: Max Gekk <max.gekk@gmail.com> (cherry picked from commit 1cba3b9) Signed-off-by: Max Gekk <max.gekk@gmail.com>
- Loading branch information
1 parent
53ac90f
commit a72a2ad
Showing
5 changed files
with
50 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters