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

sql: disable arrays in forward indexes #50662

Merged
merged 1 commit into from
Jun 29, 2020
Merged

sql: disable arrays in forward indexes #50662

merged 1 commit into from
Jun 29, 2020

Conversation

maddyblue
Copy link
Contributor

There are some open questions about inverted index types being used in
forward indexes. Disable those for now.

Fixes #50656
See #50659
See #17154

Release note (sql change): disable arrays in non-inverted indexes.

@maddyblue maddyblue requested review from rohany and sumeerbhola June 25, 2020 19:42
@cockroach-teamcity
Copy link
Member

This change is Reviewable

pkg/sql/logictest/testdata/logic_test/array Show resolved Hide resolved
CREATE INDEX i ON t(x DESC)

# Add "t@i" index annotation once #50659 is fixed.
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 leave a TODO and a name here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added a TODO above.

@rohany
Copy link
Contributor

rohany commented Jun 25, 2020

LGTM

Copy link
Collaborator

@sumeerbhola sumeerbhola left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 2 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @mjibson, @rohany, and @sumeerbhola)

@maddyblue maddyblue requested a review from a team as a code owner June 25, 2020 21:45
There are some open questions about inverted index types being used in
forward indexes. Disable those for now.

Fixes #50656
See #50659
See #17154

Release note (sql change): disable arrays in non-inverted indexes.
@maddyblue
Copy link
Contributor Author

Had to track down some test flakes due to our rand table functions (including random interleaving and random FKs not using the indexable function). Fixed those and will merge once tests pass again.

@maddyblue
Copy link
Contributor Author

bors r+

@craig
Copy link
Contributor

craig bot commented Jun 29, 2020

Build succeeded

@jordanlewis
Copy link
Member

@sumeerbhola @solongordon do you know exactly why we needed to do this?

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.

sql: disable arrays as PKs
5 participants