You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "AlenkaF (via GitHub)" <gi...@apache.org> on 2024/05/23 12:02:41 UTC

[PR] GH-14752: [Docs] List the logical types in Columnar.rst [arrow]

AlenkaF opened a new pull request, #41795:
URL: https://github.com/apache/arrow/pull/41795

   ### Rationale for this change
   
   Columnar.rst doesn't describe the logical types, since Schema.fbs is considered authoritative but list of all types would be worth adding.
   
   ### What changes are included in this PR?
   
   - Table with all types and their respective physical memory layout
   - TBD: list of types and their short summary in a glossary form.
   
   ### Are these changes tested?
   
   Crossbow preview build (documentation).
   
   ### Are there any user-facing changes?
   
   No.


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-14752: [Docs] List the logical types in Columnar.rst [arrow]

Posted by "AlenkaF (via GitHub)" <gi...@apache.org>.
AlenkaF commented on PR #41795:
URL: https://github.com/apache/arrow/pull/41795#issuecomment-2147566804

   > I've always been frustrated with the state of the columnar format spec, as I found the confusion between concepts there quite frustrating (for example, it uses the term "logical type" throughout, even though that term doesn't appear elsewhere).
   > 
   > That said, I don't think this PR makes things less confusion, on the contrary.
   
   The issue about "logical type" and substituting it with just "type" was meant to be done in a separate PR. This PR should add a list of all types and their respective layout. Maybe the "glossary" part should be removed for now and we should focus on making the table of types clear.
   
   I agree and share the frustration but am sure we will improve, one step at the time ;)


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-14752: [Docs] List the logical types in Columnar.rst [arrow]

Posted by "AlenkaF (via GitHub)" <gi...@apache.org>.
AlenkaF commented on PR #41795:
URL: https://github.com/apache/arrow/pull/41795#issuecomment-2153261735

   Closing in favour of https://github.com/apache/arrow/pull/41958


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-14752: [Docs] List the logical types in Columnar.rst [arrow]

Posted by "AlenkaF (via GitHub)" <gi...@apache.org>.
AlenkaF commented on PR #41795:
URL: https://github.com/apache/arrow/pull/41795#issuecomment-2147505477

   Would you mind having a look? Small PR with only new documentation content ;) @felipecrv @pitrou @paleolimbot  @amoeba 


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-14752: [Docs] List the logical types in Columnar.rst [arrow]

Posted by "AlenkaF (via GitHub)" <gi...@apache.org>.
AlenkaF commented on code in PR #41795:
URL: https://github.com/apache/arrow/pull/41795#discussion_r1626039012


##########
docs/source/format/Columnar.rst:
##########
@@ -1078,8 +1078,95 @@ Arrow columnar format. Each logical type uses one of the above
 physical layouts. Nested logical types may have different physical
 layouts depending on the particular realization of the type.
 
-We do not go into detail about the logical types definitions in this
-document as we consider `Schema.fbs`_ to be authoritative.
+.. glossary::
+
+   Null Type
+      Array where all values are null.
+
+   Boolean Type
+      Array of bit-packed values.
+
+   Int Type
+      Array of signed or unsigned integers with 8, 16, 32 or 64 bit width.
+
+   Floating Point Type
+      Array of floating point numbers with half, single or double precision.
+
+   .. TODO: list other types if we agree to keep the glossary
+
+
+Types and their respective Physical Memory Layout
+-------------------------------------------------
+
++--------------------+----------------------------------+------------------------------+
+| Type               | Physical Memory Layout           | Additional info stored       |

Review Comment:
   We could change "Additional info stored" to "Parameters"?



-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-14752: [Docs] List the logical types in Columnar.rst [arrow]

Posted by "AlenkaF (via GitHub)" <gi...@apache.org>.
AlenkaF commented on code in PR #41795:
URL: https://github.com/apache/arrow/pull/41795#discussion_r1626055805


##########
docs/source/format/Columnar.rst:
##########
@@ -1078,8 +1078,95 @@ Arrow columnar format. Each logical type uses one of the above
 physical layouts. Nested logical types may have different physical
 layouts depending on the particular realization of the type.
 
