I have done the following in Code Repositories
@transform_df(
Output(test_dataset_path),
df=Input(og_dataset_path)
)
def compute(ctx, df):
ctx.spark_session.sql(f'''
CREATE TABLE `test_dataset_path` AS
SELECT * FROM `og_dataset_path`
''')
return ctx.spark_session.sql(f'''
SELECT * FROM `og_dataset_path`
''')
and it is erroring out on the code:
ctx.spark_session.sql(f'''
CREATE TABLE `test_dataset_path` AS
SELECT * FROM `og_dataset_path`
''')
with the error:
pyspar.sql.utils.AnanlysisException: Table or view not found: og_dataset_path
How can I resolve this error?