Re: [PR] feat: support ser/deser of value [iceberg-rust]

2023-11-13 Thread via GitHub
JanKaul commented on code in PR #82: URL: https://github.com/apache/iceberg-rust/pull/82#discussion_r1392082466 ## crates/iceberg/src/avro/schema.rs: ## @@ -233,23 +222,46 @@ pub(crate) fn schema_to_avro_schema(name: impl ToString, schema: &Schema) -> Res visit_schema(sche

Re: [PR] feat: support ser/deser of value [iceberg-rust]

2023-11-13 Thread via GitHub
JanKaul commented on code in PR #82: URL: https://github.com/apache/iceberg-rust/pull/82#discussion_r1392079536 ## crates/iceberg/src/spec/values.rs: ## @@ -893,9 +925,9 @@ impl Literal { PrimitiveLiteral::Binary(_) => Type::Primitive(PrimitiveType::Binary),

Re: [PR] feat: support ser/deser of value [iceberg-rust]

2023-11-13 Thread via GitHub
ZENOTME commented on code in PR #82: URL: https://github.com/apache/iceberg-rust/pull/82#discussion_r1390968160 ## crates/iceberg/src/spec/values.rs: ## @@ -893,9 +925,9 @@ impl Literal { PrimitiveLiteral::Binary(_) => Type::Primitive(PrimitiveType::Binary),

Re: [PR] feat: support ser/deser of value [iceberg-rust]

2023-11-13 Thread via GitHub
liurenjie1024 commented on code in PR #82: URL: https://github.com/apache/iceberg-rust/pull/82#discussion_r1390944513 ## crates/iceberg/src/spec/values.rs: ## @@ -893,9 +925,9 @@ impl Literal { PrimitiveLiteral::Binary(_) => Type::Primitive(PrimitiveType::Binar

Re: [PR] feat: support ser/deser of value [iceberg-rust]

2023-11-13 Thread via GitHub
ZENOTME commented on code in PR #82: URL: https://github.com/apache/iceberg-rust/pull/82#discussion_r1390902968 ## crates/iceberg/src/spec/values.rs: ## @@ -893,9 +925,9 @@ impl Literal { PrimitiveLiteral::Binary(_) => Type::Primitive(PrimitiveType::Binary),

Re: [PR] feat: support ser/deser of value [iceberg-rust]

2023-11-13 Thread via GitHub
ZENOTME commented on code in PR #82: URL: https://github.com/apache/iceberg-rust/pull/82#discussion_r1390890336 ## crates/iceberg/src/avro/schema.rs: ## @@ -441,14 +453,35 @@ impl AvroSchemaVisitor for AvroSchemaToSchema { AvroSchema::Date => Type::Primitive(Primiti

Re: [PR] feat: support ser/deser of value [iceberg-rust]

2023-11-13 Thread via GitHub
ZENOTME commented on code in PR #82: URL: https://github.com/apache/iceberg-rust/pull/82#discussion_r1390885977 ## crates/iceberg/src/avro/schema.rs: ## @@ -233,23 +222,46 @@ pub(crate) fn schema_to_avro_schema(name: impl ToString, schema: &Schema) -> Res visit_schema(sche

Re: [PR] feat: support ser/deser of value [iceberg-rust]

2023-11-13 Thread via GitHub
Fokko merged PR #82: URL: https://github.com/apache/iceberg-rust/pull/82 -- 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: issues-unsubscr...@iceberg.apac

Re: [PR] feat: support ser/deser of value [iceberg-rust]

2023-11-13 Thread via GitHub
Fokko commented on PR #82: URL: https://github.com/apache/iceberg-rust/pull/82#issuecomment-1807742634 I'll move this forward since it has been pending for a while (Sorry for that!). I have one comment about ignoring the scale, which looks incorrect to me. Thanks @ZENOTME for working on thi

Re: [PR] feat: support ser/deser of value [iceberg-rust]

2023-11-13 Thread via GitHub
Fokko commented on code in PR #82: URL: https://github.com/apache/iceberg-rust/pull/82#discussion_r1390768529 ## crates/iceberg/src/avro/schema.rs: ## @@ -233,23 +222,46 @@ pub(crate) fn schema_to_avro_schema(name: impl ToString, schema: &Schema) -> Res visit_schema(schema

Re: [PR] feat: support ser/deser of value [iceberg-rust]

2023-11-08 Thread via GitHub
liurenjie1024 commented on PR #82: URL: https://github.com/apache/iceberg-rust/pull/82#issuecomment-1801698341 cc @Xuanwo @Fokko Any other comments? -- 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 t

Re: [PR] feat: support ser/deser of value [iceberg-rust]

2023-11-04 Thread via GitHub
ZENOTME commented on PR #82: URL: https://github.com/apache/iceberg-rust/pull/82#issuecomment-1793387160 @Fokko Hi, we can run the check again -- 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

Re: [PR] feat: support ser/deser of value [iceberg-rust]

2023-11-01 Thread via GitHub
ZENOTME commented on PR #82: URL: https://github.com/apache/iceberg-rust/pull/82#issuecomment-1788612183 My bad, have fixed the typos now.🥵 -- 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 spe