-We do not go into detail about the logical types definitions in this
-document as we consider `Schema.fbs`_ to be authoritative.
+.. glossary::
+
+   Null Type
+      Array where all values are null.
+
+   Boolean Type
+      Array of bit-packed values.
+
+   Int Type
+      Array of signed or unsigned integers with 8, 16, 32 or 64 bit width.
+
+   Floating Point Type
+      Array of floating point numbers with half, single or double precision.
+
+   .. TODO: list other types if we agree to keep the glossary
+
+
+Types and their respective Physical Memory Layout
+-------------------------------------------------
+
++--------------------+----------------------------------+------------------------------+
+| Type               | Physical Memory Layout           | Additional info stored       |
++====================+==================================+==============================+
+| **Primitive**      |                                  |                              |
++--------------------+----------------------------------+------------------------------+
+| Null               | Null Layout                      | /                            |
++--------------------+----------------------------------+------------------------------+
+| Boolean            | Fixed-size Primitive Layout      | values bit-packed            |
++--------------------+----------------------------------+------------------------------+
+| Int                | " (same as above)                | | bitWidth                   |
+|                    |                                  | | is_signed                  |
++--------------------+----------------------------------+------------------------------+
+| Floating Point     | "                                | precision                    |
++--------------------+----------------------------------+------------------------------+
+| Decimal            | "                                | | precision                  |
+|                    |                                  | | scale                      |
+|                    |                                  | | bitWidth                   |
++--------------------+----------------------------------+------------------------------+
+| Date               | "                                | | unit                       |
++--------------------+----------------------------------+------------------------------+
+| Time               | "                                | | unit                       |
+|                    |                                  | | bitWidth                   |
++--------------------+----------------------------------+------------------------------+
+| Timestamp          | "                                | | unit                       |
+|                    |                                  | | timezone                   |
++--------------------+----------------------------------+------------------------------+
+| Interval           | "                                | unit                         |
++--------------------+----------------------------------+------------------------------+
+| Duration           | "                                | unit                         |
++--------------------+----------------------------------+------------------------------+
+| Fixed Size Binary  | Fixed-size Binary Layout         | byteWidth                    |
++--------------------+----------------------------------+------------------------------+
+| Binary             | "                                | /                            |
++--------------------+----------------------------------+------------------------------+
+| Large Binary       | "                                | 64-bit offsets               |
++--------------------+----------------------------------+------------------------------+
+| Utf8               | Variable-size Binary Layout      | /                            |
++--------------------+----------------------------------+------------------------------+
+| Large Utf8         | "                                | 64-bit offsets               |
++--------------------+----------------------------------+------------------------------+
+| Binary View        | "                                | /                            |
++--------------------+----------------------------------+------------------------------+
+| Utf8 View          | Variable-size Binary View Layout | /                            |

Review Comment:
   Oh yes, great catch!



-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-14752: [Docs] List the logical types in Columnar.rst [arrow]

Posted by "paleolimbot (via GitHub)" <gi...@apache.org>.
paleolimbot commented on code in PR #41795:
URL: https://github.com/apache/arrow/pull/41795#discussion_r1625993494


##########
docs/source/format/Columnar.rst:
##########
@@ -1078,8 +1078,95 @@ Arrow columnar format. Each logical type uses one of the above
 physical layouts. Nested logical types may have different physical
 layouts depending on the particular realization of the type.
 
-We do not go into detail about the logical types definitions in this
-document as we consider `Schema.fbs`_ to be authoritative.
+.. glossary::
+
+   Null Type
+      Array where all values are null.
+
+   Boolean Type
+      Array of bit-packed values.
+
+   Int Type
+      Array of signed or unsigned integers with 8, 16, 32 or 64 bit width.
+
+   Floating Point Type
+      Array of floating point numbers with half, single or double precision.
+
+   .. TODO: list other types if we agree to keep the glossary
+
+
+Types and their respective Physical Memory Layout
+-------------------------------------------------
+
++--------------------+----------------------------------+------------------------------+
+| Type               | Physical Memory Layout           | Additional info stored       |
++====================+==================================+==============================+
+| **Primitive**      |                                  |                              |
++--------------------+----------------------------------+------------------------------+
+| Null               | Null Layout                      | /                            |
++--------------------+----------------------------------+------------------------------+
+| Boolean            | Fixed-size Primitive Layout      | values bit-packed            |

Review Comment:
   Perhaps this is clearer when the table is rendered, but this column in the table seems to store the parameter names *and* useful notes about the type. It might be nice to make clear which is which (or might take up too much table real-estate...your call!)



##########
docs/source/format/Columnar.rst:
##########
@@ -1078,8 +1078,95 @@ Arrow columnar format. Each logical type uses one of the above
 physical layouts. Nested logical types may have different physical
 layouts depending on the particular realization of the type.
 
