kishoreg commented on a change in pull request #4595: Implement all transform
function APIs for MapValueTransformFunction
URL: https://github.com/apache/incubator-pinot/pull/4595#discussion_r321950598
##########
File path:
pinot-core/src/main/java/org/apache/pinot/core/operator/transform/function/MapValueTransformFunction.java
##########
@@ -29,20 +31,25 @@
/**
- * map_value(keyColName, 'keyName', valColName)
+ * The MAP_VALUE transform function takes 3 arguments: keyColumn, keyValue,
valueColumn, where keyColumn and valueColumn
+ * are dictionary-encoded multi-value columns, and keyValue must be a literal
(number or string). In order to make
+ * MAP_VALUE transform function work, the keyValue provided must exist in the
keyColumn. To ensure that, the query can
+ * have a filter on the keyColumn, e.g. SELECT mapValue(key, 'myKey', value)
FROM myTable WHERE key = 'myKey'.
*/
public class MapValueTransformFunction extends BaseTransformFunction {
+ public static final String FUNCTION_NAME = "mapValue";
Review comment:
why camel case. its common to use _ as the separator in sql udf's. See
presto udf's for example
https://prestodb.github.io/docs/current/functions/string.html
----------------------------------------------------------------
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]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]