You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 20, 2018. It is now read-only.
val a = spark.read.format("com.databricks.spark.avro").load("avrofile.avro")
a.schema
res1: org.apache.spark.sql.types.StructType = StructType(StructField(sessionId,StringType,true), StructField(robotDetectionResult,IntegerType,true))
The text was updated successfully, but these errors were encountered:
When I read simple avro file with all fileds non-nullable, resulted dataframe schema has all fields nullable.
avro file schema:
dataframe schema:
The text was updated successfully, but these errors were encountered: