Skip to content

Support a flag to disabe hint validations #349

Description

@apstndb

I’d like to submit a feature request for a flag to disable hint validation.

Problem

There is always a lag between cloud-spanner-emulator and real Spanner instances in terms of supported query hints, and this can become an obstacle to adopting hints.

The Spanner emulator does not support real Spanner query plans, so the practical benefit of hint validation in the emulator is limited, except for a few hints such as FORCE_INDEX, where it can verify the existence of an index.

Similar to -disable_query_null_filtered_index_check, I would like the emulator to provide a startup flag to disable hint validation. For example, something like -disable_hint_validation or -ignore_unknown_hints.

FYI

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions