Skip to content

Conversation

@namrathamyske
Copy link
Collaborator

No description provided.

huaxingao and others added 30 commits June 12, 2022 19:12
I think we forgot to update the home page from the Parquet block.
The in-memory `InputFile` and `OutputFile` implementations has an
undesirable property that returned streams allowed use after close.
Since most streams don't have such property, it should be disallowed
here too.
Metaclasses in Python don't mix very well, and when they cause
conflicts then it breaks at initialization.
Example of metaclasses is the ABC, but also the Pydantic BaseModel.
I tried to circumvent this by extending the Singleton from ABC
but it is likely that we use different metaclasses in the future,
and then it will bring us sadness and misery.
Currently, the properties are optional, which doesn't really make sense.

Also, in the Java code it throws an exception:
https://github.com/apache/iceberg/blob/master/core/src/test/java/org/apache/iceberg/rest/requests/TestRenameTableRequest.java#L106-L121

Therefore I would suggest making those required in the spec as well
* Remove redundant call to String.valueOf in format argument

* Remove redundant warning suppression

The unchecked code was removed in
9384bd6.

* Include actual class name in class mismatch exception

Include requested and actual class name in the exception message thrown
when `PartitionData` detects type mismatch.
```
➜  python git:(fd-bump-pre-commit) pre-commit autoupdate
Updating https://github.com/pre-commit/pre-commit-hooks ... updating v4.2.0 -> v4.3.0.
Updating https://github.com/ambv/black ... already up to date.
Updating https://github.com/pre-commit/mirrors-isort ... already up to date.
Updating https://github.com/pre-commit/mirrors-mypy ... updating v0.960 -> v0.961.
Updating https://github.com/hadialqattan/pycln ... already up to date.
Updating https://github.com/asottile/pyupgrade ... updating v2.32.1 -> v2.34.0.
➜  python git:(fd-bump-pre-commit) ✗ pre-commit run --all-files
trim trailing whitespace.................................................Passed
fix end of files.........................................................Passed
check docstring is first.................................................Passed
debug statements (python)................................................Passed
check yaml...............................................................Passed
check python ast.........................................................Passed
black....................................................................Passed
isort....................................................................Passed
mypy.....................................................................Passed
pycln....................................................................Passed
pyupgrade................................................................Passed
```
* Python: Renable pylint

For some reason pylint fell through the cracks when migrating from tox
to pre-commit

* Be more explicit in disabled checks
* Shutdown refresh token thread during REST catalog client close

* Improved shutdown of token refresh executor during REST catalog close

* REST: Set table format version for create table transactions

* add test for creating v2 table via transaction

* Core: Check for valid identifiers in REST catalog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.