Skip to content

Rename TABLESAMPLE-related legacy error conditions to descriptive names #54680

@ycli12

Description

@ycli12

Summary

Rename the following legacy error conditions in the SQL parser to proper descriptive names and add SQL states:

Legacy Name New Name sqlState Description
_LEGACY_ERROR_TEMP_0014 TABLESAMPLE_EMPTY_INPUT 42601 TABLESAMPLE with empty inputs
_LEGACY_ERROR_TEMP_0015 UNSUPPORTED_TABLESAMPLE_METHOD 0A000 Unsupported TABLESAMPLE method
_LEGACY_ERROR_TEMP_0016 INVALID_BYTE_LENGTH_LITERAL 42604 Invalid byte length literal

Motivation

This is part of the ongoing effort to replace legacy temporary error condition names with proper descriptive names. These three errors are related to TABLESAMPLE parsing and are grouped together for clarity.

References

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