Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Read JSON files with automatic schema inference

# Read JSON files with automatic schema inference

df = spark.read.json("logs.json")
df.where("age > 21").select("name.first").show()
Source by spark.apache.org #
 
PREVIOUS NEXT
Tagged: #Read #JSON #files #automatic #schema #inference
ADD COMMENT
Topic
Name
8+6 =