-
Notifications
You must be signed in to change notification settings - Fork 245
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
refactor(java): simpilfy fragment #3307
Conversation
BTW. current json verion is incompatible with newest spark. java.lang.NoSuchMethodError: 'java.util.Iterator org.json.JSONArray.iterator()'. this PR also solves this problem. |
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.
Nice working. Using the IntoJava
and FromJObjectWithEnv
traits seems like a good idea.
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.
Please increment the minor version as part of your PR. Then we can merge.
|
||
import java.io.Serializable; | ||
|
||
public class DataFile implements Serializable { |
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.
Should we put these files into a sub package named fragment
?
|
||
import java.io.Serializable; | ||
|
||
public class DeletionFile implements Serializable { |
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.
If the rust DeletionFile
add some new filed, is this old DeletionFile also can be used?
java/core/pom.xml
Outdated
@@ -8,7 +8,7 @@ | |||
<parent> | |||
<groupId>com.lancedb</groupId> | |||
<artifactId>lance-parent</artifactId> | |||
<version>0.21.1</version> | |||
<version>0.21.2</version> |
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.
The java version is the same with other langue. Shoud we bump java version here?
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.
I reverted the change
f251d4e
to
01c0569
Compare
a06af51
to
ce65400
Compare
in check_versions.py, we need to bump version to 0.22. I don't know is this necessary? |
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 the contribution, @chenkovsky . Once the conflicts are fixed, we can merge it. |
Ok. I have to revert the previous merged pr. 🤣 |
In PR #3240, python code is refactored, fragment is dataclass now. This PR refactors Java code, make the API consistent with python api.