Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2022 02:09 PM
Hi @Brian Labrom ,
One you can do it with Spark.sql
%python
tables = ["table1", "table2"]
for table in tables:
spark.sql(f"""
create table if not exists {table}
using parquet
location = '/mnt/{table}'""")or maybe with sql:
create table if not exists table1
using parquet
location = '/mnt/${somelocation}'You can use widget for example to get somelocation: