You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@graphar.apache.org by "Sober7135 (via GitHub)" <gi...@apache.org> on 2025/09/04 11:44:47 UTC
[D] Any plans to add narrower ints (Int8/Int16) and unsigned (UInt8/16/32/64)? [incubator-graphar]
GitHub user Sober7135 created a discussion: Any plans to add narrower ints (Int8/Int16) and unsigned (UInt8/16/32/64)?
Hi! Quick question — the spec/API seems to have Int32/Int64 but not Int8/Int16 or any unsigned types. Are there plans to add Int8/Int16 and UInt8/UInt16/UInt32/UInt64?
Thanks!
GitHub link: https://github.com/apache/incubator-graphar/discussions/744
----
This is an automatically sent email for commits@graphar.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@graphar.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@graphar.apache.org
For additional commands, e-mail: commits-help@graphar.apache.org
Re: [D] Any plans to add narrower ints (Int8/Int16) and unsigned (UInt8/16/32/64)? [incubator-graphar]
Posted by "Sober7135 (via GitHub)" <gi...@apache.org>.
GitHub user Sober7135 added a comment to the discussion: Any plans to add narrower ints (Int8/Int16) and unsigned (UInt8/16/32/64)?
Thanks for the quick reply! I’m integrating GraphAr with [miniGU](https://www.github.com/TuGraph-family/miniGU). miniGU’s type system includes Int8/Int16 and UInt8/UInt16/UInt32/UInt64. Direct support would enable lossless schema parity; upcasting to Int32/Int64 drops the unsigned/narrow semantics.
GitHub link: https://github.com/apache/incubator-graphar/discussions/744#discussioncomment-14307114
----
This is an automatically sent email for commits@graphar.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@graphar.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@graphar.apache.org
For additional commands, e-mail: commits-help@graphar.apache.org
Re: [D] Any plans to add narrower ints (Int8/Int16) and unsigned (UInt8/16/32/64)? [incubator-graphar]
Posted by "yangxk1 (via GitHub)" <gi...@apache.org>.
GitHub user yangxk1 added a comment to the discussion: Any plans to add narrower ints (Int8/Int16) and unsigned (UInt8/16/32/64)?
Hi, @Sober7135, thanks for bring that up. The data types currently supported take into account the common support of parquet/orc, etc., and will consider supporting more data formats in the future. Currently, unsupported formats can be covered using other formats (refer to https://parquet.apache.org/docs/file-format/types/)
Could you describe the use case or scenario you wan to use GraphAr which need those types?
GitHub link: https://github.com/apache/incubator-graphar/discussions/744#discussioncomment-14306918
----
This is an automatically sent email for commits@graphar.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@graphar.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@graphar.apache.org
For additional commands, e-mail: commits-help@graphar.apache.org
Re: [D] Any plans to add narrower ints (Int8/Int16) and unsigned (UInt8/16/32/64)? [incubator-graphar]
Posted by "yangxk1 (via GitHub)" <gi...@apache.org>.
GitHub user yangxk1 edited a comment on the discussion: Any plans to add narrower ints (Int8/Int16) and unsigned (UInt8/16/32/64)?
Hi, @Sober7135, thanks for bring that up. The data types currently supported take into account the common support of parquet/orc, etc., and will consider supporting more data types in the future. Currently, unsupported types can be covered using other types (refer to https://parquet.apache.org/docs/file-format/types/)
Could you describe the use case or scenario you wan to use GraphAr which need those types?
GitHub link: https://github.com/apache/incubator-graphar/discussions/744#discussioncomment-14306918
----
This is an automatically sent email for commits@graphar.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@graphar.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@graphar.apache.org
For additional commands, e-mail: commits-help@graphar.apache.org
Re: [D] Any plans to add narrower ints (Int8/Int16) and unsigned (UInt8/16/32/64)? [incubator-graphar]
Posted by "yangxk1 (via GitHub)" <gi...@apache.org>.
GitHub user yangxk1 added a comment to the discussion: Any plans to add narrower ints (Int8/Int16) and unsigned (UInt8/16/32/64)?
Thanks for your interest in GraphAr.
imo, GAR is based on Apache Arrow. Since Arrow already supports unsigned types and int8/int16, adding support for these types in GraphAr only requires updating [types.cc](https://github.com/apache/incubator-graphar/blob/main/cpp/src/graphar/types.cc).
Whether they are supported at the physical level depends on the chosen storage format (CSV/Parquet/ORC). For example, int8 and int16 can be stored in ORC ([reference](https://orc.apache.org/docs/types.html)).
I noticed that miniGU is a rust repository,the arrow also has a rust version :https://arrow.apache.org/rust/arrow/index.html
GitHub link: https://github.com/apache/incubator-graphar/discussions/744#discussioncomment-14307341
----
This is an automatically sent email for commits@graphar.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@graphar.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@graphar.apache.org
For additional commands, e-mail: commits-help@graphar.apache.org