Jack Chen created SPARK-47700:
---------------------------------
Summary: Fix formatting of error messages with treeNode
Key: SPARK-47700
URL: https://issues.apache.org/jira/browse/SPARK-47700
Project: Spark
Issue Type: Improvement
Components: SQL
Affects Versions: 4.0.0
Reporter: Jack Chen
Example: We are concatenating the plan without any separation: `in this
locationFilter (dept_id#652`. We should add a colon and space or newline in
between:
{code:java}
[UNSUPPORTED_SUBQUERY_EXPRESSION_CATEGORY.ACCESSING_OUTER_QUERY_COLUMN_IS_NOT_ALLOWED]
Unsupported subquery expression: Accessing outer query column is not allowed
in this locationFilter (dept_id#652 = outer(dept_id#646))
+- SubqueryAlias dept
+- View (`DEPT`, [dept_id#652, dept_name#653, state#654])
+- Project [cast(dept_id#655 as int) AS dept_id#652, cast(dept_name#656
as string) AS dept_name#653, cast(state#657 as string) AS state#654]
+- Project [dept_id#655, dept_name#656, state#657]
+- SubqueryAlias DEPT
+- LocalRelation [dept_id#655, dept_name#656, state#657]
. SQLSTATE: 0A000 {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]