Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add support for "select now() from system.local" #138

Merged
merged 2 commits into from
Mar 31, 2025
Merged

Conversation

absurdfarce
Copy link
Collaborator

@absurdfarce absurdfarce commented Mar 26, 2025

Fixes #137, at least the bits about adding support for select now() from system.local. The rest of #137 will be handled in #141.

Note that all code contained in this PR was originally written by @mpenick.


type Selector interface {
isSelector()
Values(columns []*message.ColumnMetadata, valueFunc ValueLookupFunc) (filtered []message.Column, err error)
Columns(columns []*message.ColumnMetadata, stmt *SelectStatement) (filtered []*message.ColumnMetadata, err error)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even if this weren't fixing the underlying problem the conversion to managing values and columns within selectors rather than as external util functions is worth the cost of admission by itself.

@absurdfarce absurdfarce linked an issue Mar 26, 2025 that may be closed by this pull request
Copy link
Collaborator

@joao-r-reis joao-r-reis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sgtm 👍
it would be great if @mpenick could review this too

@absurdfarce absurdfarce requested a review from mpenick March 27, 2025 19:55
@absurdfarce absurdfarce merged commit 3cd4460 into main Mar 31, 2025
2 checks passed
@absurdfarce absurdfarce deleted the issue137 branch March 31, 2025 20:15
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

unsupported select clause for system table
3 participants