Add table function to select table except specified columns#13680
Closed
ebyhr wants to merge 1 commit intotrinodb:masterfrom
Closed
Add table function to select table except specified columns#13680ebyhr wants to merge 1 commit intotrinodb:masterfrom
ebyhr wants to merge 1 commit intotrinodb:masterfrom
Conversation
760556c to
d642fd5
Compare
martint
requested changes
Aug 22, 2022
Member
There was a problem hiding this comment.
This should be implemented using a TABLE parameter to the table function, not a string that represents a table name. That way, it will work for any table-producing subquery.
The syntax for the example above should be:
SELECT *
FROM TABLE (
system.runtime.except_column(
input => TABLE (tpch.tiny.region),
except_column => array['comment']
)
)Also, it should work for:
SELECT *
FROM TABLE (
system.runtime.except_column(
input => TABLE (SELECT * FROM tpch.tiny.region WHERE regionkey = 1),
except_column => array['comment']
)
)Unfortunately, TABLE inputs are not yet supported — it’s still work in progress.
Member
Author
|
I will update this PR once TABLE inputs are supported. |
d642fd5 to
bd24855
Compare
Member
Author
|
Superseded by #16584 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add table function to select table except specified columns
Example usage:
Reference
Documentation
( ) No documentation is needed.
( ) Sufficient documentation is included in this PR.
( ) Documentation PR is available with #prnumber.
( ) Documentation issue #issuenumber is filed, and can be handled later.
Release notes
( ) No release notes entries required.
( ) Release notes entries required with the following suggested text: