-
Notifications
You must be signed in to change notification settings - Fork 130
feat: alternate for StructFields
#6276
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
base: develop
Are you sure you want to change the base?
Conversation
Signed-off-by: blaginin <github@blaginin.me>
CodSpeed Performance ReportMerging this PR will not alter performanceComparing Summary
Footnotes
|
| #[test] | ||
| fn test_display_alternate() { | ||
| let inner = StructFields::from_iter([ | ||
| ("street", DType::Utf8(Nullability::NonNullable)), | ||
| ("city", DType::Utf8(Nullability::Nullable)), | ||
| ]); | ||
| let fields = StructFields::from_iter([ | ||
| ("name", DType::Utf8(Nullability::NonNullable)), | ||
| ("age", DType::Primitive(PType::I32, Nullability::Nullable)), | ||
| ("address", DType::Struct(inner, Nullability::Nullable)), | ||
| ]); | ||
|
|
||
| assert_snapshot!(format!("{fields:#}"), @" | ||
| { | ||
| name=utf8, | ||
| age=i32?, | ||
| address={ | ||
| street=utf8, | ||
| city=utf8? | ||
| }? | ||
| } | ||
| "); | ||
| } |
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.
can you show a larger print with a list and struct
Signed-off-by: blaginin <github@blaginin.me>
Deploying vortex-bench with
|
| Latest commit: |
6742d97
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://f670154d.vortex-93b.pages.dev |
| Branch Preview URL: | https://db-pretty-display-fields.vortex-93b.pages.dev |
alternate for StructFieldsalternate for StructFields
No description provided.