-
Notifications
You must be signed in to change notification settings - Fork 90
Support dataframe to tsfile #706
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
base: develop
Are you sure you want to change the base?
Conversation
d6aa3e1 to
8c93df1
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #706 +/- ##
===========================================
- Coverage 61.80% 61.80% -0.01%
===========================================
Files 709 709
Lines 40375 40378 +3
Branches 5686 5687 +1
===========================================
Hits 24954 24954
- Misses 14723 14726 +3
Partials 698 698 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
8c93df1 to
46de126
Compare
9d28d1f to
9e1edf5
Compare
9e1edf5 to
1b3c275
Compare
| if (cur_schema->column_category == TIME) { | ||
| continue; | ||
| } |
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.
If you skip the time column, it will be missing when the file is loaded into IoTDB.
| df_read = to_dataframe(tsfile_path, table_name="test_table") | ||
| df_read = df_read.sort_values('time').reset_index(drop=True) | ||
| df_sorted = convert_to_nullable_types(df.sort_values('timestamp').reset_index(drop=True)) | ||
|
|
||
| assert df_read.shape == (30, 3) | ||
| assert df_read["time"].equals(df_sorted["timestamp"]) | ||
| assert df_read["device"].equals(df_sorted["device"]) | ||
| assert df_read["value"].equals(df_sorted["value"]) |
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.
The name of the time column should be prevserved.
Uh oh!
There was an error while loading. Please reload this page.