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

 ##########
 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:
   Hm, I am not sure. This way will disallow other column names like white 
spates in the middle or special characters. Also, those expressions are already 
possible via `df.column_name`.

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