tanelk commented on a change in pull request #30040:
URL: https://github.com/apache/spark/pull/30040#discussion_r504844237
##########
File path:
sql/catalyst/src/main/java/org/apache/spark/sql/catalyst/expressions/ExpressionInfo.java
##########
@@ -40,8 +40,11 @@
private String deprecated;
private static final Set<String> validGroups =
- new HashSet<>(Arrays.asList("agg_funcs", "array_funcs",
"datetime_funcs",
- "json_funcs", "map_funcs", "window_funcs"));
+ new HashSet<>(Arrays.asList("agg_funcs", "array_funcs",
"binary_funcs", "bitwise_funcs",
+ "comparison_funcs", "conditional_funcs", "conversion_funcs",
"csv_funcs",
+ "datetime_funcs", "generator_funcs", "grouping_funcs",
"json_funcs", "logical_funcs",
+ "map_funcs", "math_funcs", "misc_funcs", "regex_funcs",
"string_funcs", "struct_funcs",
+ "window_funcs", "xml_funcs"));
Review comment:
I was also considering making these values constants:
```
String GROUP_AGG_FUNCS = "agg_funcs";
String GROUP_ARRAY_FUNCS = "array_funcs";
String GROUP_BINARY_FUNCS = "binary_funcs";
...
```
Perhaps in the `ExpressionDescription` interface, but I'm not 100% sure if
its better.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]