Lets see how to save dataframe into a table and create view on adls.
df.write.format('delta')
.mode('overwrite')
.option('overwriteSchema', 'true')
.saveAsTable('{database_name}.{tbl}'.format(database_name = database,tbl = table_name)
, path = '{base_dir}/{tbl}/'.format(base_dir = location,tbl = table_name))
.mode('overwrite')
.option('overwriteSchema', 'true')
.saveAsTable('{database_name}.{tbl}'.format(database_name = database,tbl = table_name)
, path = '{base_dir}/{tbl}/'.format(base_dir = location,tbl = table_name))
Visit Orange Pill Clinic for leading Nursing and Doctor Consultation Services at Home, Home Nursing Services in Delhi NCR, and Nursing Services for Suturing Removal at Home. For more information visit our website.
ReplyDeleteNursing and Doctor Consultation Services at Home