Skip to content

Add parser support for nested select functions #141

@absurdfarce

Description

@absurdfarce

Expand on functionality described in #137 to support something like the following as well:

SELECT toTimestamp(now()) FROM system.local

Even with the changes in #137 I'm seeing the following error for this query:

Exception in thread "main" com.datastax.oss.driver.api.core.servererrors.InvalidQueryException: unexpected argument type for function call 'toTimestamp(...)' in select statement

toTimestamp() is something of a canary here. Broadly speaking there's probably room to talk about most of the parser selectors as a general "function" with a lookup table for specific outputs (or something similar). For now I'm just trying to get the idea of this usage as an entry point for thinking about this type of nesting.

Metadata

Metadata

Assignees

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