Skip to content

Conversation

@bobbai00
Copy link
Contributor

@bobbai00 bobbai00 commented Oct 3, 2025

Summary

  • Fixed non-deterministic parameter ordering issue when creating Dataset objects from JOOQ records
  • Used createdDataset.into(classOf[Dataset]) to convert DatasetRecord to Dataset POJO instead of manual constructor

Fixes #3821

@github-actions github-actions bot added fix backend Anything related to backend services labels Oct 3, 2025
@bobbai00 bobbai00 changed the title Fix dataset parameter ordering issue fix: dataset parameter ordering issue Oct 3, 2025
@bobbai00 bobbai00 changed the title fix: dataset parameter ordering issue fix(file-service): dataset parameter ordering issue Oct 3, 2025
@bobbai00 bobbai00 self-assigned this Oct 3, 2025
@bobbai00 bobbai00 requested review from aicam and chenlica October 3, 2025 22:57
@chenlica
Copy link
Contributor

chenlica commented Oct 3, 2025

Our common practice is to create an issue and use a PR to fix the issue. So please create an issue.

It's also a good chance to check the PR #3812 and follow the new bug-report template to create the issue.

@bobbai00 bobbai00 changed the title fix(file-service): dataset parameter ordering issue fix(file-service): avoid manually constructing the Dataset object through parameters Oct 3, 2025
@bobbai00
Copy link
Contributor Author

bobbai00 commented Oct 3, 2025

Our common practice is to create an issue and use a PR to fix the issue. So please create an issue.

It's also a good chance to check the PR #3812 and follow the new bug-report template to create the issue.

Added. Please check

@chenlica
Copy link
Contributor

chenlica commented Oct 3, 2025

Thanks. Do you think a test case can be added?

@aglinxinyuan
Copy link
Contributor

This is the correct approach. We should apply the same fix to all other instances, if any.

@bobbai00
Copy link
Contributor Author

bobbai00 commented Oct 4, 2025

Thanks. Do you think a test case can be added?

Added. Please check

@bobbai00 bobbai00 force-pushed the fix/dataset-parameter-order branch from 28561ab to fd311a3 Compare October 4, 2025 19:13
@chenlica
Copy link
Contributor

chenlica commented Oct 5, 2025

@aicam Please review it first.

Copy link
Contributor

@aicam aicam left a comment

Choose a reason for hiding this comment

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

LGTM! in general we are using so many different formats of database querying, we may make them consistent in the future, @chenlica should I add an issue for it?

bobbai00 and others added 2 commits October 9, 2025 16:49
Use createdDataset.into(classOf[Dataset]) to convert DatasetRecord to Dataset POJO instead of manually constructing with parameters to avoid non-deterministic parameter ordering issues.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@bobbai00 bobbai00 force-pushed the fix/dataset-parameter-order branch from 738d8eb to d494008 Compare October 9, 2025 23:49
@bobbai00 bobbai00 enabled auto-merge (squash) October 9, 2025 23:50
@bobbai00 bobbai00 merged commit 356a240 into apache:main Oct 9, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Anything related to backend services fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Non-deterministic parameter ordering in JOOQ-generated Dataset constructor

4 participants