Revert "Preserve quotedness for Identifier when formatting Query"#17446
Conversation
This reverts commit d8323f5.
|
cc @v-jizhang This is failing some of the tests. Please look at the stack trace below. |
aweisberg
left a comment
There was a problem hiding this comment.
Assuming the tests pass +1
highker
left a comment
There was a problem hiding this comment.
would be good to have @rschlussel to take a look as well
rschlussel
left a comment
There was a problem hiding this comment.
This issue isn't just Presto on Spark, so we're lucky presto on spark had that round trip test. We should add better basic tests for show Create View and show Create Table to regular Presto.
| ordering(ascending("argument_types"))); | ||
| } | ||
|
|
||
| private QualifiedName getQualifiedName(ShowCreate node, QualifiedObjectName objectName) |
There was a problem hiding this comment.
@v-jizhang looks like this is getting the parts for the name backwards.
There was a problem hiding this comment.
Trino still has the same code
https://github.com/trinodb/trino/blob/99ef4ec162b3b099762e4d6727ee3db641e1445c/core/trino-main/src/main/java/io/trino/sql/rewrite/ShowQueriesRewrite.java#L593
This PR was requested by some users, I'll do a fix and resubmit.
This reverts commit d8323f5.