-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-41708][SQL][FOLLOWUP] Add a new replaceAll to SQLQueryTestHelper#replaceNotIncludedMsg to remove @hashCode
#39598
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
7bd488b
104cdac
38be9a0
b0f8c6c
f30204e
bfe25b2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -47,6 +47,7 @@ trait SQLQueryTestHelper { | |
| .replaceAll("Last Access.*", s"Last Access $notIncludedMsg") | ||
| .replaceAll("Partition Statistics\t\\d+", s"Partition Statistics\t$notIncludedMsg") | ||
| .replaceAll("\\*\\(\\d+\\) ", "*") // remove the WholeStageCodegen codegenStageIds | ||
| .replaceAll("@[0-9a-z]+,", "@x,") // remove hashCode | ||
|
||
| } | ||
|
|
||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shall we simply override
toStringinFileIndex? One idea is to produceclassName(rootPaths.mString(","))There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After override
toStringinFileIndex,Append,spark_catalog.default.explain_temp5, org.apache.spark.sql.execution.datasources.CatalogFileIndex@7d811218disappeared from resultThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, it means we cannot do that. Did I understand correctly? Given that, I'm +1 with the AS-IS PR.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cloud-fan
className(rootPaths.mString(","))will print out the path related to the running environment, likeIt seems not friendly to developers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only override the
toStringmethod cannot achieve the goal, and as I said above,rootPaths.mString(",")needs further cleaning to avoid differences in test execution paths, so I prefer the current way.