Github user JDrit commented on a diff in the pull request:
https://github.com/apache/spark/pull/7606#discussion_r35480045
--- Diff: python/pyspark/sql/functions.py ---
@@ -375,6 +375,14 @@ def sparkPartitionId():
sc = SparkContext._active_spark_context
return Column(sc._jvm.functions.sparkPartitionId())
+def expr(str):
+ """Parses the expression string into the column that it represents
+
+ >>> df.select(expr("length(name)")).collect()
+ [Row('length(name)=5), Row('length(name)=3)]
--- End diff --
Spark added the `'` to the column name
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]