delta-io/delta

[Kernel][Testing] Add more thorough testing for DataType.toJson

已关闭

#2,313 创建于 2023年11月20日

 (6 条评论) (0 个反应) (0 位负责人)Scala (2,158 个派生)batch import
enhancementgood first issuekernelstale

仓库指标

星标
 (8,947 个星标)
PR 合并指标
 (平均合并 7天 1小时) (30 天内合并 142 个 PR)

描述

Feature request

Which Delta project/connector is this regarding?

  • Spark
  • Standalone
  • Flink
  • Kernel
  • Other (fill in here)

Overview

All of our DataType classes provide toJson which serializes the type following the delta protocol schema serialization rules https://github.com/delta-io/delta/blob/master/PROTOCOL.md#schema-serialization-format. We use this method to serialize the physical and logical schemas in ScanStateRow.

toJson is only tested by the 2 round-trip tests in DefaultJsonHandlerSuite. We should add more thorough tests for toJson.

贡献者指南