Skip to content

sql: support hints for which index to use #5625

@RaduBerinde

Description

@RaduBerinde

Selecting from table@index has different semantics than selecting from the table - we can only select the columns in the index and SELECT * resolves to only those columns. This feature is mildly useful for debugging but doesn't do much for a user.

I propose changing this to have the same semantics as the regular select, except that it forces index selection to choose that particular index. This would provide an easy workaround when the index selection algorithm doesn't identify the best index.

@petermattis - any objections?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions