Skip to content

[SPARK-53316] Add Map and Struct literal types#23

Open
rafafrdz wants to merge 1 commit intoapache:masterfrom
rafafrdz:spark-53316-map-struct-literals
Open

[SPARK-53316] Add Map and Struct literal types#23
rafafrdz wants to merge 1 commit intoapache:masterfrom
rafafrdz:spark-53316-map-struct-literals

Conversation

@rafafrdz
Copy link
Copy Markdown

Summary

  • Add MapLiteral<K, V> generic struct with From impl for spark::expression::Literal, mapping to LiteralType::Map
  • Add StructLiteral struct with From impl for spark::expression::Literal, mapping to LiteralType::Struct
  • Completes the remaining literal types from SPARK-53316

Test plan

  • Unit test for Map literal (String keys, i32 values)
  • Unit test for Struct literal (two-field struct with String and Integer)
  • cargo build passes
  • cargo clippy passes
  • cargo fmt -- --check passes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant