calcite icon indicating copy to clipboard operation
calcite copied to clipboard

[CALCITE-6400] MAP_ENTRIES allows null as a map key

Open caicancai opened this issue 1 year ago • 8 comments

https://issues.apache.org/jira/browse/CALCITE-6400

caicancai avatar May 04 '24 15:05 caicancai

In spark, this is an error that occurs in function execution, not in type verification, so I modified the method in sqlfunctions

caicancai avatar May 05 '24 15:05 caicancai

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 avatar May 07 '24 07:05 chucheng92

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?

caicancai avatar May 07 '24 14:05 caicancai

I don't know what "opera" and "checker" are.

mihaibudiu avatar May 07 '24 17:05 mihaibudiu

I don't know what "opera" and "checker" are.

Sorry, typo, it should be OperaandChecker

caicancai avatar May 08 '24 01:05 caicancai

@caicancai could you improve the current commit name? It is different from jira and pr names.

chucheng92 avatar May 08 '24 11:05 chucheng92

The issue is about map_entries, but this PR fixes the arguments to the map constructor.

mihaibudiu avatar May 13 '24 19:05 mihaibudiu

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

caicancai avatar May 14 '24 00:05 caicancai