rickspencer3 commented on issue #862:
URL:
https://github.com/apache/datafusion-python/issues/862#issuecomment-2336431893
When looking at the dataframe under the debugger, it looks like it skipped
the null values ok:
```
df
DataFrame()
+---------------------+-------+
| time_window | count |
+---------------------+-------+
| 2024-09-07T10:01:00 | 2 |
| 2024-09-07T10:03:00 | 2 |
+---------------------+-------+
df.schema()
time_window: timestamp[ns]
count: int64 not null
```
So I am pretty confused about the error message.
```
return self.df.to_arrow_table()
^^^^^^^^^^^^^^^^^^^^^^^^
File "pyarrow/table.pxi", line 4865, in pyarrow.lib.Table.from_batches
File "pyarrow/error.pxi", line 155, in
pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Schema at index 0 was different:
time_window: timestamp[ns]
count: int64 not null
vs
time_window: timestamp[ns]
count: int64
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]