Uroš Bojanić created SPARK-58948:
------------------------------------

             Summary: Deduplicate nulls-buffer creation in columnar 
decompressors
                 Key: SPARK-58948
                 URL: https://issues.apache.org/jira/browse/SPARK-58948
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 4.3.0
            Reporter: Uroš Bojanić


Each columnar decompressor (PassThrough, RunLengthEncoding, DictionaryEncoding, 
BooleanBitSet, IntDelta, LongDelta) repeats the same two-line idiom to build 
the nulls buffer: buffer.duplicate().order(ByteOrder.nativeOrder()) followed by 
rewind(). This extracts a protected createNullsBuffer(buffer) helper on the 
shared Decoder trait and routes the six call sites through it. No behavior 
change; it also normalizes one site that called rewind without parentheses.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to