在 Apache Spark SQL 上显示 table(列)信息

display table (solumns) information on Apache Spark SQL

我正在学习 Apache Spark SQL 之后 tutorial 并且想知道是否有办法显示 table 描述(类似于 "describe " 或 "show columns from " 在 MySQL)?

注意:我使用的是 scala 1.0

谢谢

解决方案是

val wikiData = sqlContext.parquetFile("../../data/wiki_parquet")
wikiData.registerAsTable("wikiData")
wikiData.schema