laskoviymishka opened a new pull request, #1287:
URL: https://github.com/apache/iceberg-go/pull/1287

   Three related codec cleanups:
   
   - EncodeFileScanTask validated the SpecID of every delete/equality/DV file 
(via encodeDataFileSlice) but not the primary task.File. EncodeDataFile encodes 
partition data against the passed-in spec, so a transposed (spec, task) pair 
silently mis-mapped or dropped partition values and still returned success. 
Guard the primary file the same way the delete files are guarded, and update 
the doc comment to say every file is checked.
   
   - Tag the Encode/DecodeFileScanTask propagation-path errors with the "codec: 
EncodeFileScanTask:" / "codec: DecodeFileScanTask:" markers, matching the 
convention EncodeDataFile/DecodeDataFile already use (and that 
data_file_test.go asserts).
   
   - Fix the SetSchemaCacheSize doc: it claimed "not safe to call 
concurrently", but the underlying golang-lru/v2 cache serializes Resize against 
Get/Add through the same mutex, so it is safe.


-- 
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