[
https://issues.apache.org/jira/browse/PARQUET-758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17597058#comment-17597058
]
ASF GitHub Bot commented on PARQUET-758:
----------------------------------------
pitrou commented on code in PR #184:
URL: https://github.com/apache/parquet-format/pull/184#discussion_r957063147
##########
LogicalTypes.md:
##########
@@ -245,6 +245,18 @@ comparison.
To support compatibility with older readers, implementations of parquet-format
should
write `DecimalType` precision and scale into the corresponding SchemaElement
field in metadata.
+### Half-precision floating-point
+
+Also known as `float16`. Used in contexts where precision is traded off for
performance and efficient storage.
+
+It is stored as a two-byte fixed-length binary, following the 16-bit IEEE
standards:
+
+* 1 sign bit
+* 5 bits exponent
+* 10 bits mantissa/significand
+
+sign (mantissa) * 10^exponent
Review Comment:
```suggestion
The primitive type is a 2-byte fixed length binary.
```
> HALF precision FLOAT Logical type
> ---------------------------------
>
> Key: PARQUET-758
> URL: https://issues.apache.org/jira/browse/PARQUET-758
> Project: Parquet
> Issue Type: Improvement
> Components: parquet-format
> Reporter: Julien Le Dem
> Priority: Minor
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)