Skip to content
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

Using '-z' option will have rows with trailing delimiter #6

Open
lgprobert opened this issue Dec 27, 2024 · 0 comments
Open

Using '-z' option will have rows with trailing delimiter #6

lgprobert opened this issue Dec 27, 2024 · 0 comments

Comments

@lgprobert
Copy link

Follow the instruction to build dbgen. Then run below command to stream generated table data to stdout. But the trailing delimiter will be added for every row.

Reproduce command is here for region table:
$ dbgen -v -z -T r
TPC-H Population Generator (Version 2.17.3)
Copyright Transaction Processing Performance Council 1994 - 2010
Generating data for region table/
Preloading text ... 100%
0|AFRICA|lar deposits. blithely final packages cajole. regular waters are final requests. regular accounts are according to |
1|AMERICA|hs use ironic, even requests. s|
...

Suggestion:

  1. Make the dbgen behave same with and without '-z' option
  2. Ideally add an option to let user choose whether to include line terminator but this is optional
  3. When using '-z' option, suppress the dbgen messages and only output the data rows. This is will help downstreaming application can consume the generated data rows much easier.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant