You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fury.apache.org by "chaokunyang (via GitHub)" <gi...@apache.org> on 2024/04/06 09:07:31 UTC
[PR] feat(spec): add xlang type mapping [incubator-fury]
chaokunyang opened a new pull request, #1468:
URL: https://github.com/apache/incubator-fury/pull/1468
This PR add xlang serialization type mapping to complete the xlang spec in #1413 .
The changes include:
- Xlang type mapping
- Remove fixed_int32/fixed_int64 type since it's duplicate with `int32`/`int64`
--
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: commits-unsubscribe@fury.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org
For additional commands, e-mail: commits-help@fury.apache.org
Re: [PR] feat(spec): add xlang type mapping [incubator-fury]
Posted by "LiangliangSui (via GitHub)" <gi...@apache.org>.
LiangliangSui commented on code in PR #1468:
URL: https://github.com/apache/incubator-fury/pull/1468#discussion_r1554628240
##########
docs/guide/xlang_type_mapping.md:
##########
@@ -4,4 +4,75 @@ sidebar_position: 3
id: xlang_type_mapping
---
-Coming soon.
+Note:
+
+- For type definition, see [Type Systems in Spec](../specification/xlang_serialization_spec.md#type-systems)
+- `int16_t[x]/vector<~>` indicates `int16_t[x]/vector<int16_t>`
+- The cross-language serialization is not stable, do not use it in your production environment.
+
+# Type Mapping
+
+| Type | Type ID | Java | Python | Javascript | C++ | Golang | Rust |
+|--------------------|---------|-----------------|----------------------|-----------------|--------------------------------|------------------|------------------|
+| bool | 1 | bool/Boolean | bool | Boolean | bool | bool | bool |
+| int8 | 2 | byte/Byte | int/pyfury.Int8 | Type.int8() | int8_t | int8 | i8 |
+| int16 | 3 | short/Short | int/pyfury.Int16 | Type.int16() | int16_t | int16 | i6 |
+| int32 | 4 | int/Integer | int/pyfury.Int32 | Type.int32() | int32_t | int32 | i32 |
+| var_int32 | 5 | int/Integer | int/pyfury.VarInt32 | Type.varint32() | fury::varint32_t | fury.varint32 | fury::varint32 |
+| int64 | 6 | long/Long | int/pyfury.Int64 | Type.int64() | int64_t | int64 | i64 |
+| var_int64 | 7 | long/Long | int/pyfury.VarInt64 | Type.varint64() | fury::varint64_t | fury.varint64 | fury::varint64 |
+| sli_int64 | 8 | long/Long | int/pyfury.SliInt64 | Type.sliint64() | fury::sliint64_t | fury.sliint64 | fury::sliint64 |
+| float16 | 9 | float/Float | float/pyfury.Float16 | Type.float16() | fury::float16_t | fury.float16 | fury::f16 |
+| float32 | 10 | float/Float | float/pyfury.Float32 | Type.float32() | float | float32 | f32 |
+| float64 | 11 | double/Double | float/pyfury.Float64 | Type.float64() | double | float64 | f64 |
+| string | 12 | String | str | String | string | string | String/str |
+| enum | 13 | Enum subclasses | enum subclasses | / | enum | / | enum |
+| list | 14 | List/Collection | list/tuple | array | vector | slice | Vec |
+| set | 15 | Set | set | / | set | fury.Set | Set |
+| map | 16 | Map | dict | Map | unordered_map | map | HashMap |
+| duration | 17 | Duration | timedelta | Number | duration | Duration | Duration |
+| timestamp | 18 | Instant | datetime | Number | std::chrono::nanoseconds | Time | DateTime |
+| decimal | 19 | BigDecimal | Decimal | bigint | / | / | / |
+| array | 20 | array | np.ndarray | / | / | array/slice | Vec |
+| bool_array | 21 | bool[] | ndarray(np.bool_) | / | `bool[x]` | `[x]bool/[]~` | `Vec<bool>` |
+| int16_array | 22 | short[] | ndarray(int16) | / | `int16_t[x]/vector<~>` | `[x]int16/[]~` | `Vec<i16>` |
+| int32_array | 23 | int[] | ndarray(int32) | / | `int32_t[x]/vector<~>` | `[x]int32/[]~` | `Vec<i32>` |
+| int64_array | 24 | long[] | ndarray(int64) | / | `int64_t[x]/vector<~>` | `[x]int64/[]~` | `Vec<i64>` |
+| float16_array | 25 | float[] | ndarray(float16) | / | `fury::float16_t[x]/vector<~>` | `[x]float16/[]~` | `Vec<fury::f16>` |
+| float32_array | 26 | float[] | ndarray(float32) | / | `float[x]/vector<~>` | `[x]float32/[]~` | `Vec<f32>` |
+| float64_array | 27 | float[] | ndarray(float64) | / | `double[x]/vector<~>` | `[x]float64/[]~` | `Vec<f64>` |
Review Comment:
`float[]` should be `double[]` in java `float64_array`
--
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: commits-unsubscribe@fury.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org
For additional commands, e-mail: commits-help@fury.apache.org
Re: [PR] feat(spec): add xlang type mapping [incubator-fury]
Posted by "theweipeng (via GitHub)" <gi...@apache.org>.
theweipeng commented on code in PR #1468:
URL: https://github.com/apache/incubator-fury/pull/1468#discussion_r1554556705
##########
docs/guide/xlang_type_mapping.md:
##########
@@ -4,4 +4,75 @@ sidebar_position: 3
id: xlang_type_mapping
---
-Coming soon.
+Note:
+
+- For type definition, see [Type Systems in Spec](../specification/xlang_serialization_spec.md#type-systems)
+- `int16_t[x]/vector<~>` indicates `int16_t[x]/vector<int16_t>`
+- The cross-language serialization is not stable, do not use it in your production environment.
+
+# Type Mapping
+
+| Type | Type ID | Java | Python | Javascript | C++ | Golang | Rust |
+|--------------------|---------|-----------------|----------------------|-----------------|--------------------------------|------------------|------------------|
+| bool | 1 | bool/Boolean | bool | Boolean | bool | bool | bool |
+| int8 | 2 | byte/Byte | int/pyfury.Int8 | Type.int8() | int8_t | int8 | i8 |
+| int16 | 3 | short/Short | int/pyfury.Int16 | Type.int16() | int16_t | int16 | i6 |
+| int32 | 4 | int/Integer | int/pyfury.Int32 | Type.int32() | int32_t | int32 | i32 |
+| var_int32 | 5 | int/Integer | int/pyfury.VarInt32 | Type.varint32() | fury::varint32_t | fury.varint32 | fury::varint32 |
+| int64 | 6 | long/Long | int/pyfury.Int64 | Type.int64() | int64_t | int64 | i64 |
+| var_int64 | 7 | long/Long | int/pyfury.VarInt64 | Type.varint64() | fury::varint64_t | fury.varint64 | fury::varint64 |
+| sli_int64 | 8 | long/Long | int/pyfury.SliInt64 | Type.sliint64() | fury::sliint64_t | fury.sliint64 | fury::sliint64 |
+| float16 | 9 | float/Float | float/pyfury.Float16 | Type.float16() | fury::float16_t | fury.float16 | fury::f16 |
+| float32 | 10 | float/Float | float/pyfury.Float32 | Type.float32() | float | float32 | f32 |
+| float64 | 11 | double/Double | float/pyfury.Float64 | Type.float64() | double | float64 | f64 |
+| string | 12 | String | str | String | string | string | String/str |
+| enum | 13 | Enum subclasses | enum subclasses | / | enum | / | enum |
+| list | 14 | List/Collection | list/tuple | array | vector | slice | Vec |
+| set | 15 | Set | set | / | set | fury.Set | Set |
+| map | 16 | Map | dict | Map | unordered_map | map | HashMap |
+| duration | 17 | Duration | timedelta | Number | duration | Duration | Duration |
+| timestamp | 18 | Instant | datetime | Number | std::chrono::nanoseconds | Time | DateTime |
+| decimal | 19 | BigDecimal | Decimal | bigint | / | / | / |
+| array | 20 | array | np.ndarray | / | / | array/slice | Vec |
+| bool_array | 21 | bool[] | ndarray(np.bool_) | / | `bool[x]` | `[x]bool/[]~` | `Vec<bool>` |
+| int16_array | 22 | short[] | ndarray(int16) | / | `int16_t[x]/vector<~>` | `[x]int16/[]~` | `Vec<i16>` |
+| int32_array | 23 | int[] | ndarray(int32) | / | `int32_t[x]/vector<~>` | `[x]int32/[]~` | `Vec<i32>` |
+| int64_array | 24 | long[] | ndarray(int64) | / | `int64_t[x]/vector<~>` | `[x]int64/[]~` | `Vec<i64>` |
+| float16_array | 25 | float[] | ndarray(float16) | / | `fury::float16_t[x]/vector<~>` | `[x]float16/[]~` | `Vec<fury::f16>` |
+| float32_array | 26 | float[] | ndarray(float32) | / | `float[x]/vector<~>` | `[x]float32/[]~` | `Vec<f32>` |
+| float64_array | 27 | float[] | ndarray(float64) | / | `double[x]/vector<~>` | `[x]float64/[]~` | `Vec<f64>` |
+| tensor | 28 | / | / | / | / | / | / |
+| sparse tensor | 29 | / | / | / | / | / | / |
+| arrow record batch | 30 | / | / | / | / | / | / |
+| arrow table | 31 | / | / | / | / | / | / |
Review Comment:
Is it a typo? I noticed that many type assigned 9
--
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: commits-unsubscribe@fury.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org
For additional commands, e-mail: commits-help@fury.apache.org
Re: [PR] feat(spec): add xlang type mapping [incubator-fury]
Posted by "theweipeng (via GitHub)" <gi...@apache.org>.
theweipeng merged PR #1468:
URL: https://github.com/apache/incubator-fury/pull/1468
--
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: commits-unsubscribe@fury.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org
For additional commands, e-mail: commits-help@fury.apache.org
Re: [PR] feat(spec): add xlang type mapping [incubator-fury]
Posted by "chaokunyang (via GitHub)" <gi...@apache.org>.
chaokunyang commented on PR #1468:
URL: https://github.com/apache/incubator-fury/pull/1468#issuecomment-2041027971
BYW, I was thinking whether we should make all type id starts from 0, and let users to register type id from 64. In this way, we don't have to add ID by 64, and there won't be two kinds of ID to understand. One is the registed ID, the other is internal ID. But the drawback is that users must understand the concept of 64 and the pre-registered ID.
--
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: commits-unsubscribe@fury.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org
For additional commands, e-mail: commits-help@fury.apache.org
Re: [PR] feat(spec): add xlang type mapping [incubator-fury]
Posted by "LiangliangSui (via GitHub)" <gi...@apache.org>.
LiangliangSui commented on code in PR #1468:
URL: https://github.com/apache/incubator-fury/pull/1468#discussion_r1554628240
##########
docs/guide/xlang_type_mapping.md:
##########
@@ -4,4 +4,75 @@ sidebar_position: 3
id: xlang_type_mapping
---
-Coming soon.
+Note:
+
+- For type definition, see [Type Systems in Spec](../specification/xlang_serialization_spec.md#type-systems)
+- `int16_t[x]/vector<~>` indicates `int16_t[x]/vector<int16_t>`
+- The cross-language serialization is not stable, do not use it in your production environment.
+
+# Type Mapping
+
+| Type | Type ID | Java | Python | Javascript | C++ | Golang | Rust |
+|--------------------|---------|-----------------|----------------------|-----------------|--------------------------------|------------------|------------------|
+| bool | 1 | bool/Boolean | bool | Boolean | bool | bool | bool |
+| int8 | 2 | byte/Byte | int/pyfury.Int8 | Type.int8() | int8_t | int8 | i8 |
+| int16 | 3 | short/Short | int/pyfury.Int16 | Type.int16() | int16_t | int16 | i6 |
+| int32 | 4 | int/Integer | int/pyfury.Int32 | Type.int32() | int32_t | int32 | i32 |
+| var_int32 | 5 | int/Integer | int/pyfury.VarInt32 | Type.varint32() | fury::varint32_t | fury.varint32 | fury::varint32 |
+| int64 | 6 | long/Long | int/pyfury.Int64 | Type.int64() | int64_t | int64 | i64 |
+| var_int64 | 7 | long/Long | int/pyfury.VarInt64 | Type.varint64() | fury::varint64_t | fury.varint64 | fury::varint64 |
+| sli_int64 | 8 | long/Long | int/pyfury.SliInt64 | Type.sliint64() | fury::sliint64_t | fury.sliint64 | fury::sliint64 |
+| float16 | 9 | float/Float | float/pyfury.Float16 | Type.float16() | fury::float16_t | fury.float16 | fury::f16 |
+| float32 | 10 | float/Float | float/pyfury.Float32 | Type.float32() | float | float32 | f32 |
+| float64 | 11 | double/Double | float/pyfury.Float64 | Type.float64() | double | float64 | f64 |
+| string | 12 | String | str | String | string | string | String/str |
+| enum | 13 | Enum subclasses | enum subclasses | / | enum | / | enum |
+| list | 14 | List/Collection | list/tuple | array | vector | slice | Vec |
+| set | 15 | Set | set | / | set | fury.Set | Set |
+| map | 16 | Map | dict | Map | unordered_map | map | HashMap |
+| duration | 17 | Duration | timedelta | Number | duration | Duration | Duration |
+| timestamp | 18 | Instant | datetime | Number | std::chrono::nanoseconds | Time | DateTime |
+| decimal | 19 | BigDecimal | Decimal | bigint | / | / | / |
+| array | 20 | array | np.ndarray | / | / | array/slice | Vec |
+| bool_array | 21 | bool[] | ndarray(np.bool_) | / | `bool[x]` | `[x]bool/[]~` | `Vec<bool>` |
+| int16_array | 22 | short[] | ndarray(int16) | / | `int16_t[x]/vector<~>` | `[x]int16/[]~` | `Vec<i16>` |
+| int32_array | 23 | int[] | ndarray(int32) | / | `int32_t[x]/vector<~>` | `[x]int32/[]~` | `Vec<i32>` |
+| int64_array | 24 | long[] | ndarray(int64) | / | `int64_t[x]/vector<~>` | `[x]int64/[]~` | `Vec<i64>` |
+| float16_array | 25 | float[] | ndarray(float16) | / | `fury::float16_t[x]/vector<~>` | `[x]float16/[]~` | `Vec<fury::f16>` |
+| float32_array | 26 | float[] | ndarray(float32) | / | `float[x]/vector<~>` | `[x]float32/[]~` | `Vec<f32>` |
+| float64_array | 27 | float[] | ndarray(float64) | / | `double[x]/vector<~>` | `[x]float64/[]~` | `Vec<f64>` |
Review Comment:
`float[]` should be `double[]`
##########
docs/guide/xlang_type_mapping.md:
##########
@@ -4,4 +4,75 @@ sidebar_position: 3
id: xlang_type_mapping
---
-Coming soon.
+Note:
+
+- For type definition, see [Type Systems in Spec](../specification/xlang_serialization_spec.md#type-systems)
+- `int16_t[x]/vector<~>` indicates `int16_t[x]/vector<int16_t>`
+- The cross-language serialization is not stable, do not use it in your production environment.
+
+# Type Mapping
+
+| Type | Type ID | Java | Python | Javascript | C++ | Golang | Rust |
+|--------------------|---------|-----------------|----------------------|-----------------|--------------------------------|------------------|------------------|
+| bool | 1 | bool/Boolean | bool | Boolean | bool | bool | bool |
+| int8 | 2 | byte/Byte | int/pyfury.Int8 | Type.int8() | int8_t | int8 | i8 |
+| int16 | 3 | short/Short | int/pyfury.Int16 | Type.int16() | int16_t | int16 | i6 |
+| int32 | 4 | int/Integer | int/pyfury.Int32 | Type.int32() | int32_t | int32 | i32 |
+| var_int32 | 5 | int/Integer | int/pyfury.VarInt32 | Type.varint32() | fury::varint32_t | fury.varint32 | fury::varint32 |
+| int64 | 6 | long/Long | int/pyfury.Int64 | Type.int64() | int64_t | int64 | i64 |
+| var_int64 | 7 | long/Long | int/pyfury.VarInt64 | Type.varint64() | fury::varint64_t | fury.varint64 | fury::varint64 |
+| sli_int64 | 8 | long/Long | int/pyfury.SliInt64 | Type.sliint64() | fury::sliint64_t | fury.sliint64 | fury::sliint64 |
+| float16 | 9 | float/Float | float/pyfury.Float16 | Type.float16() | fury::float16_t | fury.float16 | fury::f16 |
+| float32 | 10 | float/Float | float/pyfury.Float32 | Type.float32() | float | float32 | f32 |
+| float64 | 11 | double/Double | float/pyfury.Float64 | Type.float64() | double | float64 | f64 |
+| string | 12 | String | str | String | string | string | String/str |
+| enum | 13 | Enum subclasses | enum subclasses | / | enum | / | enum |
+| list | 14 | List/Collection | list/tuple | array | vector | slice | Vec |
+| set | 15 | Set | set | / | set | fury.Set | Set |
+| map | 16 | Map | dict | Map | unordered_map | map | HashMap |
+| duration | 17 | Duration | timedelta | Number | duration | Duration | Duration |
+| timestamp | 18 | Instant | datetime | Number | std::chrono::nanoseconds | Time | DateTime |
+| decimal | 19 | BigDecimal | Decimal | bigint | / | / | / |
+| array | 20 | array | np.ndarray | / | / | array/slice | Vec |
+| bool_array | 21 | bool[] | ndarray(np.bool_) | / | `bool[x]` | `[x]bool/[]~` | `Vec<bool>` |
+| int16_array | 22 | short[] | ndarray(int16) | / | `int16_t[x]/vector<~>` | `[x]int16/[]~` | `Vec<i16>` |
+| int32_array | 23 | int[] | ndarray(int32) | / | `int32_t[x]/vector<~>` | `[x]int32/[]~` | `Vec<i32>` |
+| int64_array | 24 | long[] | ndarray(int64) | / | `int64_t[x]/vector<~>` | `[x]int64/[]~` | `Vec<i64>` |
+| float16_array | 25 | float[] | ndarray(float16) | / | `fury::float16_t[x]/vector<~>` | `[x]float16/[]~` | `Vec<fury::f16>` |
+| float32_array | 26 | float[] | ndarray(float32) | / | `float[x]/vector<~>` | `[x]float32/[]~` | `Vec<f32>` |
+| float64_array | 27 | float[] | ndarray(float64) | / | `double[x]/vector<~>` | `[x]float64/[]~` | `Vec<f64>` |
+| tensor | 28 | / | / | / | / | / | / |
+| sparse tensor | 29 | / | / | / | / | / | / |
+| arrow record batch | 30 | / | / | / | / | / | / |
+| arrow table | 31 | / | / | / | / | / | / |
+
+# Type annotation(not implemented)
+
+Due to differences between type systems of languages, those types can't be mapped one-to-one between languages. Users
+can provide meta hints for fields of a type, or for the whole type. Such information can be provided in other languages
+too:
+
+- java: use annotation.
+- cpp: use macro and template.
+- golang: use struct tag.
+- python: use typehint.
+- rust: use macro.
+
+Here is en example:
+
+- Java:
+ ```java
+ class Foo {
+ @Int32Type(varint = true)
+ int f1;
+ List<@Int32Type(varint = true) Integer> f2;
+ }
+ ```
+- Python:
+
+```python
Review Comment:
Nit: should be indented
##########
docs/guide/xlang_type_mapping.md:
##########
@@ -4,4 +4,75 @@ sidebar_position: 3
id: xlang_type_mapping
---
-Coming soon.
+Note:
+
+- For type definition, see [Type Systems in Spec](../specification/xlang_serialization_spec.md#type-systems)
+- `int16_t[x]/vector<~>` indicates `int16_t[x]/vector<int16_t>`
+- The cross-language serialization is not stable, do not use it in your production environment.
+
+# Type Mapping
+
+| Type | Type ID | Java | Python | Javascript | C++ | Golang | Rust |
+|--------------------|---------|-----------------|----------------------|-----------------|--------------------------------|------------------|------------------|
+| bool | 1 | bool/Boolean | bool | Boolean | bool | bool | bool |
+| int8 | 2 | byte/Byte | int/pyfury.Int8 | Type.int8() | int8_t | int8 | i8 |
+| int16 | 3 | short/Short | int/pyfury.Int16 | Type.int16() | int16_t | int16 | i6 |
+| int32 | 4 | int/Integer | int/pyfury.Int32 | Type.int32() | int32_t | int32 | i32 |
+| var_int32 | 5 | int/Integer | int/pyfury.VarInt32 | Type.varint32() | fury::varint32_t | fury.varint32 | fury::varint32 |
+| int64 | 6 | long/Long | int/pyfury.Int64 | Type.int64() | int64_t | int64 | i64 |
+| var_int64 | 7 | long/Long | int/pyfury.VarInt64 | Type.varint64() | fury::varint64_t | fury.varint64 | fury::varint64 |
+| sli_int64 | 8 | long/Long | int/pyfury.SliInt64 | Type.sliint64() | fury::sliint64_t | fury.sliint64 | fury::sliint64 |
+| float16 | 9 | float/Float | float/pyfury.Float16 | Type.float16() | fury::float16_t | fury.float16 | fury::f16 |
+| float32 | 10 | float/Float | float/pyfury.Float32 | Type.float32() | float | float32 | f32 |
+| float64 | 11 | double/Double | float/pyfury.Float64 | Type.float64() | double | float64 | f64 |
+| string | 12 | String | str | String | string | string | String/str |
+| enum | 13 | Enum subclasses | enum subclasses | / | enum | / | enum |
+| list | 14 | List/Collection | list/tuple | array | vector | slice | Vec |
+| set | 15 | Set | set | / | set | fury.Set | Set |
+| map | 16 | Map | dict | Map | unordered_map | map | HashMap |
+| duration | 17 | Duration | timedelta | Number | duration | Duration | Duration |
+| timestamp | 18 | Instant | datetime | Number | std::chrono::nanoseconds | Time | DateTime |
+| decimal | 19 | BigDecimal | Decimal | bigint | / | / | / |
+| array | 20 | array | np.ndarray | / | / | array/slice | Vec |
+| bool_array | 21 | bool[] | ndarray(np.bool_) | / | `bool[x]` | `[x]bool/[]~` | `Vec<bool>` |
+| int16_array | 22 | short[] | ndarray(int16) | / | `int16_t[x]/vector<~>` | `[x]int16/[]~` | `Vec<i16>` |
+| int32_array | 23 | int[] | ndarray(int32) | / | `int32_t[x]/vector<~>` | `[x]int32/[]~` | `Vec<i32>` |
+| int64_array | 24 | long[] | ndarray(int64) | / | `int64_t[x]/vector<~>` | `[x]int64/[]~` | `Vec<i64>` |
+| float16_array | 25 | float[] | ndarray(float16) | / | `fury::float16_t[x]/vector<~>` | `[x]float16/[]~` | `Vec<fury::f16>` |
+| float32_array | 26 | float[] | ndarray(float32) | / | `float[x]/vector<~>` | `[x]float32/[]~` | `Vec<f32>` |
+| float64_array | 27 | float[] | ndarray(float64) | / | `double[x]/vector<~>` | `[x]float64/[]~` | `Vec<f64>` |
+| tensor | 28 | / | / | / | / | / | / |
+| sparse tensor | 29 | / | / | / | / | / | / |
+| arrow record batch | 30 | / | / | / | / | / | / |
+| arrow table | 31 | / | / | / | / | / | / |
+
+# Type annotation(not implemented)
+
+Due to differences between type systems of languages, those types can't be mapped one-to-one between languages. Users
+can provide meta hints for fields of a type, or for the whole type. Such information can be provided in other languages
+too:
+
+- java: use annotation.
+- cpp: use macro and template.
+- golang: use struct tag.
+- python: use typehint.
Review Comment:
Can python also support using decorator to achieve this function?
--
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: commits-unsubscribe@fury.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org
For additional commands, e-mail: commits-help@fury.apache.org
Re: [PR] feat(spec): add xlang type mapping [incubator-fury]
Posted by "chaokunyang (via GitHub)" <gi...@apache.org>.
chaokunyang commented on PR #1468:
URL: https://github.com/apache/incubator-fury/pull/1468#issuecomment-2041463106
@LiangliangSui @theweipeng @PragmaTwice I will revert this PR first, and submit a new PR for review.
--
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: commits-unsubscribe@fury.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org
For additional commands, e-mail: commits-help@fury.apache.org