-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add python api for optimize #1091
Add python api for optimize #1091
Conversation
@burakyilmaz321 Thank you for the PR. This is very good! For tests, you can look at the the examples here. |
220cf61
to
d82049b
Compare
@vkorukanti Added unit tests and documentation. Since the Scala API is not added yet, tests are failing here. But, I merged #961 with my changes in another branch, just to see that unit tests are passing. You can see here the unit test checks are successful. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @burakyilmaz321 for the update. Few minor comments. The Scala API is merged to master branch.
Signed-off-by: Burak Yilmaz <[email protected]>
It cannot decorate classes Signed-off-by: Burak Yilmaz <[email protected]>
Signed-off-by: Burak Yilmaz <[email protected]>
Signed-off-by: Burak Yilmaz <[email protected]>
Signed-off-by: Burak Yilmaz <[email protected]>
It's better to have a consistent naming between APIs. Signed-off-by: Burak Yilmaz <[email protected]>
After Python 3.6, there should not be escape characters in literal strings. Currently, it is just a lint issue. But it will eventually raise a SyntaxError in the future. Just make them raw strings to fix the issue. https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior Signed-off-by: Burak Yilmaz <[email protected]>
Signed-off-by: Burak Yilmaz <[email protected]>
506fade
to
013aa48
Compare
Signed-off-by: Burak Yilmaz <[email protected]>
013aa48
to
9ec76f0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for adding these APIs.
@burakyilmaz321 The python test failures on |
Sure, I will do that as soon as I reach my laptop later today. |
## Description Adds optimize command to the Python API. - New class in ``tables.py``: ``DeltaOptimizeBuilder`` - New method: ``DeltaTable.optimize`` Resolves delta-io#1080 Added new unit tests to ``test_deltatable.py``: - ``test_optimize`` - ``test_optimize_w_partition_filter`` ## Does this PR introduce _any_ user-facing changes? No Closes delta-io#1091 Signed-off-by: Venki Korukanti <[email protected]> GitOrigin-RevId: 93ede77656227f068c1cd32157e6cc46a78922e8
## Description Adds optimize command to the Python API. - New class in ``tables.py``: ``DeltaOptimizeBuilder`` - New method: ``DeltaTable.optimize`` Resolves delta-io#1080 Added new unit tests to ``test_deltatable.py``: - ``test_optimize`` - ``test_optimize_w_partition_filter`` ## Does this PR introduce _any_ user-facing changes? No Closes delta-io#1091 Signed-off-by: Venki Korukanti <[email protected]> GitOrigin-RevId: 93ede77656227f068c1cd32157e6cc46a78922e8
Description
Adds optimize command to the Python API.
tables.py
:DeltaOptimizeBuilder
DeltaTable.optimize
Resolves #1080
How was this patch tested?
Added new unit tests to
test_deltatable.py
:test_optimize
test_optimize_w_partition_filter
Does this PR introduce any user-facing changes?
No