xinrong-meng commented on code in PR #38921: URL: https://github.com/apache/spark/pull/38921#discussion_r1041642310
########## python/pyspark/sql/tests/connect/test_connect_function.py: ########## @@ -410,6 +410,67 @@ def test_aggregation_functions(self): sdf.groupBy("a").agg(SF.percentile_approx(sdf.b, [0.1, 0.9])).toPandas(), ) + def test_string_functions(self): + from pyspark.sql import functions as SF + from pyspark.sql.connect import functions as CF + + query = """ + SELECT * FROM VALUES + (' ab ', 'ab ', NULL), (' ab', NULL, 'ab') + AS tab(a, b, c) + """ + # +--------+-----+----+ + # | a| b| c| + # +--------+-----+----+ + # | ab |ab |null| + # | ab| null| ab| + # +--------+-----+----+ Review Comment: Thanks! -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org