Skip to content
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

feat: add timestamp & decimal type support to java bindings #8740

Merged
merged 11 commits into from
Mar 30, 2023

Conversation

adevday
Copy link
Contributor

@adevday adevday commented Mar 23, 2023

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.

What's changed and what's your intention?

Add timestamp & decimal type support to java bindings.

Checklist For Contributors

  • I have written necessary rustdoc comments
  • I have added necessary unit tests and integration tests
  • I have added fuzzing tests or opened an issue to track them. (Optional, recommended for new SQL features Sqlsmith: Sql feature generation #7934).
  • I have demonstrated that backward compatibility is not broken by breaking changes and created issues to track deprecated features to be removed in the future. (Please refer to the issue)
  • All checks passed in ./risedev check (or alias, ./risedev c)

Checklist For Reviewers

  • I have requested macro/micro-benchmarks as this PR can affect performance substantially, and the results are shown.

Documentation

  • My PR DOES NOT contain user-facing changes.
Click here for Documentation

Types of user-facing changes

Please keep the types that apply to your changes, and remove the others.

  • Installation and deployment
  • Connector (sources & sinks)
  • SQL commands, functions, and operators
  • RisingWave cluster configuration changes
  • Other (please specify in the release note below)

Release note

@codecov
Copy link

codecov bot commented Mar 24, 2023

Codecov Report

Merging #8740 (1247954) into main (f330b60) will decrease coverage by 0.04%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #8740      +/-   ##
==========================================
- Coverage   70.78%   70.74%   -0.04%     
==========================================
  Files        1176     1176              
  Lines      195112   195195      +83     
==========================================
- Hits       138113   138098      -15     
- Misses      56999    57097      +98     
Flag Coverage Δ
rust 70.74% <0.00%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/common/src/row/owned_row.rs 65.04% <0.00%> (-3.32%) ⬇️
src/java_binding/src/hummock_iterator.rs 0.00% <0.00%> (ø)
src/java_binding/src/lib.rs 0.33% <0.00%> (-0.10%) ⬇️
src/java_binding/src/stream_chunk_iterator.rs 0.00% <0.00%> (ø)

... and 7 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@tabVersion tabVersion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

basically LGTM, waiting for JNI experts' comments

Copy link
Contributor

@wenym1 wenym1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally LGTM.

Can we also support Date and Time in this PR? I think they are similar to Timestamp.

@adevday
Copy link
Contributor Author

adevday commented Mar 24, 2023

Generally LGTM.

Can we also support Date and Time in this PR? I think they are similar to Timestamp.

I will do it in following PR since I have little knowledgement of Java, It's better for me to keep it simple.

@adevday adevday enabled auto-merge March 24, 2023 12:41
@adevday adevday force-pushed the idx0dev/java_bind branch from ca363e0 to c86c319 Compare March 27, 2023 09:02
@adevday adevday force-pushed the idx0dev/java_bind branch from c86c319 to e27e0e6 Compare March 28, 2023 02:07
Copy link
Contributor

@wenym1 wenym1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rest LGTM

idx: jint,
) -> JObject<'a> {
// since JMethodID is always validate until the belonging class is unload.
static INIT_METHOD: OnceCell<JMethodID> = OnceCell::new();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

@adevday adevday force-pushed the idx0dev/java_bind branch from 1b1b144 to 1247954 Compare March 30, 2023 08:53
Copy link
Contributor

@wenym1 wenym1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@adevday adevday added this pull request to the merge queue Mar 30, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 30, 2023
@adevday adevday added this pull request to the merge queue Mar 30, 2023
Merged via the queue into main with commit 6d65352 Mar 30, 2023
@adevday adevday deleted the idx0dev/java_bind branch March 30, 2023 11:12
@tabVersion tabVersion mentioned this pull request Apr 5, 2023
5 tasks
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.

4 participants