Skip to content
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

exempt processlist column renaming through aliases #2802

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jycor
Copy link
Contributor

@jycor jycor commented Dec 20, 2024

needed for dolphie to work; extension of #2764

Copy link
Contributor

@max-hoffman max-hoffman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mostly good, if this is a perf-sensitive path might need to figure out something else

c = c.withOriginal(v.Name.String())
// Look past table aliases
var origTbl string
if inScope.node != nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you just look at inscope.tables

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and maybe put in a helper func

@@ -359,6 +359,95 @@ func TestInfoSchema(t *testing.T, h Harness) {
)
})

t.Run("information_schema.processlist projection with alias case", func(t *testing.T) {
Copy link
Contributor

@max-hoffman max-hoffman Dec 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fairly painful test setup, bit late in the day for better ideas though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants