spark-json-schema icon indicating copy to clipboard operation
spark-json-schema copied to clipboard

JSON schema parser for Apache Spark

Results 13 spark-json-schema issues
Sort by recently updated
recently updated
newest added

Updating `spark-sql` version 2.0.1 => 2.4.3 Adding two test cases for references of multiple types. I found not obvious from the tests cases how the conversion of references like the...

code part: val path="C:\\projects\\test\\Training_2\\person.txt".trim val fileContents = scala.io.Source.fromFile(path).getLines.mkString //Json.parse(fileContents) val x= SchemaConverter.convertContent(fileContents) ------------------------------------------------ Exception in thread "main" java.lang.IllegalArgumentException: No in schema at at org.zalando.spark.jsonschema.SchemaConverter$.getJsonType(SchemaConverter.scala:114) at org.zalando.spark.jsonschema.SchemaConverter$.convert(SchemaConverter.scala:67) at org.zalando.spark.jsonschema.SchemaConverter$.convertContent(SchemaConverter.scala:60) input json...

There are three different ways in JSON schema to say that a field is a nullable object. One of them is for example: ``` "myField1" : { "oneOf": [ {...