Skip to content

Instantly share code, notes, and snippets.

@1ambda
Created December 21, 2021 23:31
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/5a96de249a5f73b7218e9afde7787f9a to your computer and use it in GitHub Desktop.
Save 1ambda/5a96de249a5f73b7218e9afde7787f9a to your computer and use it in GitHub Desktop.
df.printSchema()
root
|-- event_time: string (nullable = true)
|-- event_type: string (nullable = true)
|-- product_id: integer (nullable = true)
|-- category_id: long (nullable = true)
|-- category_code: string (nullable = true)
|-- brand: string (nullable = true)
|-- price: double (nullable = true)
|-- user_id: integer (nullable = true)
|-- user_session: string (nullable = true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment