-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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-23.2: sql: do not collect histograms for non-indexed JSON columns #140144
release-23.2: sql: do not collect histograms for non-indexed JSON columns #140144
Conversation
Thanks for opening a backport. Please check the backport criteria before merging:
If your backport adds new functionality, please ensure that the following additional criteria are satisfied:
Also, please add a brief release justification to the body of your PR to justify this |
0630714
to
abf6f0c
Compare
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.
Reviewed 6 of 6 files at r1, all commit messages.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @mgartner and @rytaft)
pkg/sql/logictest/testdata/logic_test/stats
line 96 at r1 (raw file):
{j} histogram_collected {v} histogram_collected >>>>>>> 6de48460ae8 (sql: do not collect histograms for non-indexed JSON columns)
nit: merge leftover
pkg/sql/opt/exec/execbuilder/testdata/stats
line 358 at r1 (raw file):
│ ├── immutable │ ├── stats: [rows=1, distinct(1)=1, null(1)=1] │ │ histogram(1)= 0 1
nit: I think these changes need to be reverted.
abf6f0c
to
b0e778e
Compare
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.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @rytaft and @yuzefovich)
pkg/sql/logictest/testdata/logic_test/stats
line 96 at r1 (raw file):
Previously, yuzefovich (Yahor Yuzefovich) wrote…
nit: merge leftover
Done.
pkg/sql/opt/exec/execbuilder/testdata/stats
line 358 at r1 (raw file):
Previously, yuzefovich (Yahor Yuzefovich) wrote…
nit: I think these changes need to be reverted.
Done.
Informs cockroachdb#139381 Release note (sql change): Since v23.2 table statistics histograms have been collected for non-indexed JSON columns. Histograms are no longer collected for these columns if `sql.stats.non_indexed_json_histograms.enabled` is set to false. This reduces memory usage during table statistics collection, for both automatic and manual collection via ANALYZE and CREATE STATISTICS.
b0e778e
to
9af5ce0
Compare
blathers backport 23.2.20-rc |
Encountered an error creating backports. Some common things that can go wrong:
You might need to create your backport manually using the backport tool. error setting reviewers, but backport branch blathers/backport-release-23.2.20-rc-140144 is ready: POST https://api.github.com/repos/cockroachdb/cockroach/pulls/140269/requested_reviewers: 422 Reviews may only be requested from collaborators. One or more of the teams you specified is not a collaborator of the cockroachdb/cockroach repository. [] Backport to branch 23.2.20-rc failed. See errors above. 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
Backport 1/1 commits from #139766.
/cc @cockroachdb/release
Informs #139381
Release note (sql change): Since v23.2 table statistics histograms have
been collected for non-indexed JSON columns. Histograms are no longer
collected for these columns if
sql.stats.non_indexed_json_histograms.enabled
is set to
false
. This reduces memory usage during tablestatistics collection, for both automatic and manual collection via
ANALYZE
andCREATE STATISTICS
.Release justification: New cluster setting disabled by default.