Forum Discussion

anawast's avatar
anawast
Icon for Microsoft Employee rankMicrosoft Employee
2 years ago

Discrepancy in spark.read.schema in Databricks and Azure Fabric.

Spark.read.json offers 2 functionalities: 1. You can impose a schema on top of spark.read.json using spark.read.schema(schema).json(df). This will ensure that only records that fit the schema will b...