How to read parquet file in databricks and run select statement.
1. Write following code in cell1 and execute
df_GLDATAMFDB = spark.read.option("header",True).parquet("/mnt/FileServer/Folder1/Folder2/Folder3/",inferSchema="True")
df_GLDATAMFDB.createOrReplaceTempView("MFDB_GL")
2. After that in second cell run following:-
%sql
select * from MFDB_GL
No comments:
Post a Comment