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

JsonSource should support path expressions #240

Open
hannesmiller opened this issue Feb 6, 2017 · 2 comments
Open

JsonSource should support path expressions #240

hannesmiller opened this issue Feb 6, 2017 · 2 comments
Milestone

Comments

@hannesmiller
Copy link
Contributor

hannesmiller commented Feb 6, 2017

JsonSource should support path expressions

Scenario

  • If I have defined a structure like the following:
struct Person {
     name:String,
     age: Int,
     sex: String
}
  • I should be able to specify a projection like so:
withProjection("person.name", "person.age")
  • The above returns scalar values for name and age.
  • Likewise I think it should work for withPredicate
  • Jackson has has processor for drilling into nested types using path expressions which are similar to XPath
  • You could put forward a case that this syntax should be the language for other formats that support nested types, Avro, Parquet and Orc
@sksamuel
Copy link
Contributor

sksamuel commented Feb 6, 2017

It might make sense to do this on the frame level so all sources can benefit. The advantage to source level is when a source supports pushdowns but that's only parquet and orc.

@hannesmiller
Copy link
Contributor Author

Yeah good point!

Here's a good resource: http://goessner.net/articles/JsonPath/

@sksamuel sksamuel added this to the 1.4 milestone Jul 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants