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

parquet_derive does not support chrono time values #711

Closed
xrl opened this issue Aug 24, 2021 · 0 comments · Fixed by #712
Closed

parquet_derive does not support chrono time values #711

xrl opened this issue Aug 24, 2021 · 0 comments · Fixed by #712
Labels

Comments

@xrl
Copy link
Contributor

xrl commented Aug 24, 2021

Describe the bug

There was support for chrono::NaiveDateTime in parquet_derive but its test cases were hidden behind a cargo feature flag and must have been ignored in tests. When upgrading the parquet library and dependencies I got this type error:

7 | #[derive(Queryable, Debug, ParquetRecordWriter, ParquetRecordSchema)]
  |                            ^^^^^^^^^^^^^^^^^^^
  |
  = help: message: not implemented: NaiveDateTime currently is not supported

To Reproduce

Derive a record writer implementation for this struct:

#[derive(ParquetRecordWriter)]
struct MyRow {
    time: NaiveDateTime,
}

Expected behavior

The NaiveDateTime should generate a schema which matches this text version (note the converted type):

REQUIRED INT64           now (TIMESTAMP_MILLIS);

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant