Daniel created SPARK-48180: ------------------------------ Summary: Analyzer bug with multiple ORDER BY items for input table argument Key: SPARK-48180 URL: https://issues.apache.org/jira/browse/SPARK-48180 Project: Spark Issue Type: Sub-task Components: PySpark Affects Versions: 3.5.1, 3.5.0, 4.0.0 Reporter: Daniel
Steps to reproduce: {{from pyspark.sql.functions import udtf}} {{@udtf(returnType="a: int, b: int")}} {{class tvf:}} {{ def eval(self, *args):}} {{ yield 1, 2}} {{SELECT * FROM tvf(}} {{ TABLE(}} {{ SELECT 1 AS device_id, 2 AS data_ds}} {{ )}} {{ WITH SINGLE PARTITION}} {{ ORDER BY device_id, data_ds}} {{ )}} {{[UNSUPPORTED_SUBQUERY_EXPRESSION_CATEGORY.UNSUPPORTED_TABLE_ARGUMENT] Unsupported subquery expression: Table arguments are used in a function where they are not supported:}} {{'UnresolvedTableValuedFunction [tvf], [table-argument#338 [], 'data_ds], false}} {{ +- Project [1 AS device_id#336, 2 AS data_ds#337]}} {{ +- OneRowRelation}} -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org