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

Add python 3.10 in image #4

Open
wants to merge 612 commits into
base: master
Choose a base branch
from
Open

Add python 3.10 in image #4

wants to merge 612 commits into from

Conversation

selitvin
Copy link
Owner

No description provided.

Yevgeni Litvin and others added 30 commits December 4, 2019 09:00
According to uber#279 an issue with pickling `ParseResult` accross pyspark
driver-executor border may result in a corrupt `ParseResult` instance
that is lacking `hostname` attribute.

We try to fix the issue by marshalling url string instead of the
`ParseResult` instance.
Observed the following failure with pyarrow 0.14.1 and python 2.7:
```
from petastorm.reader import Reader, make_batch_reader
path = '/tmp/train'
schema_fields = ['features']
batch_reader = make_batch_reader('file://'+path, schema_fields=schema_fields)
print(batch_reader.next())

Traceback (most recent call last):
  File "test.py", line 9, in <module>
    print(batch_reader.next())
  File "/home/.../lib/python3.7/site-packages/petastorm/reader.py", line 616, in next
    return self.__next__()
  File "/home/.../lib/python3.7/site-packages/petastorm/reader.py", line 610, in __next__
    return self._results_queue_reader.read_next(self._workers_pool, self.schema, self.ngram)
  File "/home/.../lib/python3.7/site-packages/petastorm/arrow_reader_worker.py", line 79, in read_next
    return schema.make_namedtuple(**result_dict)
  File "/home/.../lib/python3.7/site-packages/petastorm/unischema.py", line 286, in make_namedtuple
    return self._get_namedtuple()(**typed_dict)
TypeError: __new__() got an unexpected keyword argument 'datestr'
```

Drop columns we did not explicitly request. This may happen when a table is partitioned. Besides columns
requested, pyarrow will also return partition values. Having these unexpected fields will break some
downstream code.
Allows user to query the codec type: png/jpeg
This bug manifests in either:
- `pyarrow.lib.ArrowIOError: The file only has <X> row groups, requested metadata for row group: <Y>` (where <X> and <Y> are integers) exception, or:
- silently - some rows in a dataset might have been silently ignored.

This issue occured when:
- using `make_batch_reader`
- number of row-groups in different parquet files (pieces) is different.

The issue was in introduced in petastorm 0.7.7
Using values property instead of the deprecated as_matrix function
New image includes latest packages (inc. pandas 1.0) and python 3.7
…eader

Creating a new PR for this as PR uber#445 is having conflicts with master, probably due to my following the wrong git advice on the internet...
Adding two tests, for selecting just an invalid column and both invalid and valid columns, for parquet reader.
The warning was occuring when both legacy and the new rule produced the
same overall set of fields, but maybe in different order. Although, both
rules would behave the same from the user perspective, they would see a
warning. The warning would be bogus because it wouldn't contain any
field names.
tirkarthi and others added 30 commits October 27, 2021 11:10
* Get rid of RuntimeWarning when using process pool

Restructure process_pool implementation code in a way that resolves `RuntimeWarning: 'petastorm.workers_pool.exec_in_new_process' found in sys.modules after
import of package 'petastorm.workers_pool', but prior to execution of 'petastorm.workers_pool.exec_in_new_process'; this may result in unpredictable behaviou when using process pool` warning.

In this diff we break main entry point from `exec_in_new_process.py` file into two a separate `exec_in_new_process_entrypoint.py`.

Resolves uber#585
Allow more than two namenodes in hdfs configuration file.

Resolves uber#724. Hadoop 3 configuration file allows more than two
namenodes to be available. Petastorm code was assuming up to two
namenodes in the configuration file. This PR allows for unbound number
of namenodes to be present.
Support passing multiple url files to make_reader function.

Resolves uber#728.
This is the recommended way of checking for process existence by pid.
…r#762)

Avoid creating many copies in _make_batch().
Reuse same rowgroup to generate all available batches.
Readthedocs build hit failure when using Python 3.6 with latest PyArrow.
Also use a shuffle seed to generate reproducible shuffle results across:
single row shuffle, row groups shuffle in ventilator and sharding.
…r local caching (uber#777)

Removing last class that was using deprecated pyarrow serialization (uber#612).
Bumping up pickle protocol to highet to improve performance of local
persistent caching.
* Support results_queue_size parameter in make_batch_reader api

* Test results_queue_size is propagated properly to the workers pool

* Update release notes

* Reformat unit test
…dataframe path (uber#787)

Signed-off-by: Weichen Xu [email protected]

Make make_spark_converter supports creating converter from a saved dataframe path.
In this case, we can skip the step of materializing spark dataframe that might be slow.
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

Successfully merging this pull request may close these issues.