XiaoHongbo-Hope opened a new pull request, #7086:
URL: https://github.com/apache/paimon/pull/7086
<!-- Please specify the module before the PR name: [core] ... or [flink] ...
-->
### Purpose
<!-- Linking this pull request to the issue -->
**Before:**
```
paimon-python/pypaimon/read/
└── datasource.py # Single file with all integrations
# Global imports: import ray, import torch
# Contains: RayDatasource, TorchDataset,
TorchIterDataset
```
**Issues:**
Both dependencies are required even when only one is needed, which will be
even worse if we integrate more datasource in the future.
```
paimon-python/pypaimon/read/
├── datasource/
│ ├── __init__.py
│ ├── ray_datasource.py # Ray integration (requires ray)
│ └── torch_dataset.py # PyTorch integration (requires torch)
└── table_read.py # Uses lazy imports
```
<!-- What is the purpose of the change -->
### Other Changes
Moved `ray` and `torch` from requirement.txt to `setup.py` `extras_require`.
<!-- List UT and IT cases to verify this change -->
### API and Format
<!-- Does this change affect API or storage format -->
### Documentation
<!-- Does this change introduce a new feature -->
--
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]