yuqi1129 opened a new issue, #9748:
URL: https://github.com/apache/gravitino/issues/9748
### Describe the feature
The following example is what Lance supports to run a tensorflow to access
Lance tables
```python
import tensorflow as tf
import lance
# Create tf dataset
ds = lance.tf.data.from_lance("s3://my-bucket/my-dataset")
# Chain tf dataset with other tf primitives
for batch in ds.shuffling(32).map(lambda x: tf.io.decode_png(x["image"])):
print(batch)
```
It's not very elegant and hard to maintain.
```
import tensorflow as tf
import lance
import lance.tf.data
import lance_namespace as ln
ns = ln.connect("rest", {"uri": "http://localhost:9101/lance"})
ds = lance.tf.data.from_lance(
namespace=ns,
table_id=["lance_catalog", "schema", "my_table52"],
batch_size=128,
columns=["id", "value"],
filter="id > 10",
ignore_namespace_table_storage_options=False,
)
ds....
```
### Motivation
_No response_
### Describe the solution
_No response_
### Additional context
_No response_
--
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]