Native JSON file scan

未关闭
#7,429 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
8/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
json, rust, scala, spark

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
Scala
星标
1.3k
派生
414
平均合并
3 天 5 小时
30 天内合并 PR
210

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

apache/datafusion-comet 的其他 Issue

查看 apache/datafusion-comet 的全部 Issue

相似的 Issue

更多 Scala Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。