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
Add input format One #53209
Add input format One #53209
Conversation
This is an automated comment for commit 00865a7 with description of existing statuses. It's updated for the latest CI running
|
class OneInputFormat final : public IInputFormat | ||
{ | ||
public: | ||
OneInputFormat(const Block & header, ReadBuffer & in_); |
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.
Two questions:
- Shouldn't we also have OneOutputFormat for consistency?
- Is it possible to avoid even opening the file?
It still can read a lot of data due to remote_filesystem_read_prefetch |
Yes, and also parallel read buffer can download some data in advance. Better to use settings |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Add input format One that doesn't read any data and always returns single row with column
dummy
with typeUInt8
and value0
likesystem.one
. It can be used together with_file/_path
virtual columns to list files in file/s3/url/hdfs/etc table functions without reading any data.Documentation entry for user-facing changes