srowen commented on a change in pull request #25489: [PYTHON][WIP] 
pyspark.sql.functions.col as C
URL: https://github.com/apache/spark/pull/25489#discussion_r315654181
 
 

 ##########
 File path: python/pyspark/sql/functions.py
 ##########
 @@ -315,6 +312,46 @@ def _options_to_str(options):
 del _name, _doc
 
 
+class column_function(object):
+    """
+    Returns a :class:`Column` based on the given column name.
+
+    >>> __name__("firstName")
+    Column<firstName>
+
+    >>> __name__["firstName"]
+    Column<firstName>
+
+    >>> __name__.firstName
 
 Review comment:
   Agree, I think this is already effectively possible.

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

Reply via email to