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

JSON XPath Column Names #15

Open
mrufsvold opened this issue May 23, 2023 · 0 comments
Open

JSON XPath Column Names #15

mrufsvold opened this issue May 23, 2023 · 0 comments
Assignees

Comments

@mrufsvold
Copy link
Owner

JSON XPath has the form /key1/key2[2]/key3. In this case, key1/key2 points to an array and [2] indicates the 3rd element. It would be nice to have the unpacking maintain the array position so that we could build these types of xpaths.

The problem to achieve this is twofold.

  1. The deepest problem is that this will yield a wide table format (a column for each array position. The current implementation only supports tall format (stacking the contents of the array). One possible solution would be to create a index column at the array step, and then, use it to pivot wide at the end.
  2. There is no infrastructure for building out the names like this. Right now, the column names are defined at the point that the column definition is created, but we don't know what levels are arrays (much less how long they are) at that point.
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

No branches or pull requests

1 participant