Re: [PR] feat: support ser/deser of value [iceberg-rust]

2023-10-27 Thread via GitHub
ZENOTME commented on code in PR #82: URL: https://github.com/apache/iceberg-rust/pull/82#discussion_r1374447735 ## crates/iceberg/src/avro/schema.rs: ## @@ -30,6 +32,11 @@ use itertools::{Either, Itertools}; use serde_json::{Number, Value}; const FILED_ID_PROP: &str = "field

Re: [PR] feat: support ser/deser of value [iceberg-rust]

2023-10-26 Thread via GitHub
Xuanwo commented on code in PR #82: URL: https://github.com/apache/iceberg-rust/pull/82#discussion_r1374016647 ## crates/iceberg/src/spec/values.rs: ## @@ -1309,4 +1981,277 @@ mod tests { &Type::Primitive(PrimitiveType::String), ); } + +#[test] +

Re: [PR] feat: support ser/deser of value [iceberg-rust]

2023-10-23 Thread via GitHub
liurenjie1024 commented on PR #82: URL: https://github.com/apache/iceberg-rust/pull/82#issuecomment-1776370231 cc @Fokko @Xuanwo @JanKaul PTAL -- 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

Re: [PR] feat: support ser/deser of value [iceberg-rust]

2023-10-23 Thread via GitHub
liurenjie1024 commented on code in PR #82: URL: https://github.com/apache/iceberg-rust/pull/82#discussion_r1369463348 ## crates/iceberg/src/spec/values.rs: ## @@ -996,10 +1028,593 @@ mod timestamptz { } } +mod _serde { +use std::collections::BTreeMap; + +use crat

Re: [PR] feat: support ser/deser of value [iceberg-rust]

2023-10-23 Thread via GitHub
ZENOTME commented on code in PR #82: URL: https://github.com/apache/iceberg-rust/pull/82#discussion_r1369459787 ## crates/iceberg/src/spec/values.rs: ## @@ -996,10 +1028,593 @@ mod timestamptz { } } +mod _serde { +use std::collections::BTreeMap; + +use crate::{ +

Re: [PR] feat: support ser/deser of value [iceberg-rust]

2023-10-23 Thread via GitHub
liurenjie1024 commented on code in PR #82: URL: https://github.com/apache/iceberg-rust/pull/82#discussion_r1369450219 ## crates/iceberg/src/spec/values.rs: ## @@ -996,10 +1028,593 @@ mod timestamptz { } } +mod _serde { +use std::collections::BTreeMap; + +use crat

Re: [PR] feat: support ser/deser of value [iceberg-rust]

2023-10-23 Thread via GitHub
ZENOTME commented on code in PR #82: URL: https://github.com/apache/iceberg-rust/pull/82#discussion_r1368605517 ## crates/iceberg/src/spec/values.rs: ## @@ -1309,4 +1928,256 @@ mod tests { &Type::Primitive(PrimitiveType::String), ); } + +#[test] +

Re: [PR] feat: support ser/deser of value [iceberg-rust]

2023-10-23 Thread via GitHub
liurenjie1024 commented on code in PR #82: URL: https://github.com/apache/iceberg-rust/pull/82#discussion_r1368190040 ## crates/iceberg/src/avro/schema.rs: ## @@ -431,14 +456,35 @@ impl AvroSchemaVisitor for AvroSchemaToSchema { AvroSchema::Date => Type::Primitive(P

Re: [PR] feat: support ser/deser of value [iceberg-rust]

2023-10-21 Thread via GitHub
ZENOTME commented on code in PR #82: URL: https://github.com/apache/iceberg-rust/pull/82#discussion_r1367767663 ## crates/iceberg/src/spec/values.rs: ## @@ -620,6 +622,47 @@ impl Struct { } } +/// An iterator that moves out of a struct. +pub struct StructIntoIter { +

Re: [PR] feat: support ser/deser of value [iceberg-rust]

2023-10-21 Thread via GitHub
ZENOTME commented on code in PR #82: URL: https://github.com/apache/iceberg-rust/pull/82#discussion_r1367767559 ## crates/iceberg/src/spec/values.rs: ## @@ -996,10 +1039,552 @@ mod timestamptz { } } +mod _serde { +use std::collections::BTreeMap; + +use crate::{ +

Re: [PR] feat: support ser/deser of value [iceberg-rust]

2023-10-21 Thread via GitHub
ZENOTME commented on code in PR #82: URL: https://github.com/apache/iceberg-rust/pull/82#discussion_r1367766620 ## crates/iceberg/src/spec/values.rs: ## @@ -996,10 +1039,552 @@ mod timestamptz { } } +mod _serde { +use std::collections::BTreeMap; + +use crate::{ +

Re: [PR] feat: support ser/deser of value [iceberg-rust]

2023-10-21 Thread via GitHub
ZENOTME commented on code in PR #82: URL: https://github.com/apache/iceberg-rust/pull/82#discussion_r1367766620 ## crates/iceberg/src/spec/values.rs: ## @@ -996,10 +1039,552 @@ mod timestamptz { } } +mod _serde { +use std::collections::BTreeMap; + +use crate::{ +