-We do not go into detail about the logical types definitions in this
-document as we consider `Schema.fbs`_ to be authoritative.
+.. glossary::
+
+   Null Type
+      Array where all values are null.
+
+   Boolean Type
+      Array of bit-packed values.
+
+   Int Type
+      Array of signed or unsigned integers with 8, 16, 32 or 64 bit width.
+
+   Floating Point Type
+      Array of floating point numbers with half, single or double precision.
+
+   .. TODO: list other types if we agree to keep the glossary
+
+
+Types and their respective Physical Memory Layout
+-------------------------------------------------
+
++--------------------+----------------------------------+------------------------------+
+| Type               | Physical Memory Layout           | Additional info stored       |
++====================+==================================+==============================+
+| **Primitive**      |                                  |                              |
++--------------------+----------------------------------+------------------------------+
+| Null               | Null Layout                      | /                            |
++--------------------+----------------------------------+------------------------------+
+| Boolean            | Fixed-size Primitive Layout      | values bit-packed            |
++--------------------+----------------------------------+------------------------------+
+| Int                | " (same as above)                | | bitWidth                   |
+|                    |                                  | | is_signed                  |
++--------------------+----------------------------------+------------------------------+
+| Floating Point     | "                                | precision                    |
++--------------------+----------------------------------+------------------------------+
+| Decimal            | "                                | | precision                  |
+|                    |                                  | | scale                      |
+|                    |                                  | | bitWidth                   |
++--------------------+----------------------------------+------------------------------+
+| Date               | "                                | | unit                       |
++--------------------+----------------------------------+------------------------------+
+| Time               | "                                | | unit                       |
+|                    |                                  | | bitWidth                   |
++--------------------+----------------------------------+------------------------------+
+| Timestamp          | "                                | | unit                       |
+|                    |                                  | | timezone                   |
++--------------------+----------------------------------+------------------------------+
+| Interval           | "                                | unit                         |
++--------------------+----------------------------------+------------------------------+
+| Duration           | "                                | unit                         |
++--------------------+----------------------------------+------------------------------+
+| Fixed Size Binary  | Fixed-size Binary Layout         | byteWidth                    |
++--------------------+----------------------------------+------------------------------+
+| Binary             | "                                | /                            |
++--------------------+----------------------------------+------------------------------+
+| Large Binary       | "                                | 64-bit offsets               |
++--------------------+----------------------------------+------------------------------+
+| Utf8               | Variable-size Binary Layout      | /                            |
++--------------------+----------------------------------+------------------------------+
+| Large Utf8         | "                                | 64-bit offsets               |
++--------------------+----------------------------------+------------------------------+
+| Binary View        | "                                | /                            |
++--------------------+----------------------------------+------------------------------+
+| Utf8 View          | Variable-size Binary View Layout | /                            |

Review Comment:
   `Variable-size Binary View Layout` should maybe move up one?



-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-14752: [Docs] List the logical types in Columnar.rst [arrow]

Posted by "AlenkaF (via GitHub)" <gi...@apache.org>.
AlenkaF commented on code in PR #41795:
URL: https://github.com/apache/arrow/pull/41795#discussion_r1626023040


##########
docs/source/format/Columnar.rst:
##########
@@ -1078,8 +1078,95 @@ Arrow columnar format. Each logical type uses one of the above
 physical layouts. Nested logical types may have different physical
 layouts depending on the particular realization of the type.
 
-We do not go into detail about the logical types definitions in this
-document as we consider `Schema.fbs`_ to be authoritative.
+.. glossary::

Review Comment:
   It seems to be possible but a term must only appear once, not in both glossaries: https://github.com/sphinx-doc/sphinx/issues/1399.
   
   Nevertheless, this is a good setting for future problems =) We could only list them without the directive if we want to keep it.



-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-14752: [Docs] List the logical types in Columnar.rst [arrow]

