-
Notifications
You must be signed in to change notification settings - Fork 595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(deps): Bump apache-avro to 0.16.0 #13523
Conversation
@@ -15,7 +15,7 @@ normal = ["workspace-hack"] | |||
|
|||
[dependencies] | |||
anyhow = "1" | |||
apache-avro = { git = "https://github.com/risingwavelabs/avro", rev = "3c257c1f65e63a80ac44f1cffaf083cdaeab431a", features = [ | |||
apache-avro = { git = "https://github.com/risingwavelabs/avro", rev = "b251943586e7fe7dd52319fc84f8be47921434aa", features = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -204,6 +204,7 @@ mod tests { | |||
let inner_shema_str = r#"{ | |||
"type": "record", | |||
"name": "Value", | |||
"namespace": "dbserver1.inventory.customers", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is as reasonable as select v from t
being equivalent to select t.v from t
. But I have not checked how we are handling namespaces in other places.
@@ -34,20 +34,19 @@ | |||
{ | |||
"name": "entrance_date", | |||
"type": "int", | |||
"logicalType": "date", | |||
"default": null | |||
"logicalType": "date" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default value for date
field in a struct will be added back when we fully resolve the linked issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, may let experts to have a look
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rest LGTM
"thiserror", | ||
"typed-builder", | ||
"typed-builder 0.14.0", | ||
"uuid", | ||
"zerocopy", | ||
] | ||
|
||
[[package]] | ||
name = "apache-avro" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we have two apache-avro
dependencies? Is this expected?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One is our fork used directly, another is indirect dependency introduced by icelake. This has been the case before this PR, and is expected. We also have multiple versions of some other crates.
Depending on two incompatible versions of the same crate does have some downsides:
- Doubles building time, binary size as well as memory.
- Types defined in one version cannot be passed as arguments to functions defined in another version.
Thus it is better avoided, but not that rare in reality.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More discussion on having 2 (and even possibly 3) versions of arrow (not avro): #13600 (comment)
This comment was marked as resolved.
This comment was marked as resolved.
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #13523 +/- ##
==========================================
+ Coverage 68.39% 68.46% +0.06%
==========================================
Files 1508 1508
Lines 259655 259657 +2
==========================================
+ Hits 177598 177776 +178
+ Misses 82057 81881 -176
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
Before the bump, our fork was based on main branch on 2023-03-21.
After the bump, the fork is based on release-1.11.3 (crates.io 0.16.0).
Major API change:
Schema::Record
andSchema::Decimal
are wrapped inRecordSchema
andDecimalSchema
.Note this does not fully resolve #13505 (comment) yet.
Checklist
./risedev check
(or alias,./risedev c
)Documentation
Release note
If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.