Skip to content

SQL: SYS TABLES adjustments for ODBC: TYPE argument #30398

@bpintea

Description

@bpintea

Elasticsearch version: master @ 65dbc17

With TYPE argument now working (as a fix for https://github.com/elastic/x-pack-elasticsearch/issues/4335), there are these two follow-up issues that have emerged:

  • some applications use TABLE as filter (like Microsoft Query:'TABLE','VIEW','SYNONYM'). This will not match BASE TABLE and the result is empty. My proposal would be to make the two - BASE TABLE and TABLE - interchangeable for this query (even though they aren't, technically), unless we do actually differentiate between these two concepts.
  • The ODBC spec mandates that the TYPE parameter, if not an empty string, [it] must contain a list of comma-separated values for the types of interest; each value can be enclosed in single quotation marks (') or unquoted, for example, 'TABLE', 'VIEW' or TABLE, VIEW.. Current ES/SQL implementation will accept the quoted list, but won't accept the unquoted format. I haven't yet encountered apps that make use of the unquoted format. The fix for this could obviously be implemented in the driver too -- up for discussion.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions