- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2021 08:20 AM
Environment: Azure
A data transformation template that take s table name as variable. The variable is set in separate notebook %run ../_config
Shallow clone is used to generate a staging table with exact same columns of target table.
A random error occurs when the ETL is running concurrent notebooks at same time.
Error log attached. (May be related to cluster resources?)
Thanks in advance if any insight is provided...
-- Create a temp table for data transformation
drop table if exists ${v.source};
create table if not exists ${v.source}
shallow clone referrals_audit;
truncate table ${v.source}; -- shallow clone also keeps data reference and we should remove it
alter table ${v.source} add columns (Error string);
Error in SQL statement: AnalysisException: org.apache.hadoop.hive.ql.metadata.HiveException: at least one column must be specified for the table
- Labels:
-
Dynamic Variables
-
Random Error
-
SQL