calcite
calcite copied to clipboard
[CALCITE-6400] MAP_ENTRIES allows null as a map key
https://issues.apache.org/jira/browse/CALCITE-6400
In spark, this is an error that occurs in function execution, not in type verification, so I modified the method in sqlfunctions
looks good to me in general. just one question, does this exception have to be thrown at runtime? i noticed that the exception is thrown directly in SqlFunctions.
looks good to me in general. just one question, does this exception have to be thrown at runtime? i noticed that the exception is thrown directly in SqlFunctions.
@chucheng92 Thank you for your review. I write this because spark has this mechanism, but calcite is usually checked in OperadandChecker. @mihaibudiu Which method do you think should be used?
I don't know what "opera" and "checker" are.
I don't know what "opera" and "checker" are.
Sorry, typo, it should be OperaandChecker
@caicancai could you improve the current commit name? It is different from jira and pr names.
The issue is about map_entries, but this PR fixes the arguments to the map constructor.
The issue is about map_entries, but this PR fixes the arguments to the map constructor.
Thanks, I will modify the jira summary, the description is being discussed in jira
Quality Gate passed
Issues
3 New issues
0 Accepted issues
Measures
0 Security Hotspots
100.0% Coverage on New Code
0.0% Duplication on New Code