tbirch-cyber commented on issue #2203: URL: https://github.com/apache/parquet-java/issues/2203#issuecomment-3221422625
# Proposed Solution Store IP addresses using the Iceberg "fixed(16)" type to represent 16-byte binary data. Reference: https://iceberg.apache.org/spec/#parquet At the physical layer this translates to the Parquet FIXED_LEN_BYTE_ARRAY(16) type. Reference: https://parquet.apache.org/docs/file-format/types/ IPv4 addresses will be stored in 4 bytes, preceded by a 16-bit FFFF block and leading zeroes to fill the 16-byte format: 192.0.2.1 → 00000000 00000000 0000FFFF C0000201 IPv6 will be stored as its native 16-byte representation. 2001:db8::1 → 20010DB8 00000000 00000000 00000001 The proposed approach aligns with RFC 4291 Section 2.5.5.2, supporting IPv4-mapped IPv6 addresses. Reference: https://datatracker.ietf.org/doc/html/rfc4291.html#section-2.5.5.2 -- 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]
