51zero / 51zero/eel-sdk

JsonSource should support path expressions

Ouverte
#240 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
enhancement
Langage dominant
Scala
Étoiles
147
Forks
32
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

# JsonSource should support path expressions

# Scenario

- If I have defined a structure like the following:
```sql
struct Person {
name:String,
age: Int,
sex: String
}
```
- I should be able to specify a projection like so:
```scala
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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Look at the JsonSource class and its withProjection and withPredicate methods. Understand how Jackson's path expression processor works for nested types. Check similar handling in Avro, Parquet, and Orc formats within the SDK. The goal is to extend support for path expressions like 'person.name' to return scalar values from nested structures.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
java, scala
Domaine
data-engineering, tooling
Type d'issue
Fonctionnalité
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.