cdm_data_loaders.converters.facades.jsonschema_to_pyspark ¶
Convert JSON Schema through the shared reader and PySpark emitter.
JSONSchemaToPySparkError ¶
Bases: ConversionError
Raised when a JSON Schema construct cannot be converted.
InvalidJSONSchemaError ¶
Bases: JSONSchemaToPySparkError
Raised when the input document is not a valid JSON Schema.
JSONSchemaToPySpark
pydantic-model
¶
Bases: JsonSchemaConverterBase[StructType]
Read dereferenced JSON Schema and emit pure Python Spark schema objects.
Fields:
-
extension_registry(InstanceOf[ExtensionRegistry]) -
format_map(frozendict[str, DataType]) -
treat_unknown_as_string(bool) -
extra_metadata_keywords(ExtraMetadataKeywords)
Validators:
-
_merge_with_builtin_format_map→format_map