-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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: Add support for SYS GEOMETRY_COLUMNS #30496
Conversation
Adds support for SYS GEOMETRY_COLUMNS, which returns the same information as `SELECT * FROM GEOMETRY_COLUMNS` command in the standard implementation. Relates elastic#29872
Pinging @elastic/es-search-aggs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's worth adding a parsing test as well (similar to SysTableTypesTests
or any other under the command.sys
package) just to make sure the grammar works correctly.
Otherwise LGTM.
By the way, how is the consumer of this command? What are the JDBC/ODBC API calls that this maps to?
null, // schema is not supported | ||
indexName, // table name | ||
name, // column name | ||
1, // storage type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please put these constants into something like GeoUtils
so DataTypes
? I went with a similar approach in #30418 for readability and maintenance.
@costin that is basically equivalent to |
Adds support for SYS GEOMETRY_COLUMNS, which returns the same
information as
SELECT * FROM GEOMETRY_COLUMNS
command in the standardimplementation.
Relates #29872