Skip to content

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

Description

@lgprobert

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions