- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2024 08:45 AM
%sql
use catalog enterprise_catalog;
use schema bronze;
create table bronze_hmi
(sl_no string ,
date string ,
time string ,
auger_motor_rpm decimal(22,3) ,
auger_motor_rpm_act decimal(22,3) ,
auger_curr decimal(22,3) ,
auger_torque decimal(22,3) ,
auger_on_time decimal(22,3) ,
auger_off_time decimal(22,3) ,
blower_1_rpm decimal(22,3) ,
blower_2_rpm decimal(22,3) ,
blower_3_rpm decimal(22,3) ,
blower_4_rpm decimal(22,3) ,
blower_5_rpm decimal(22,3) ,
blower_6_rpm decimal(22,3) ,
temp1 decimal(22,3) ,
temp2 decimal(22,3) ,
temp3 decimal(22,3) ,
temp4 decimal(22,3) ,
temp5 decimal(22,3) ,
temp6 decimal(22,3) ,
total_power decimal(22,3) ,
system_current decimal(22,3) ,
cooling_pump_on_time decimal(22,3) ,
cooling_pump_off_time decimal(22,3) ,
input_load_cell decimal(22,3) ,
output_load_cell decimal(22,3) ,
misc_col string)
USING CSV
OPTIONS (header "true", inferSchema "true")
LOCATION "dbfs:/mnt/landingzone/landingzonecontainer/Inbound/hot_test_data/hmi/";
Error Message
[UC_FILE_SCHEME_FOR_TABLE_CREATION_NOT_SUPPORTED] Creating table in Unity Catalog with file scheme dbfs is not supported.
Instead, please create a federated data source connection using the CREATE CONNECTION command for the same table provider, then create a catalog based on the connection with a CREATE FOREIGN CATALOG command to reference the tables therein. SQLSTATE: 0AKUC