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

Kite CLI csv-import reads in only null values when --no-header flag not set #445

Open
chaosmail opened this issue May 2, 2016 · 0 comments

Comments

@chaosmail
Copy link

chaosmail commented May 2, 2016

When importing a csv file without a header and without specifying the --no-header flag, kite gives no error message but imports only null values instead of the correct values.

$ ./kite-dataset csv-import path/to/sample.csv sample
> Added 3255 records to sample
$ ./kite-dataset show sample --num-records 5
> {"key0": null, "key1": null, "key2": null, "key3": null, "key4": null, "key5": null},
  {"key0": null, "key1": null, "key2": null, "key3": null, "key4": null, "key5": null},
  {"key0": null, "key1": null, "key2": null, "key3": null, "key4": null, "key5": null},
  {"key0": null, "key1": null, "key2": null, "key3": null, "key4": null, "key5": null},
  {"key0": null, "key1": null, "key2": null, "key3": null, "key4": null, "key5": null}

The avro specification was generated with kite and looks sth like this:

  ...
  fields: {
    [
        {
            "name": "key0",
            "type": ["null", "string"]
        }, ...
     ]
  }

I am using Kite version 1.1.0

Best,
Christoph

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