DataSharingRestClient not included for python yet?
Gcdelgado150 opened this issue · 5 comments
Hi!
I've checked the last update based on this issue ( https://github.com/delta-io/delta-sharing/pull/111 ) and some documentation saying that with DataSharingRestClient is possible to use query_table_version().
After some dig around I was able to include everything needed in my init.py file and able to use the method in my package installed.
I was wondering why that was not included in commited code yet? Is the version for python not stable yet?
Thank you!
Btw, in my case worked like a charm:
"QueryTableVersionResponse(delta_table_version=7)"
@Gcdelgado150 What exactly is not included?
query_table_version is available in the rest_client.py, do you mean to expose it in readers.py
and delta_sharing.py
?
Is not included "all" in init.py file, therefore not accessible when you would import the package Or not? Am I missing something? hehe
You meant this file right: https://github.com/delta-io/delta-sharing/blob/main/python/delta_sharing/__init__.py
Yeah, once it's exposed in delta_sharing, it will be exposed there.
Feel free to send out a PR to expose it.
Based on your questioning I actually figure it that the exposure was indeed there, but not straight, meaning that: "from delta_sharing import DataSharingRestClient" wouldn't work. But instead "from delta_sharing.delta_sharing import DataSharingRestClient" is correct.
Is that worth a PR, or not even needed? Was that intentional? Sorry, noobs question I guess! You can close the issue!
Ty
I think it's more about with limited bandwidth, we prioritize the ones used by most people. As there are always work around, so we didn't prioritize this.
Thanks, I'll close the issue for now, feel free to reopen or send out PRs.