tomron opened a new pull request, #4101:
URL: https://github.com/apache/iceberg-python/pull/4101

   Closes #4098
   
   # Rationale for this change
   
   `JsonOutput.describe_refs()` emitted one JSON object per retention property 
instead of one per snapshot reference, so `pyiceberg --output=json list-refs` 
could return three objects for a table with a single ref. This merges the 
retention properties into a single object per reference, consistent with 
`ConsoleOutput`, which renders one row per reference.
   
   ## Are these changes tested?
   
   Yes. Two new regression tests in `tests/cli/test_output.py`: one ref with 
multiple retention properties, and multiple refs including one with no 
retention properties. Both fail without the fix; the full `tests/cli/` suite 
(103 tests) passes.
   
   ## Are there any user-facing changes?
   
   Yes. The JSON output of `list-refs` changes shape: one object per ref 
instead of one object per retention property. This matches the expected output 
described in #4098.
   
   ---
   
   AI disclosure: this PR was prepared with AI assistance; the commit carries a 
`Generated-by` note in line with the ASF guidance on generated contributions.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to