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

release-20.2: sql: anonymize schema names, owner names, and enum values #55508

Merged
merged 2 commits into from
Oct 13, 2020

Conversation

solongordon
Copy link
Contributor

Backport 2/2 commits from #55473.

/cc @cockroachdb/release


Schema and owner names were improperly being represented by strings
rather than tree.Names in the AST. This meant they would not be
properly anonymized in telemetry.

ENUM values had the same problem, but we cannot use tree.Name in
this case because we need the values to be quoted. I created a custom AST
node for this case.

Fixes #55385

Release note: None

Schema and owner names were improperly being represented by strings
rather than `tree.Name`s in the AST. This meant they would not be
properly anonymized in telemetry.

Fixes cockroachdb#55385

Release note: None
ENUM values were improperly being represented as strings in the AST,
which meant that they were not anonymized in telemetry. I created a new
AST node type for them which respects anonymization.

Fixes cockroachdb#55385

Release note: None
@solongordon solongordon requested review from knz and thoszhang October 13, 2020 14:58
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@thoszhang thoszhang left a comment

Choose a reason for hiding this comment

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

Reviewed 21 of 21 files at r1, 9 of 9 files at r2.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @knz)

@solongordon solongordon merged commit 9526270 into cockroachdb:release-20.2 Oct 13, 2020
@solongordon solongordon deleted the backport20.2-55473 branch October 13, 2020 18:08
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.

3 participants