[
https://issues.apache.org/jira/browse/BEAM-13335?focusedWorklogId=688124&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-688124
]
ASF GitHub Bot logged work on BEAM-13335:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 30/Nov/21 16:00
Start Date: 30/Nov/21 16:00
Worklog Time Spent: 10m
Work Description: TheNeuralBit edited a comment on pull request #16066:
URL: https://github.com/apache/beam/pull/16066#issuecomment-982775542
Looks like this broke TaxirideIT:
```
File "/usr/local/lib/python3.6/site-packages/apache_beam/dataframe/io.py",
line 211, in _shift_range_index
E return df.set_index(df.index + offset)
E File
"/usr/local/lib/python3.6/site-packages/pandas/core/frame.py", line 4614, in
set_index
E index._cleanup()
E File
"/usr/local/lib/python3.6/site-packages/pandas/core/indexes/base.py", line 552,
in _cleanup
E self._engine.clear_mapping()
E File "pandas/_libs/properties.pyx", line 33, in
pandas._libs.properties.CachedProperty.__get__
E File
"/usr/local/lib/python3.6/site-packages/pandas/core/indexes/base.py", line 560,
in _engine
E target_values = self._get_engine_target()
E File
"/usr/local/lib/python3.6/site-packages/pandas/core/indexes/base.py", line
3903, in _get_engine_target
E return self._values
E File
"/usr/local/lib/python3.6/site-packages/pandas/core/indexes/base.py", line
3897, in _values
E return self._data
E File
"/usr/local/lib/python3.6/site-packages/pandas/core/indexes/range.py", line
164, in _data
E self.start, self.stop, self.step, dtype=np.int64
E OverflowError: Python int too large to convert to C long [while
running '_ReadFromPandas/ParDo(_ReadFromPandasDoFn)/ParDo(_ReadFromPandasDoFn)
```
https://ci-beam.apache.org/job/beam_PostCommit_Python36/4664/testReport/junit/apache_beam.examples.dataframe.taxiride_it_test/TaxirideIT/test_aggregation/
The issue seems to be that this implementation maps on to an unsigned int64,
but pandas indices are signed int64 by default. I can send a patch to fix.
--
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]
Issue Time Tracking
-------------------
Worklog Id: (was: 688124)
Time Spent: 2.5h (was: 2h 20m)
> DataFrame sources produce excessively large index
> -------------------------------------------------
>
> Key: BEAM-13335
> URL: https://issues.apache.org/jira/browse/BEAM-13335
> Project: Beam
> Issue Type: Improvement
> Components: dsl-dataframe
> Reporter: Brian Hulette
> Assignee: Robert Bradshaw
> Priority: P2
> Fix For: 2.36.0
>
> Time Spent: 2.5h
> Remaining Estimate: 0h
>
> DataFrame reads attempt to match user expectations by giving every element
> across all
> shards a unique index. This is done by embedding the filepath
> itself in the index, but this results in the (often quite long) path
> being duplicated for every element (sometimes exceeding the size of the
> data itself).
> We should instead generate a guaranteed unique _numeric_ index.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)