Github user gatorsmile commented on a diff in the pull request:

    https://github.com/apache/spark/pull/17067#discussion_r103849396
  
    --- Diff: 
sql/core/src/test/scala/org/apache/spark/sql/SQLQueryTestSuite.scala ---
    @@ -228,12 +228,13 @@ class SQLQueryTestSuite extends QueryTest with 
SharedSQLContext {
           if (isSorted(df.queryExecution.analyzed)) (schema, answer) else 
(schema, answer.sorted)
     
         } catch {
    -      case a: AnalysisException if a.plan.nonEmpty =>
    +      case a: AnalysisException =>
             // Do not output the logical plan tree which contains expression 
IDs.
             // Also implement a crude way of masking expression IDs in the 
error message
             // with a generic pattern "###".
    +        val msg = if (a.plan.nonEmpty) a.getSimpleMessage else a.getMessage
             (StructType(Seq.empty),
    -          Seq(a.getClass.getName, a.getSimpleMessage.replaceAll("#\\d+", 
"#x")))
    +          Seq(a.getClass.getName, msg.replaceAll("#\\d+", "#x")))
    --- End diff --
    
    Nit: `(StructType(Seq.empty), Seq(a.getClass.getName, 
msg.replaceAll("#\\d+", "#x")))`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to