Re: [PR] feat: support ser/deser of value [iceberg-rust]

2023-10-21 Thread via GitHub
ZENOTME commented on code in PR #82: URL: https://github.com/apache/iceberg-rust/pull/82#discussion_r1367762809 ## crates/iceberg/src/spec/values.rs: ## @@ -996,10 +1039,552 @@ mod timestamptz { } } +mod _serde { +use std::collections::BTreeMap; + +use crate::{ +

Re: [PR] feat: support ser/deser of value [iceberg-rust]

2023-10-19 Thread via GitHub
liurenjie1024 commented on code in PR #82: URL: https://github.com/apache/iceberg-rust/pull/82#discussion_r1365064528 ## crates/iceberg/src/avro/schema.rs: ## @@ -203,8 +197,8 @@ impl SchemaVisitor for SchemaToAvroSchema { PrimitiveType::Timestamp => AvroSchema::Tim

Re: [PR] feat: support ser/deser of value [iceberg-rust]

2023-10-18 Thread via GitHub
ZENOTME commented on code in PR #82: URL: https://github.com/apache/iceberg-rust/pull/82#discussion_r1364980016 ## crates/iceberg/src/avro/schema.rs: ## @@ -162,7 +168,7 @@ impl SchemaVisitor for SchemaToAvroSchema { let value_field = { let mut fi

Re: [PR] feat: support ser/deser of value [iceberg-rust]

2023-10-18 Thread via GitHub
liurenjie1024 commented on code in PR #82: URL: https://github.com/apache/iceberg-rust/pull/82#discussion_r1364967043 ## crates/iceberg/src/avro/schema.rs: ## @@ -144,7 +150,7 @@ impl SchemaVisitor for SchemaToAvroSchema { // not string type. let key_fi

Re: [PR] feat: support ser/deser of value [iceberg-rust]

2023-10-18 Thread via GitHub
ZENOTME commented on code in PR #82: URL: https://github.com/apache/iceberg-rust/pull/82#discussion_r1364930268 ## crates/iceberg/src/avro/schema.rs: ## @@ -144,7 +150,7 @@ impl SchemaVisitor for SchemaToAvroSchema { // not string type. let key_field =

Re: [PR] feat: support ser/deser of value [iceberg-rust]

2023-10-18 Thread via GitHub
liurenjie1024 commented on code in PR #82: URL: https://github.com/apache/iceberg-rust/pull/82#discussion_r1364844632 ## crates/iceberg/src/spec/values.rs: ## @@ -996,10 +1008,552 @@ mod timestamptz { } } +mod serde { +use std::collections::BTreeMap; + +use crate

Re: [PR] feat: support ser/deser of value [iceberg-rust]

2023-10-18 Thread via GitHub
ZENOTME commented on code in PR #82: URL: https://github.com/apache/iceberg-rust/pull/82#discussion_r1364843043 ## crates/iceberg/src/spec/values.rs: ## @@ -996,10 +1008,552 @@ mod timestamptz { } } +mod serde { +use std::collections::BTreeMap; + +use crate::{ +

Re: [PR] feat: support ser/deser of value [iceberg-rust]

2023-10-18 Thread via GitHub
liurenjie1024 commented on code in PR #82: URL: https://github.com/apache/iceberg-rust/pull/82#discussion_r1364825386 ## crates/iceberg/src/spec/values.rs: ## @@ -996,10 +1008,552 @@ mod timestamptz { } } +mod serde { +use std::collections::BTreeMap; + +use crate

Re: [PR] feat: support ser/deser of value [iceberg-rust]

2023-10-18 Thread via GitHub
ZENOTME commented on code in PR #82: URL: https://github.com/apache/iceberg-rust/pull/82#discussion_r1364796056 ## crates/iceberg/src/spec/values.rs: ## @@ -996,10 +1008,552 @@ mod timestamptz { } } +mod serde { +use std::collections::BTreeMap; + +use crate::{ +

Re: [PR] feat: support ser/deser of value [iceberg-rust]

2023-10-18 Thread via GitHub
liurenjie1024 commented on code in PR #82: URL: https://github.com/apache/iceberg-rust/pull/82#discussion_r1364771184 ## crates/iceberg/src/avro/schema.rs: ## @@ -162,7 +168,7 @@ impl SchemaVisitor for SchemaToAvroSchema { let value_field = { let

Re: [PR] feat: support ser/deser of value [iceberg-rust]

2023-10-18 Thread via GitHub
ZENOTME commented on PR #82: URL: https://github.com/apache/iceberg-rust/pull/82#issuecomment-1768932760 cc @JanKaul @Fokko @Xuanwo @liurenjie1024 -- 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

[PR] feat: support ser/deser of value [iceberg-rust]

2023-10-18 Thread via GitHub
ZENOTME opened a new pull request, #82: URL: https://github.com/apache/iceberg-rust/pull/82 This PR: 1. modify to store i128 for Value::Decimal It make more easy to process Value::Decimal and avoid type consisent problem if we use Decimal. 2. support support ser/deser of value 3