Posted by "AlenkaF (via GitHub)" <gi...@apache.org>.
AlenkaF commented on PR #41795:
URL: https://github.com/apache/arrow/pull/41795#issuecomment-2126945108

   @github-actions crossbow submit preview-docs


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-14752: [Docs] List the logical types in Columnar.rst [arrow]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #41795:
URL: https://github.com/apache/arrow/pull/41795#issuecomment-2126951513

   Revision: f739eaddf4d128a43072950948de6e41a57b1bc6
   
   Submitted crossbow builds: [ursacomputing/crossbow @ actions-cc168caf41](https://github.com/ursacomputing/crossbow/branches/all?query=actions-cc168caf41)
   
   |Task|Status|
   |----|------|
   |preview-docs|[![GitHub Actions](https://github.com/ursacomputing/crossbow/actions/workflows/crossbow.yml/badge.svg?branch=actions-cc168caf41-github-preview-docs)](https://github.com/ursacomputing/crossbow/actions/runs/9207679556/job/25328261066)|


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-14752: [Docs] List the logical types in Columnar.rst [arrow]

Posted by "AlenkaF (via GitHub)" <gi...@apache.org>.
AlenkaF commented on code in PR #41795:
URL: https://github.com/apache/arrow/pull/41795#discussion_r1626061014


##########
docs/source/format/Columnar.rst:
##########
@@ -1078,8 +1078,95 @@ Arrow columnar format. Each logical type uses one of the above
 physical layouts. Nested logical types may have different physical
 layouts depending on the particular realization of the type.
 
-We do not go into detail about the logical types definitions in this
-document as we consider `Schema.fbs`_ to be authoritative.
+.. glossary::
+
+   Null Type
+      Array where all values are null.
+
+   Boolean Type
+      Array of bit-packed values.
+
+   Int Type
+      Array of signed or unsigned integers with 8, 16, 32 or 64 bit width.
+
+   Floating Point Type
+      Array of floating point numbers with half, single or double precision.
+
+   .. TODO: list other types if we agree to keep the glossary
+
+
+Types and their respective Physical Memory Layout
+-------------------------------------------------
+
++--------------------+----------------------------------+------------------------------+
+| Type               | Physical Memory Layout           | Additional info stored       |
++====================+==================================+==============================+
+| **Primitive**      |                                  |                              |
++--------------------+----------------------------------+------------------------------+
+| Null               | Null Layout                      | /                            |
++--------------------+----------------------------------+------------------------------+
+| Boolean            | Fixed-size Primitive Layout      | values bit-packed            |

Review Comment:
   Would the table header serve this missing information? Rendered version: http://crossbow.voltrondata.com/pr_docs/41795/format/Columnar.html#types-and-their-respective-physical-memory-layout
   
   What I could also do is to repeat the table header in between also (before nested and special)



-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-14752: [Docs] List the logical types in Columnar.rst [arrow]

Posted by "AlenkaF (via GitHub)" <gi...@apache.org>.
AlenkaF commented on PR #41795:
URL: https://github.com/apache/arrow/pull/41795#issuecomment-2147584517

   > I know of at least one previous discussion regarding the term "logical type". This PR may not be the place to do it, but readers that are familiar with existing arrow implementations may be confused because `Schema.fbs`, while authoritative, parameterizes types differently than most implementations (e.g., pretty much every implementation has an `pyarrow.int32()` not `pyarrow.int(32)`). I think this only affects `Int`, `Date`, `Time`, and `FloatingPoint`, and ("types" that are parameterized differently in pyarrow vs. Schema.fbs.
   > 
   > (I am not sure the best way to incorporate that here or if it's a battle for another day 🙂 )
   
   Ha. Yes, this is true. Maybe if the title in the table is changed from "Additional info stored" to "Parameters" it is clearer and then, I guess, it is up to the implementation to decide if the parameter defines a separate type (`int32`) or is actually a parameter of the type (`int(bit_width=32, is_signed=False)`).


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-14752: [Docs] List the logical types in Columnar.rst [arrow]

Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on PR #41795:
URL: https://github.com/apache/arrow/pull/41795#issuecomment-2147546394

   I've always been frustrated with the state of the columnar format spec, as I found the confusion between concepts there quite frustrating (for example, it uses the term "logical type" throughout, even though that term doesn't appear elsewhere).
   
   That said, I don't think this PR makes things less confusion, on the contrary. 


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-14752: [Docs] List the logical types in Columnar.rst [arrow]

Posted by "paleolimbot (via GitHub)" <gi...@apache.org>.
paleolimbot commented on PR #41795:
URL: https://github.com/apache/arrow/pull/41795#issuecomment-2147711301

   > Maybe if the title in the table is changed from "Additional info stored" to "Parameters"
   
   Or perhaps just a note that most implementations expand parameterized types such as ... to make it more convenient to refer to commonly-used parameterizations of these types? (All optional and/or battle for another PR)


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-14752: [Docs] List the logical types in Columnar.rst [arrow]

Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on PR #41795:
URL: https://github.com/apache/arrow/pull/41795#issuecomment-2147575991

   > I agree and share the frustration but am sure we will improve, one step at the time ;)
   
   Definitely :-) I am trying my hand on an alternate set of changes right now, hopefully we can converge on something.


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-14752: [Docs] List the logical types in Columnar.rst [arrow]

Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on code in PR #41795:
URL: https://github.com/apache/arrow/pull/41795#discussion_r1626011600


##########
docs/source/format/Columnar.rst:
##########
@@ -1078,8 +1078,95 @@ Arrow columnar format. Each logical type uses one of the above
 physical layouts. Nested logical types may have different physical
 layouts depending on the particular realization of the type.
 
-We do not go into detail about the logical types definitions in this
-document as we consider `Schema.fbs`_ to be authoritative.
+.. glossary::
+
+   Null Type
+      Array where all values are null.
+
+   Boolean Type
+      Array of bit-packed values.

Review Comment:
   "bit-packed" confuses the data type with its physical layout IMHO.



-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-14752: [Docs] List the logical types in Columnar.rst [arrow]

Posted by "AlenkaF (via GitHub)" <gi...@apache.org>.
AlenkaF closed pull request #41795: GH-14752: [Docs] List the logical types in Columnar.rst
URL: https://github.com/apache/arrow/pull/41795


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-14752: [Docs] List the logical types in Columnar.rst [arrow]

Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on code in PR #41795:
URL: https://github.com/apache/arrow/pull/41795#discussion_r1626007871


##########
docs/source/format/Columnar.rst:
##########
@@ -1078,8 +1078,95 @@ Arrow columnar format. Each logical type uses one of the above
 physical layouts. Nested logical types may have different physical
 layouts depending on the particular realization of the type.
 
-We do not go into detail about the logical types definitions in this
-document as we consider `Schema.fbs`_ to be authoritative.
+.. glossary::
+
+   Null Type
+      Array where all values are null.
+
+   Boolean Type
+      Array of bit-packed values.
+
+   Int Type
+      Array of signed or unsigned integers with 8, 16, 32 or 64 bit width.
+
+   Floating Point Type
+      Array of floating point numbers with half, single or double precision.
+
+   .. TODO: list other types if we agree to keep the glossary
+
+
+Types and their respective Physical Memory Layout
+-------------------------------------------------
+
++--------------------+----------------------------------+------------------------------+
+| Type               | Physical Memory Layout           | Additional info stored       |

Review Comment:
   I'm not sure what "additional info" alludes to? This seems to be mostly type parameters, but not only. Mixing concepts together like this feels confusing to me.



-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-14752: [Docs] List the logical types in Columnar.rst [arrow]

Posted by "AlenkaF (via GitHub)" <gi...@apache.org>.
AlenkaF commented on code in PR #41795:
URL: https://github.com/apache/arrow/pull/41795#discussion_r1626025548


##########
docs/source/format/Columnar.rst:
##########
@@ -1078,8 +1078,95 @@ Arrow columnar format. Each logical type uses one of the above
 physical layouts. Nested logical types may have different physical
 layouts depending on the particular realization of the type.
 
-We do not go into detail about the logical types definitions in this
-document as we consider `Schema.fbs`_ to be authoritative.
+.. glossary::
+
+   Null Type
+      Array where all values are null.
+
+   Boolean Type
+      Array of bit-packed values.
+
+   Int Type
+      Array of signed or unsigned integers with 8, 16, 32 or 64 bit width.
+
+   Floating Point Type
+      Array of floating point numbers with half, single or double precision.
+
+   .. TODO: list other types if we agree to keep the glossary
+
+
+Types and their respective Physical Memory Layout
+-------------------------------------------------
+
++--------------------+----------------------------------+------------------------------+
+| Type               | Physical Memory Layout           | Additional info stored       |

Review Comment:
   I added all additional parameters from `Schema.fbs` and only removed some from `Dictionary`, I think, because those are used for IPC and not for the format.



-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-14752: [Docs] List the logical types in Columnar.rst [arrow]

Posted by "AlenkaF (via GitHub)" <gi...@apache.org>.
AlenkaF commented on PR #41795:
URL: https://github.com/apache/arrow/pull/41795#issuecomment-2147588840

   Linking the html version here, if it helps: http://crossbow.voltrondata.com/pr_docs/41795/format/Columnar.html#types-and-their-respective-physical-memory-layout


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-14752: [Docs] List the logical types in Columnar.rst [arrow]

Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on code in PR #41795:
URL: https://github.com/apache/arrow/pull/41795#discussion_r1626004101


##########
docs/source/format/Columnar.rst:
##########
@@ -1078,8 +1078,95 @@ Arrow columnar format. Each logical type uses one of the above
 physical layouts. Nested logical types may have different physical
 layouts depending on the particular realization of the type.
 
-We do not go into detail about the logical types definitions in this
-document as we consider `Schema.fbs`_ to be authoritative.
+.. glossary::

Review Comment:
   I think the [glossary](https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html#glossary) directive in Sphinx is global, and we already have a glossary elsewhere, so this could interfere.



-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org