You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "ndrluis (via GitHub)" <gi...@apache.org> on 2024/03/05 21:54:58 UTC

[I] Library public api isolation and import decoupling [iceberg-python]

ndrluis opened a new issue, #499:
URL: https://github.com/apache/iceberg-python/issues/499

   ### Feature Request / Improvement
   
   Hello, when I was trying to solve the #497 issue, I noticed that we are exposing the private API and we have some imports through modules. 
   
   For example, in [glue.py](https://github.com/apache/iceberg-python/blob/main/pyiceberg/catalog/glue.py#L49-L50), we import `Identifier` and `Properties` from `catalog` instead of importing from `typedef`. Another case is in [test_writes.py](https://github.com/apache/iceberg-python/blob/main/tests/integration/test_writes.py#L35), where we import `Table` from `catalog` instead of from `table`.
   


-- 
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: issues-unsubscribe@iceberg.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [I] Library public api isolation and import decoupling [iceberg-python]

Posted by "ndrluis (via GitHub)" <gi...@apache.org>.
ndrluis commented on issue #499:
URL: https://github.com/apache/iceberg-python/issues/499#issuecomment-2338019734

   I'll close this issue because we added the mypy linter, which solves our problem with coupling, and we have #1099 to solve the public API definition.


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [I] Library public api isolation and import decoupling [iceberg-python]

Posted by "ndrluis (via GitHub)" <gi...@apache.org>.
ndrluis commented on issue #499:
URL: https://github.com/apache/iceberg-python/issues/499#issuecomment-1985722458

   @kevinjqliu Agreed, I haven't found anything that addresses this issue or provides a warning when it occurs. It seems like something the community has accepted, but I believe it's a problem. I will open an issue on Ruff to ask about this and understand how we can write a rule.


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [I] Library public api isolation and import decoupling [iceberg-python]

Posted by "ndrluis (via GitHub)" <gi...@apache.org>.
ndrluis closed issue #499: Library public api isolation and import decoupling
URL: https://github.com/apache/iceberg-python/issues/499


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [I] Library public api isolation and import decoupling [iceberg-python]

Posted by "HonahX (via GitHub)" <gi...@apache.org>.
HonahX commented on issue #499:
URL: https://github.com/apache/iceberg-python/issues/499#issuecomment-1980189490

   @ndrluis Thanks for reporting this! I think we should fix these to import from the right module. Do you want to work on this?


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [I] Library public api isolation and import decoupling [iceberg-python]

Posted by "ndrluis (via GitHub)" <gi...@apache.org>.
ndrluis commented on issue #499:
URL: https://github.com/apache/iceberg-python/issues/499#issuecomment-1985907062

   Issue to follow up https://github.com/astral-sh/ruff/issues/10300


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [I] Library public api isolation and import decoupling [iceberg-python]

Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu commented on issue #499:
URL: https://github.com/apache/iceberg-python/issues/499#issuecomment-1984611888

   Thanks for the PR! Do you know if there are ways to do this systemically, with linters / rules? I foresee this to be an issue again as we continue to do more development. 


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [I] Library public api isolation and import decoupling [iceberg-python]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #499:
URL: https://github.com/apache/iceberg-python/issues/499#issuecomment-2336882397

   This issue has been automatically marked as stale because it has been open for 180 days with no activity. It will be closed in next 14 days if no further activity occurs. To permanently prevent this issue from being considered stale, add the label 'not-stale', but commenting on the issue is preferred when possible.


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [I] Library public api isolation and import decoupling [iceberg-python]

Posted by "ndrluis (via GitHub)" <gi...@apache.org>.
ndrluis commented on issue #499:
URL: https://github.com/apache/iceberg-python/issues/499#issuecomment-1991736688

   We have some news about the issue: mypy has implemented a rule that could protect us. You can find more details here: https://mypy.readthedocs.io/en/stable/config_file.html#confval-implicit_reexport. Furthermore, there is an ongoing discussion about implementing this rule in ruff.


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [I] Library public api isolation and import decoupling [iceberg-python]

Posted by "ndrluis (via GitHub)" <gi...@apache.org>.
ndrluis commented on issue #499:
URL: https://github.com/apache/iceberg-python/issues/499#issuecomment-1984450634

   The #505 decouple imports from
   
   * pyiceberg.catalog
   * pyiceberg.table
   * pyiceberg.expressions


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [I] Library public api isolation and import decoupling [iceberg-python]

Posted by "ndrluis (via GitHub)" <gi...@apache.org>.
ndrluis commented on issue #499:
URL: https://github.com/apache/iceberg-python/issues/499#issuecomment-1980691856

   @HonahX Yes!


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org