Open PadenZach opened 2 years ago
Thanks @PadenZach. Acknowledging the repro is successful and it's a legitimate issue. The command should not swallow the specific error, in this case that map is not a comparable type
We'll leave this open for now; there is no corruption since an error is still thrown. We'll prioritize it accordingly to improve usability. Thank you!
Bug
Describe the problem
When trying to merge with condition using python data API sometimes an
pyspark.sql.utils.AnalysisException: Failed to resolve
is raised.Steps to reproduce
Observed results
Expected results
Ideally, it to "Just work", however, since I believe this to be an issue with the type I was comparing, propagating the actual error would the more realistic fix :)
Further details
The type that this happened to me with was a column of MapType, when trying to compare the column against itself, I got the following error:
I'd strongly prefer to have some of this information in the error reported by deltalake, rather than just "Failed to Resolve".
Environment information
Willingness to contribute
The Delta Lake Community encourages bug fix contributions. Would you or another member of your organization be willing to contribute a fix for this bug to the Delta Lake code base?
(I'm not well versed in the scala/java side of the project -- if this is something that could be resolved by editing the python bindings I may be able to help out).