Native JSON file scan

Ouverte
#7,429 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 2 jours

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
8/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
json, rust, scala, spark

Piste de recherche

Start from the existing JSON handling in the Spark integration: spark.comet.convert.json.enabled and the FileSourceScanExec path for JsonFileFormat and JsonScan, plus the opt-in native from_json code that may share parsing logic. The issue lists the modes and options a native scan must match, but no single file or failing test is named. Done means a native scan that reproduces Spark's JSON results for those options and falls back for the rest, which is design work.

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

Description

enhancement requires-triage
What is the problem the feature request solves?

JSON sources (FileSourceScanExec with JsonFileFormat, and V2 JsonScan) are read by Spark. spark.comet.convert.json.enabled can convert Spark's rows to Arrow, but parsing still runs on the JVM.

Describe the potential solution

Add a native JSON scan that matches Spark's JSON reader:

  • user-supplied schema
  • PERMISSIVE, DROPMALFORMED and FAILFAST modes, and columnNameOfCorruptRecord
  • timestamp and date formats with the session timezone
  • multi-line JSON and compression codecs
  • fall back for the options it can't match
Additional context

Native from_json already exists (opt-in). It may share parsing code with the scan.

Langage dominant
Scala
Étoiles
1.3k
Forks
414
Merge moyen
3 j 4 h
PR mergées (30 j)
202

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de apache/datafusion-comet

Toutes les issues de apache/datafusion-comet

Issues similaires

Plus d'issues Scala

Recevez les nouvelles issues par e-mail

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