gabotechs commented on PR #22689:
URL: https://github.com/apache/datafusion/pull/22689#issuecomment-4934207444

   Ok, did some research, and it looks like in Spark and Trino there's these 
functions:
   
   ```
     - transform_values(map, function) — transforms each value, keeping keys 
unchanged. Function signature: (k, v) -> new_v.
     - transform_keys(map, function) — transforms each key, keeping values 
unchanged. Function signature: (k, v) -> new_k.
   ```
   
     Spark
     - transform_keys 
(https://spark.apache.org/docs/latest/api/python/reference/pyspark.sql/api/pyspark.sql.functions.transform_keys.html)
     (PySpark) / SQL version 
(https://docs.databricks.com/gcp/en/sql/language-manual/functions/transform_keys)
     - transform_values 
(https://spark.apache.org/docs/latest/api/python/reference/pyspark.sql/api/pyspark.sql.functions.transform_values.html)
     (PySpark) / SQL version 
(https://docs.databricks.com/sql/language-manual/functions/transform_values.html)
   
     Trino
     - Map functions and operators 
(https://trino.io/docs/current/functions/map.html) — covers both transform_keys 
and transform_values on the same
     page (Trino doesn't split them into separate doc pages like 
Spark/Databricks does)
   
   So indeed this project might be a good place to host them.


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to