Skip to content

Conversation

@popematt
Copy link
Contributor

Issue #, if available:

None

Description of changes:

Changes are grouped into commits to make it easier to review them.

  1. Supporting changes for the binary raw writer. These changes were previously submitted and approved in Initial implementation of Ion 1.1 raw binary writer #660
  2. Adds TimestampEncoder_1_1 and tests
  3. Adds IonRawBinaryWriter_1_1 and tests
  4. Removes the now obsolete IonEncoder_1_1 and an obsolete version of OpCodes and some unused constants.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@popematt popematt requested a review from tgregg October 22, 2025 18:41
@codecov
Copy link

codecov bot commented Oct 22, 2025

Codecov Report

❌ Patch coverage is 93.11475% with 42 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (ion11@8d925c6). Learn more about missing BASE report.

Files with missing lines Patch % Lines
.../com/amazon/ion/impl/bin/IonRawBinaryWriter_1_1.kt 94.69% 13 Missing and 9 partials ⚠️
...main/java/com/amazon/ion/impl/bin/WriteBuffer.java 78.57% 9 Missing and 3 partials ⚠️
...va/com/amazon/ion/impl/bin/TimestampEncoder_1_1.kt 95.86% 2 Missing and 3 partials ⚠️
...a/com/amazon/ion/impl/_Private_RecyclingQueue.java 71.42% 1 Missing and 1 partial ⚠️
.../main/java/com/amazon/ion/impl/bin/PatchPoint.java 90.90% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##             ion11    #1133   +/-   ##
========================================
  Coverage         ?   68.97%           
  Complexity       ?     6172           
========================================
  Files            ?      200           
  Lines            ?    25079           
  Branches         ?     4385           
========================================
  Hits             ?    17299           
  Misses           ?     6442           
  Partials         ?     1338           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

override fun stepInTaglessElementSExp(macroId: Int, macroName: String?) {
currentContainer = containerStack.push { it.reset(TE_SEXP, buffer.position()) }
buffer.writeByte(OpCode.TAGLESS_ELEMENT_SEXP)
currentContainer.metadataOffset += writeEExpMacroIdWithoutLengthPrefix(macroId)
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need a variant that allows the macro shapes to be length-prefixed? (We have an example of this in the spec)

@popematt popematt merged commit 1ce55a6 into amazon-ion:ion11 Oct 30, 2025
30 of 36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants