Details
-
Bug
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
4.0.0
Description
org.apache.spark.sql.catalyst.util.ResolveDefaultColumns#analyze method accepts 3 parameter
1) Field to analyze
2) Statement type - String
3) Metadata key - CURRENT_DEFAULT or EXISTS_DEFAULT
Method org.apache.spark.sql.connector.catalog.CatalogV2Util#structFieldToV2Column
pass fieldToAnalyze and EXISTS_DEFAULT as second parameter, so it is not metadata key, instead of that, it is statement type, so bad expression is analyzed.