Skip to content
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

Multi Value Extraction #55

Open
cheqianh opened this issue Sep 23, 2021 · 0 comments
Open

Multi Value Extraction #55

cheqianh opened this issue Sep 23, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@cheqianh
Copy link
Contributor

cheqianh commented Sep 23, 2021

The Ion path extraction APIs currently return all values that match a certain extractor, but the serde currently only chooses one.

# ion file
{ id:"user1", other_ids: [{ id: "user1234" }, { id: "user189723" }] } 

# Properties passed to serde
ion.id.path_extractor = ( id )
ion.other_ids.path_extractor = ( other_ids * id )

# Extractor matches values
doc1: ( id ) returns "user1"
      ( other_ids * id ) returns "user1234", "user189723"

# Current Serde Behavior: Serde only returns one value
doc1: id: "user1"
      other_ids: "user1234"
@cheqianh cheqianh added the enhancement New feature or request label Sep 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant