Skip to content

Instantly share code, notes, and snippets.

@1ambda
Created December 26, 2021 06:04
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/716869e6b237c6cc3418663a9f2e891b to your computer and use it in GitHub Desktop.
Save 1ambda/716869e6b237c6cc3418663a9f2e891b to your computer and use it in GitHub Desktop.
spark.sql("DESCRIBE TABLE FORMATTED UDON_TOPPING_SALES")\
.where(col("col_name") == "Type").show()
+--------+---------+-------+
|col_name|data_type|comment|
+--------+---------+-------+
| Type| EXTERNAL| |
+--------+---------+-------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment