You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "fallintoplace (via GitHub)" <gi...@apache.org> on 2026/06/20 12:42:35 UTC

[PR] [Fix][API] Correct numeric epoch timestamp conversion [seatunnel]

fallintoplace opened a new pull request, #11141:
URL: https://github.com/apache/seatunnel/pull/11141

   ### Purpose of this pull request
   
   Fix `BasicDataConverter` numeric DATE/TIMESTAMP conversion for modern epoch-second values.
   
   The old `999999999` cutoff treated values like `1700000000` as epoch milliseconds, which converted a normal 2023 epoch-second timestamp into a date in 1970. This patch normalizes numeric epoch values by decimal precision, covering seconds, milliseconds, microseconds, and nanoseconds before converting through `Instant`.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes. Numeric DATE/TIMESTAMP values such as `1700000000` now convert as epoch seconds instead of epoch milliseconds. Existing 13-digit millisecond values such as `1700000000000` continue to convert as epoch milliseconds.
   
   ### How was this patch tested?
   
   Added unit coverage for numeric epoch seconds, milliseconds, microseconds, and nanoseconds in `BasicDataConverter`.
   
   - `./mvnw -pl seatunnel-api -DskipITs -Dcheckstyle.skip -Dspotless.check.skip test`
   - `./mvnw -pl seatunnel-api spotless:check`
   
   ### Check list
   
   * [x] No new Jar binary package is added.
   * [x] Documentation is not needed for this bug fix.
   * [x] No incompatible change file update is needed.
   * [x] No connector packaging changes are needed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Fix][API] Correct numeric epoch timestamp conversion [seatunnel]

Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on PR #11141:
URL: https://github.com/apache/seatunnel/pull/11141#issuecomment-4845339814

   Thanks for the update. I rechecked the current head against the latest `dev`, and this branch is still behind upstream.
   
   - base branch: `dev`
   - head SHA: `e136f48410abea6895b0046b7b08c3f9d79a8353`
   - compare status: `diverged`
   - ahead_by: `3`
   - behind_by: `48`
   - mergeable_state: `unknown`
   - CI / merge gate snapshot: `failing` (failing: `Build [failure]`)
   
   Because the PR is still behind the latest base, any CI result and merge gate signal here is mixed with upstream drift. The lowest-cost next step is to sync with the latest `dev` and rerun CI first. If anything still fails after the sync, I'm happy to take another look on top of the updated head.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Fix][API] Correct numeric epoch timestamp conversion [seatunnel]

Posted by "davidzollo (via GitHub)" <gi...@apache.org>.
davidzollo commented on PR #11141:
URL: https://github.com/apache/seatunnel/pull/11141#issuecomment-5192185905

   Thanks for your contribution! This is a solid addition to the project, and your attention to detail really shows. Contributors like you are what keep this community moving forward. Feel free to keep the PRs coming — we're always glad to have you here!
   
   Please ignore the following message if you have joined in the Slack~
   ```
   To facilitate focused communication among contributors, we’ve created a brand-new dedicated #contributors channel in official Slack workspace.
   Slack workspace link: https://s.apache.org/seatunnel-slack
   
   This channel is designed for technical discussions, feature design brainstorming, roadmap sync and direct communication with project core Contributors. Everyone who contributes code, docs, test cases or community ideas is warmly invited to join, share thoughts and collaborate together under The Apache Way. Welcome to join 😄
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Fix][API] Correct numeric epoch timestamp conversion [seatunnel]

Posted by "davidzollo (via GitHub)" <gi...@apache.org>.
davidzollo commented on PR #11141:
URL: https://github.com/apache/seatunnel/pull/11141#issuecomment-4795056146

   Good job.
   
   Thanks a lot for your valuable contribution to Apache SeaTunnel!
   
   To pass the automated CI checks for this PR, could you please enable CI workflows in your forked repository first? You can refer to the check run link below as a reference for the required CI configuration ** CI check URL **
   
   If you run into any trouble enabling CI or encounter related errors during the process, feel free to leave a comment here. Contributors are always ready to offer help~
   
   <img width="2412" height="1472" alt="image" src="https://github.com/user-attachments/assets/6abd2ea1-da45-4d78-a81c-0158f2d7a851" />


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Fix][API] Correct numeric epoch timestamp conversion [seatunnel]

Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on PR #11141:
URL: https://github.com/apache/seatunnel/pull/11141#issuecomment-6285871875

   Pushed merge commit `4b2a2bb8eff` (current `dev` into your branch), @fallintoplace. No conflicts, the PR's own files are unchanged by the merge; the goal is a fresh CI run, since the last `Build` result on this head dates from July and the source-side review had no open blocker.
   
   Your fork did not create a Build run for this push; if none appears, please start one from the Actions tab ("Run workflow" on Build). I started a verification run of the same head on my fork: https://github.com/DanielLeens/seatunnel/actions?query=branch%3Apr11141-verify-4b2a2bb8eff


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Fix][API] Correct numeric epoch timestamp conversion [seatunnel]

Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on PR #11141:
URL: https://github.com/apache/seatunnel/pull/11141#issuecomment-4798567342

   Thanks for the CI follow-up. From Daniel's side, the current head is still the same revision I already approved, and I do not have a new source-level concern to add on this version.
   
   The remaining step here is just to get the fork workflow enabled so the `Build` check can run normally. If you hit any trouble while enabling it, feel free to leave a note and I can take another look.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Fix][API] Correct numeric epoch timestamp conversion [seatunnel]

Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on PR #11141:
URL: https://github.com/apache/seatunnel/pull/11141#issuecomment-4854230192

   Thanks for the update. I rechecked the current head against the latest `dev`, and the source-level blockers from my previous Daniel review still stand on this branch.
   
   - base branch: `dev`
   - head SHA: `de7dbd5ae0e7543bdcbb043dcf3e851710d71703`
   - compare status: `diverged`
   - ahead_by: `3`
   - behind_by: `8`
   - CI / merge gate snapshot: `Build CANCELLED`
   
   The current failing CI signal does not look actionable on top of this stale head yet, so the lowest-cost next step is to sync with the latest `dev` and rerun CI first. If anything still fails after the sync, I am happy to take another look on top of the updated head.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org