Skip to content

Instantly share code, notes, and snippets.

@1ambda
Created December 23, 2021 23:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 1ambda/a9d834aba172c0d5c8d7044bf582208a to your computer and use it in GitHub Desktop.
Save 1ambda/a9d834aba172c0d5c8d7044bf582208a to your computer and use it in GitHub Desktop.
# 과거 버전의 스키마로 (v1) 과거 버전으로 쓰여진 (V1) 데이터를 읽습니다.
dfListingAvroV1 = spark.read.format("avro")\
.option("avroSchema", schemaAvroListingV1)\
.load("/FileStore/raw/airbnb_listings_avro")
dfListingAvroV1.printSchema()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment