delta-io/delta

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

已關閉

#2,313 建立於 2023年11月20日

 (6 則留言) (0 個反應) (0 位負責人)Scala (2,159 個分叉)batch import
enhancementgood first issuekernelstale

倉庫指標

星標
 (8,950 顆星)
PR 合併指標
 (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.

貢獻者指南