文档章节

oracle外表

o
 osc_odyg6b92
发布于 2018/07/13 11:51
字数 2723
阅读 9
收藏 0
dat

行业解决方案、产品招募中!想赚钱就来传!>>>

DROP FOREIGN TABLE IF EXISTS inventory_ext;
CREATE FOREIGN TABLE inventory_ext
(
inv_date_sk integer ,
inv_item_sk integer ,
inv_warehouse_sk integer ,
inv_quantity_on_hand integer
)
SERVER gsmpp_server
OPTIONS(location 'gsfs://192.168.2.107:31001/inventory.dat',
FORMAT 'TEXT' ,
DELIMITER '|',
encoding 'utf8',
mode 'Normal'
)
with inventory_err
PER NODE REJECT LIMIT 'unlimited'
;

DROP FOREIGN TABLE IF EXISTS call_center_ext;
CREATE FOREIGN TABLE call_center_ext
(
cc_call_center_sk integer ,
cc_call_center_id char(16) ,
cc_rec_start_date date ,
cc_rec_end_date date ,
cc_closed_date_sk integer ,
cc_open_date_sk integer ,
cc_name varchar(50) ,
cc_class varchar(50) ,
cc_employees integer ,
cc_sq_ft integer ,
cc_hours char(20) ,
cc_manager varchar(40) ,
cc_mkt_id integer ,
cc_mkt_class char(50) ,
cc_mkt_desc varchar(100) ,
cc_market_manager varchar(40) ,
cc_division integer ,
cc_division_name varchar(50) ,
cc_company integer ,
cc_company_name char(50) ,
cc_street_number char(10) ,
cc_street_name varchar(60) ,
cc_street_type char(15) ,
cc_suite_number char(10) ,
cc_city varchar(60) ,
cc_county varchar(30) ,
cc_state char(2) ,
cc_zip char(10) ,
cc_country varchar(20) ,
cc_gmt_offset decimal(5,2) ,
cc_tax_percentage decimal(5,2)
)
SERVER gsmpp_server
OPTIONS(location 'gsfs://192.168.2.107:31002/call_center.dat',
FORMAT 'TEXT' ,
DELIMITER '|',
encoding 'utf8',
mode 'Normal'
)
with call_center_err
PER NODE REJECT LIMIT 'unlimited'
;

DROP FOREIGN TABLE IF EXISTS catalog_page_ext;
CREATE FOREIGN TABLE catalog_page_ext
(
cp_catalog_page_sk integer ,
cp_catalog_page_id char(16) ,
cp_start_date_sk integer ,
cp_end_date_sk integer ,
cp_department varchar(50) ,
cp_catalog_number integer ,
cp_catalog_page_number integer ,
cp_description varchar(100) ,
cp_type varchar(100)
)
SERVER gsmpp_server
OPTIONS(location 'gsfs://192.168.2.107:31003/catalog_page.dat',
FORMAT 'TEXT' ,
DELIMITER '|',
encoding 'utf8',
mode 'Normal'
)
with catalog_page_err
PER NODE REJECT LIMIT 'unlimited'
;

DROP FOREIGN TABLE IF EXISTS customer_ext;
CREATE FOREIGN TABLE customer_ext
(
c_customer_sk integer ,
c_customer_id char(16) ,
c_current_cdemo_sk integer ,
c_current_hdemo_sk integer ,
c_current_addr_sk integer ,
c_first_shipto_date_sk integer ,
c_first_sales_date_sk integer ,
c_salutation char(10) ,
c_first_name char(20) ,
c_last_name char(30) ,
c_preferred_cust_flag char(1) ,
c_birth_day integer ,
c_birth_month integer ,
c_birth_year integer ,
c_birth_country varchar(20) ,
c_login char(13) ,
c_email_address char(50) ,
c_last_review_date char(10)
)
SERVER gsmpp_server
OPTIONS(location 'gsfs://192.168.2.107:31001/customer.dat',
FORMAT 'TEXT' ,
DELIMITER '|',
encoding 'utf8',
mode 'Normal'
)
with customer_err
PER NODE REJECT LIMIT 'unlimited'
;

DROP FOREIGN TABLE IF EXISTS customer_address_ext;
CREATE FOREIGN TABLE customer_address_ext
(
ca_address_sk integer ,
ca_address_id char(16) ,
ca_street_number char(10) ,
ca_street_name varchar(60) ,
ca_street_type char(15) ,
ca_suite_number char(10) ,
ca_city varchar(60) ,
ca_county varchar(30) ,
ca_state char(2) ,
ca_zip char(10) ,
ca_country varchar(20) ,
ca_gmt_offset decimal(5,2) ,
ca_location_type char(20)
)
SERVER gsmpp_server
OPTIONS(location 'gsfs://192.168.2.102:31002/customer_address.dat',
FORMAT 'TEXT' ,
DELIMITER '|',
encoding 'utf8',
mode 'Normal'
)
with customer_address_err
PER NODE REJECT LIMIT 'unlimited'
;

DROP FOREIGN TABLE IF EXISTS customer_demographics_ext;
CREATE FOREIGN TABLE customer_demographics_ext
(
cd_demo_sk integer ,
cd_gender char(1) ,
cd_marital_status char(1) ,
cd_education_status char(20) ,
cd_purchase_estimate integer ,
cd_credit_rating char(10) ,
cd_dep_count integer ,
cd_dep_employed_count integer ,
cd_dep_college_count integer
)
SERVER gsmpp_server
OPTIONS(location 'gsfs://192.168.2.102:31003/customer_demographics.dat',
FORMAT 'TEXT' ,
DELIMITER '|',
encoding 'utf8',
mode 'Normal'
)
with customer_demographics_err
PER NODE REJECT LIMIT 'unlimited'
;

DROP FOREIGN TABLE IF EXISTS date_dim_ext;
CREATE FOREIGN TABLE date_dim_ext
(
d_date_sk integer ,
d_date_id char(16) ,
d_date date ,
d_month_seq integer ,
d_week_seq integer ,
d_quarter_seq integer ,
d_year integer ,
d_dow integer ,
d_moy integer ,
d_dom integer ,
d_qoy integer ,
d_fy_year integer ,
d_fy_quarter_seq integer ,
d_fy_week_seq integer ,
d_day_name char(9) ,
d_quarter_name char(6) ,
d_holiday char(1) ,
d_weekend char(1) ,
d_following_holiday char(1) ,
d_first_dom integer ,
d_last_dom integer ,
d_same_day_ly integer ,
d_same_day_lq integer ,
d_current_day char(1) ,
d_current_week char(1) ,
d_current_month char(1) ,
d_current_quarter char(1) ,
d_current_year char(1)
)
SERVER gsmpp_server
OPTIONS(location 'gsfs://192.168.2.103:31001/date_dim.dat',
FORMAT 'TEXT' ,
DELIMITER '|',
encoding 'utf8',
mode 'Normal'
)
with date_dim_err
PER NODE REJECT LIMIT 'unlimited'
;

DROP FOREIGN TABLE IF EXISTS household_demographics_ext;
CREATE FOREIGN TABLE household_demographics_ext
(
hd_demo_sk integer ,
hd_income_band_sk integer ,
hd_buy_potential char(15) ,
hd_dep_count integer ,
hd_vehicle_count integer
)
SERVER gsmpp_server
OPTIONS(location 'gsfs://192.168.2.103:31002/household_demographics.dat',
FORMAT 'TEXT' ,
DELIMITER '|',
encoding 'utf8',
mode 'Normal'
)
with household_demographics_err
PER NODE REJECT LIMIT 'unlimited'
;

DROP FOREIGN TABLE IF EXISTS income_band_ext;
CREATE FOREIGN TABLE income_band_ext
(
ib_income_band_sk integer ,
ib_lower_bound integer ,
ib_upper_bound integer
)
SERVER gsmpp_server
OPTIONS(location 'gsfs://192.168.2.103:31003/income_band.dat',
FORMAT 'TEXT' ,
DELIMITER '|',
encoding 'utf8',
mode 'Normal'
)
with income_band_err
PER NODE REJECT LIMIT 'unlimited'
;

DROP FOREIGN TABLE IF EXISTS item_ext;
CREATE FOREIGN TABLE item_ext
(
i_item_sk integer ,
i_item_id char(16) ,
i_rec_start_date date ,
i_rec_end_date date ,
i_item_desc varchar(200) ,
i_current_price decimal(7,2) ,
i_wholesale_cost decimal(7,2) ,
i_brand_id integer ,
i_brand char(50) ,
i_class_id integer ,
i_class char(50) ,
i_category_id integer ,
i_category char(50) ,
i_manufact_id integer ,
i_manufact char(50) ,
i_size char(20) ,
i_formulation char(20) ,
i_color char(20) ,
i_units char(10) ,
i_container char(10) ,
i_manager_id integer ,
i_product_name char(50)
)
SERVER gsmpp_server
OPTIONS(location 'gsfs://192.168.2.104:31001/item.dat',
FORMAT 'TEXT' ,
DELIMITER '|',
encoding 'utf8',
mode 'Normal'
)
with item_err
PER NODE REJECT LIMIT 'unlimited'
;

DROP FOREIGN TABLE IF EXISTS promotion_ext;
CREATE FOREIGN TABLE promotion_ext
(
p_promo_sk integer ,
p_promo_id char(16) ,
p_start_date_sk integer ,
p_end_date_sk integer ,
p_item_sk integer ,
p_cost decimal(15,2) ,
p_response_target integer ,
p_promo_name char(50) ,
p_channel_dmail char(1) ,
p_channel_email char(1) ,
p_channel_catalog char(1) ,
p_channel_tv char(1) ,
p_channel_radio char(1) ,
p_channel_press char(1) ,
p_channel_event char(1) ,
p_channel_demo char(1) ,
p_channel_details varchar(100) ,
p_purpose char(15) ,
p_discount_active char(1)
)
SERVER gsmpp_server
OPTIONS(location 'gsfs://192.168.2.104:31002/promotion.dat',
FORMAT 'TEXT' ,
DELIMITER '|',
encoding 'utf8',
mode 'Normal'
)
with promotion_err
PER NODE REJECT LIMIT 'unlimited'
;

DROP FOREIGN TABLE IF EXISTS reason_ext;
CREATE FOREIGN TABLE reason_ext
(
r_reason_sk integer ,
r_reason_id char(16) ,
r_reason_desc char(100)
)
SERVER gsmpp_server
OPTIONS(location 'gsfs://192.168.2.104:31003/reason.dat',
FORMAT 'TEXT' ,
DELIMITER '|',
encoding 'utf8',
mode 'Normal'
)
with reason_err
PER NODE REJECT LIMIT 'unlimited'
;

DROP FOREIGN TABLE IF EXISTS ship_mode_ext;
CREATE FOREIGN TABLE ship_mode_ext
(
sm_ship_mode_sk integer ,
sm_ship_mode_id char(16) ,
sm_type char(30) ,
sm_code char(10) ,
sm_carrier char(20) ,
sm_contract char(20)
)
SERVER gsmpp_server
OPTIONS(location 'gsfs://192.168.2.105:31001/ship_mode.dat',
FORMAT 'TEXT' ,
DELIMITER '|',
encoding 'utf8',
mode 'Normal'
)
with ship_mode_err
PER NODE REJECT LIMIT 'unlimited'
;

DROP FOREIGN TABLE IF EXISTS store_ext;
CREATE FOREIGN TABLE store_ext
(
s_store_sk integer ,
s_store_id char(16) ,
s_rec_start_date date ,
s_rec_end_date date ,
s_closed_date_sk integer ,
s_store_name varchar(50) ,
s_number_employees integer ,
s_floor_space integer ,
s_hours char(20) ,
s_manager varchar(40) ,
s_market_id integer ,
s_geography_class varchar(100) ,
s_market_desc varchar(100) ,
s_market_manager varchar(40) ,
s_division_id integer ,
s_division_name varchar(50) ,
s_company_id integer ,
s_company_name varchar(50) ,
s_street_number varchar(10) ,
s_street_name varchar(60) ,
s_street_type char(15) ,
s_suite_number char(10) ,
s_city varchar(60) ,
s_county varchar(30) ,
s_state char(2) ,
s_zip char(10) ,
s_country varchar(20) ,
s_gmt_offset decimal(5,2) ,
s_tax_precentage decimal(5,2)
)
SERVER gsmpp_server
OPTIONS(location 'gsfs://192.168.2.105:31002/store.dat',
FORMAT 'TEXT' ,
DELIMITER '|',
encoding 'utf8',
mode 'Normal'
)
with store_err
PER NODE REJECT LIMIT 'unlimited'
;

DROP FOREIGN TABLE IF EXISTS time_dim_ext;
CREATE FOREIGN TABLE time_dim_ext
(
t_time_sk integer ,
t_time_id char(16) ,
t_time integer ,
t_hour integer ,
t_minute integer ,
t_second integer ,
t_am_pm char(2) ,
t_shift char(20) ,
t_sub_shift char(20) ,
t_meal_time char(20)
)
SERVER gsmpp_server
OPTIONS(location 'gsfs://192.168.2.105:31003/time_dim.dat',
FORMAT 'TEXT' ,
DELIMITER '|',
encoding 'utf8',
mode 'Normal'
)
with time_dim_err
PER NODE REJECT LIMIT 'unlimited'
;

DROP FOREIGN TABLE IF EXISTS warehouse_ext;
CREATE FOREIGN TABLE warehouse_ext
(
w_warehouse_sk integer ,
w_warehouse_id char(16) ,
w_warehouse_name varchar(20) ,
w_warehouse_sq_ft integer ,
w_street_number char(10) ,
w_street_name varchar(60) ,
w_street_type char(15) ,
w_suite_number char(10) ,
w_city varchar(60) ,
w_county varchar(30) ,
w_state char(2) ,
w_zip char(10) ,
w_country varchar(20) ,
w_gmt_offset decimal(5,2)
)
SERVER gsmpp_server
OPTIONS(location 'gsfs://192.168.2.106:31001/warehouse.dat',
FORMAT 'TEXT' ,
DELIMITER '|',
encoding 'utf8',
mode 'Normal'
)
with warehouse_err
PER NODE REJECT LIMIT 'unlimited'
;

DROP FOREIGN TABLE IF EXISTS web_page_ext;
CREATE FOREIGN TABLE web_page_ext
(
wp_web_page_sk integer ,
wp_web_page_id char(16) ,
wp_rec_start_date date ,
wp_rec_end_date date ,
wp_creation_date_sk integer ,
wp_access_date_sk integer ,
wp_autogen_flag char(1) ,
wp_customer_sk integer ,
wp_url varchar(100) ,
wp_type char(50) ,
wp_char_count integer ,
wp_link_count integer ,
wp_image_count integer ,
wp_max_ad_count integer
)
SERVER gsmpp_server
OPTIONS(location 'gsfs://192.168.2.106:31002/web_page.dat',
FORMAT 'TEXT' ,
DELIMITER '|',
encoding 'utf8',
mode 'Normal'
)
with web_page_err
PER NODE REJECT LIMIT 'unlimited'
;

DROP FOREIGN TABLE IF EXISTS web_site_ext;
CREATE FOREIGN TABLE web_site_ext
(
web_site_sk integer ,
web_site_id char(16) ,
web_rec_start_date date ,
web_rec_end_date date ,
web_name varchar(50) ,
web_open_date_sk integer ,
web_close_date_sk integer ,
web_class varchar(50) ,
web_manager varchar(40) ,
web_mkt_id integer ,
web_mkt_class varchar(50) ,
web_mkt_desc varchar(100) ,
web_market_manager varchar(40) ,
web_company_id integer ,
web_company_name char(50) ,
web_street_number char(10) ,
web_street_name varchar(60) ,
web_street_type char(15) ,
web_suite_number char(10) ,
web_city varchar(60) ,
web_county varchar(30) ,
web_state char(2) ,
web_zip char(10) ,
web_country varchar(20) ,
web_gmt_offset decimal(5,2) ,
web_tax_percentage decimal(5,2)
)
SERVER gsmpp_server
OPTIONS(location 'gsfs://192.168.2.106:31003/web_site.dat',
FORMAT 'TEXT' ,
DELIMITER '|',
encoding 'utf8',
mode 'Normal'
)
with web_site_err
PER NODE REJECT LIMIT 'unlimited'
;

DROP FOREIGN TABLE IF EXISTS store_sales_ext;
CREATE FOREIGN TABLE store_sales_ext
(
ss_sold_date_sk integer ,
ss_sold_time_sk integer ,
ss_item_sk integer ,
ss_customer_sk integer ,
ss_cdemo_sk integer ,
ss_hdemo_sk integer ,
ss_addr_sk integer ,
ss_store_sk integer ,
ss_promo_sk integer ,
ss_ticket_number bigint ,
ss_quantity integer ,
ss_wholesale_cost decimal(7,2) ,
ss_list_price decimal(7,2) ,
ss_sales_price decimal(7,2) ,
ss_ext_discount_amt decimal(7,2) ,
ss_ext_sales_price decimal(7,2) ,
ss_ext_wholesale_cost decimal(7,2) ,
ss_ext_list_price decimal(7,2) ,
ss_ext_tax decimal(7,2) ,
ss_coupon_amt decimal(7,2) ,
ss_net_paid decimal(7,2) ,
ss_net_paid_inc_tax decimal(7,2) ,
ss_net_profit decimal(7,2)
)
SERVER gsmpp_server
OPTIONS(location
'gsfs://192.168.2.107:31001/store_sales_*.dat|gsfs://192.168.2.107:31002/store_sales_*.dat|
gsfs://192.168.2.107:31003/store_sales_*.dat|gsfs://192.168.2.107:31004/store_sales_*.dat|
gsfs://192.168.2.107:31005/store_sales_*.dat
|gsfs://192.168.2.102:31001/store_sales_*.dat|gsfs://192.168.2.102:31002/store_sales_*.dat|
gsfs://192.168.2.102:31003/store_sales_*.dat|gsfs://192.168.2.102:31004/store_sales_*.dat|
gsfs://192.168.2.102:31005/store_sales_*.dat
|gsfs://192.168.2.103:31001/store_sales_*.dat|gsfs://192.168.2.103:31002/store_sales_*.dat|
gsfs://192.168.2.103:31003/store_sales_*.dat|gsfs://192.168.2.103:31004/store_sales_*.dat|
gsfs://192.168.2.103:31005/store_sales_*.dat
|gsfs://192.168.2.104:31001/store_sales_*.dat|gsfs://192.168.2.104:31002/store_sales_*.dat|
gsfs://192.168.2.104:31003/store_sales_*.dat|gsfs://192.168.2.104:31004/store_sales_*.dat|
gsfs://192.168.2.104:31005/store_sales_*.dat
|gsfs://192.168.2.105:31001/store_sales_*.dat|gsfs://192.168.2.105:31002/store_sales_*.dat|
gsfs://192.168.2.105:31003/store_sales_*.dat|gsfs://192.168.2.105:31004/store_sales_*.dat|
gsfs://192.168.2.105:31005/store_sales_*.dat
|gsfs://192.168.2.106:31001/store_sales_*.dat|gsfs://192.168.2.106:31002/store_sales_*.dat|
gsfs://192.168.2.106:31003/store_sales_*.dat|gsfs://192.168.2.106:31004/store_sales_*.dat|
gsfs://192.168.2.106:31005/store_sales_*.dat

',
FORMAT 'TEXT' ,
DELIMITER '|',
encoding 'utf8',
mode 'Normal'
)
with store_sales_err
PER NODE REJECT LIMIT 'unlimited'
;

 

DROP FOREIGN TABLE IF EXISTS store_returns_ext;
CREATE FOREIGN TABLE store_returns_ext
(
sr_returned_date_sk integer ,
sr_return_time_sk integer ,
sr_item_sk integer ,
sr_customer_sk integer ,
sr_cdemo_sk integer ,
sr_hdemo_sk integer ,
sr_addr_sk integer ,
sr_store_sk integer ,
sr_reason_sk integer ,
sr_ticket_number bigint ,
sr_return_quantity integer ,
sr_return_amt decimal(7,2) ,
sr_return_tax decimal(7,2) ,
sr_return_amt_inc_tax decimal(7,2) ,
sr_fee decimal(7,2) ,
sr_return_ship_cost decimal(7,2) ,
sr_refunded_cash decimal(7,2) ,
sr_reversed_charge decimal(7,2) ,
sr_store_credit decimal(7,2) ,
sr_net_loss decimal(7,2)
)
SERVER gsmpp_server
OPTIONS(location
'gsfs://192.168.2.107:31001/store_returns_*.dat|gsfs://192.168.2.107:31002/store_returns_*.dat|
gsfs://192.168.2.107:31003/store_returns_*.dat|gsfs://192.168.2.107:31004/store_returns_*.dat|
gsfs://192.168.2.107:31005/store_returns_*.dat
|gsfs://192.168.2.102:31001/store_returns_*.dat|gsfs://192.168.2.102:31002/store_returns_*.dat|
gsfs://192.168.2.102:31003/store_returns_*.dat|gsfs://192.168.2.102:31004/store_returns_*.dat|
gsfs://192.168.2.102:31005/store_returns_*.dat
|gsfs://192.168.2.103:31001/store_returns_*.dat|gsfs://192.168.2.103:31002/store_returns_*.dat|
gsfs://192.168.2.103:31003/store_returns_*.dat|gsfs://192.168.2.103:31004/store_returns_*.dat|
gsfs://192.168.2.103:31005/store_returns_*.dat
|gsfs://192.168.2.104:31001/store_returns_*.dat|gsfs://192.168.2.104:31002/store_returns_*.dat|
gsfs://192.168.2.104:31003/store_returns_*.dat|gsfs://192.168.2.104:31004/store_returns_*.dat|
gsfs://192.168.2.104:31005/store_returns_*.dat
|gsfs://192.168.2.105:31001/store_returns_*.dat|gsfs://192.168.2.105:31002/store_returns_*.dat|
gsfs://192.168.2.105:31003/store_returns_*.dat|gsfs://192.168.2.105:31004/store_returns_*.dat|
gsfs://192.168.2.105:31005/store_returns_*.dat
|gsfs://192.168.2.106:31001/store_returns_*.dat|gsfs://192.168.2.106:31002/store_returns_*.dat|
gsfs://192.168.2.106:31003/store_returns_*.dat|gsfs://192.168.2.106:31004/store_returns_*.dat|
gsfs://192.168.2.106:31005/store_returns_*.dat

',
FORMAT 'TEXT' ,
DELIMITER '|',
encoding 'utf8',
mode 'Normal'
)
with store_returns_err
PER NODE REJECT LIMIT 'unlimited'
;

 

DROP FOREIGN TABLE IF EXISTS catalog_sales_ext;
CREATE FOREIGN TABLE catalog_sales_ext
(
cs_sold_date_sk integer ,
cs_sold_time_sk integer ,
cs_ship_date_sk integer ,
cs_bill_customer_sk integer ,
cs_bill_cdemo_sk integer ,
cs_bill_hdemo_sk integer ,
cs_bill_addr_sk integer ,
cs_ship_customer_sk integer ,
cs_ship_cdemo_sk integer ,
cs_ship_hdemo_sk integer ,
cs_ship_addr_sk integer ,
cs_call_center_sk integer ,
cs_catalog_page_sk integer ,
cs_ship_mode_sk integer ,
cs_warehouse_sk integer ,
cs_item_sk integer ,
cs_promo_sk integer ,
cs_order_number bigint ,
cs_quantity integer ,
cs_wholesale_cost decimal(7,2) ,
cs_list_price decimal(7,2) ,
cs_sales_price decimal(7,2) ,
cs_ext_discount_amt decimal(7,2) ,
cs_ext_sales_price decimal(7,2) ,
cs_ext_wholesale_cost decimal(7,2) ,
cs_ext_list_price decimal(7,2) ,
cs_ext_tax decimal(7,2) ,
cs_coupon_amt decimal(7,2) ,
cs_ext_ship_cost decimal(7,2) ,
cs_net_paid decimal(7,2) ,
cs_net_paid_inc_tax decimal(7,2) ,
cs_net_paid_inc_ship decimal(7,2) ,
cs_net_paid_inc_ship_tax decimal(7,2) ,
cs_net_profit decimal(7,2)
)
SERVER gsmpp_server
OPTIONS(location
'gsfs://192.168.2.107:31001/catalog_sales_*.dat|gsfs://192.168.2.107:31002/catalog_sales_*.dat|
gsfs://192.168.2.107:31003/catalog_sales_*.dat|gsfs://192.168.2.107:31004/catalog_sales_*.dat|
gsfs://192.168.2.107:31005/catalog_sales_*.dat
|gsfs://192.168.2.102:31001/catalog_sales_*.dat|gsfs://192.168.2.102:31002/catalog_sales_*.dat|
gsfs://192.168.2.102:31003/catalog_sales_*.dat|gsfs://192.168.2.102:31004/catalog_sales_*.dat|
gsfs://192.168.2.102:31005/catalog_sales_*.dat
|gsfs://192.168.2.103:31001/catalog_sales_*.dat|gsfs://192.168.2.103:31002/catalog_sales_*.dat|
gsfs://192.168.2.103:31003/catalog_sales_*.dat|gsfs://192.168.2.103:31004/catalog_sales_*.dat|
gsfs://192.168.2.103:31005/catalog_sales_*.dat
|gsfs://192.168.2.104:31001/catalog_sales_*.dat|gsfs://192.168.2.104:31002/catalog_sales_*.dat|
gsfs://192.168.2.104:31003/catalog_sales_*.dat|gsfs://192.168.2.104:31004/catalog_sales_*.dat|
gsfs://192.168.2.104:31005/catalog_sales_*.dat
|gsfs://192.168.2.105:31001/catalog_sales_*.dat|gsfs://192.168.2.105:31002/catalog_sales_*.dat|
gsfs://192.168.2.105:31003/catalog_sales_*.dat|gsfs://192.168.2.105:31004/catalog_sales_*.dat|
gsfs://192.168.2.105:31005/catalog_sales_*.dat
|gsfs://192.168.2.106:31001/catalog_sales_*.dat|gsfs://192.168.2.106:31002/catalog_sales_*.dat|
gsfs://192.168.2.106:31003/catalog_sales_*.dat|gsfs://192.168.2.106:31004/catalog_sales_*.dat|
gsfs://192.168.2.106:31005/catalog_sales_*.dat

',
FORMAT 'TEXT' ,
DELIMITER '|',
encoding 'utf8',
mode 'Normal'
)
with catalog_sales_err
PER NODE REJECT LIMIT 'unlimited'
;

 

 

DROP FOREIGN TABLE IF EXISTS catalog_returns_ext;
CREATE FOREIGN TABLE catalog_returns_ext
(
cr_returned_date_sk integer ,
cr_returned_time_sk integer ,
cr_item_sk integer ,
cr_refunded_customer_sk integer ,
cr_refunded_cdemo_sk integer ,
cr_refunded_hdemo_sk integer ,
cr_refunded_addr_sk integer ,
cr_returning_customer_sk integer ,
cr_returning_cdemo_sk integer ,
cr_returning_hdemo_sk integer ,
cr_returning_addr_sk integer ,
cr_call_center_sk integer ,
cr_catalog_page_sk integer ,
cr_ship_mode_sk integer ,
cr_warehouse_sk integer ,
cr_reason_sk integer ,
cr_order_number bigint ,
cr_return_quantity integer ,
cr_return_amount decimal(7,2) ,
cr_return_tax decimal(7,2) ,
cr_return_amt_inc_tax decimal(7,2) ,
cr_fee decimal(7,2) ,
cr_return_ship_cost decimal(7,2) ,
cr_refunded_cash decimal(7,2) ,
cr_reversed_charge decimal(7,2) ,
cr_store_credit decimal(7,2) ,
cr_net_loss decimal(7,2)
)
SERVER gsmpp_server
OPTIONS(location
'gsfs://192.168.2.107:31001/catalog_returns_*.dat|gsfs://192.168.2.107:31002/catalog_returns_*.dat|
gsfs://192.168.2.107:31003/catalog_returns_*.dat|gsfs://192.168.2.107:31004/catalog_returns_*.dat|
gsfs://192.168.2.107:31005/catalog_returns_*.dat
|gsfs://192.168.2.102:31001/catalog_returns_*.dat|gsfs://192.168.2.102:31002/catalog_returns_*.dat|
gsfs://192.168.2.102:31003/catalog_returns_*.dat|gsfs://192.168.2.102:31004/catalog_returns_*.dat|
gsfs://192.168.2.102:31005/catalog_returns_*.dat
|gsfs://192.168.2.103:31001/catalog_returns_*.dat|gsfs://192.168.2.103:31002/catalog_returns_*.dat|
gsfs://192.168.2.103:31003/catalog_returns_*.dat|gsfs://192.168.2.103:31004/catalog_returns_*.dat|
gsfs://192.168.2.103:31005/catalog_returns_*.dat
|gsfs://192.168.2.104:31001/catalog_returns_*.dat|gsfs://192.168.2.104:31002/catalog_returns_*.dat|
gsfs://192.168.2.104:31003/catalog_returns_*.dat|gsfs://192.168.2.104:31004/catalog_returns_*.dat|
gsfs://192.168.2.104:31005/catalog_returns_*.dat
|gsfs://192.168.2.105:31001/catalog_returns_*.dat|gsfs://192.168.2.105:31002/catalog_returns_*.dat|
gsfs://192.168.2.105:31003/catalog_returns_*.dat|gsfs://192.168.2.105:31004/catalog_returns_*.dat|
gsfs://192.168.2.105:31005/catalog_returns_*.dat
|gsfs://192.168.2.106:31001/catalog_returns_*.dat|gsfs://192.168.2.106:31002/catalog_returns_*.dat|
gsfs://192.168.2.106:31003/catalog_returns_*.dat|gsfs://192.168.2.106:31004/catalog_returns_*.dat|
gsfs://192.168.2.106:31005/catalog_returns_*.dat

',
FORMAT 'TEXT' ,
DELIMITER '|',
encoding 'utf8',
mode 'Normal'
)
with catalog_returns_err
PER NODE REJECT LIMIT 'unlimited'
;

 

 


DROP FOREIGN TABLE IF EXISTS web_sales_ext;
CREATE FOREIGN TABLE web_sales_ext
(
ws_sold_date_sk integer ,
ws_sold_time_sk integer ,
ws_ship_date_sk integer ,
ws_item_sk integer ,
ws_bill_customer_sk integer ,
ws_bill_cdemo_sk integer ,
ws_bill_hdemo_sk integer ,
ws_bill_addr_sk integer ,
ws_ship_customer_sk integer ,
ws_ship_cdemo_sk integer ,
ws_ship_hdemo_sk integer ,
ws_ship_addr_sk integer ,
ws_web_page_sk integer ,
ws_web_site_sk integer ,
ws_ship_mode_sk integer ,
ws_warehouse_sk integer ,
ws_promo_sk integer ,
ws_order_number bigint ,
ws_quantity integer ,
ws_wholesale_cost decimal(7,2) ,
ws_list_price decimal(7,2) ,
ws_sales_price decimal(7,2) ,
ws_ext_discount_amt decimal(7,2) ,
ws_ext_sales_price decimal(7,2) ,
ws_ext_wholesale_cost decimal(7,2) ,
ws_ext_list_price decimal(7,2) ,
ws_ext_tax decimal(7,2) ,
ws_coupon_amt decimal(7,2) ,
ws_ext_ship_cost decimal(7,2) ,
ws_net_paid decimal(7,2) ,
ws_net_paid_inc_tax decimal(7,2) ,
ws_net_paid_inc_ship decimal(7,2) ,
ws_net_paid_inc_ship_tax decimal(7,2) ,
ws_net_profit decimal(7,2)
)
SERVER gsmpp_server
OPTIONS(location
'gsfs://192.168.2.107:31001/web_sales_*.dat|gsfs://192.168.2.107:31002/web_sales_*.dat|
gsfs://192.168.2.107:31003/web_sales_*.dat|gsfs://192.168.2.107:31004/web_sales_*.dat|
gsfs://192.168.2.107:31005/web_sales_*.dat
|gsfs://192.168.2.102:31001/web_sales_*.dat|gsfs://192.168.2.102:31002/web_sales_*.dat|
gsfs://192.168.2.102:31003/web_sales_*.dat|gsfs://192.168.2.102:31004/web_sales_*.dat|
gsfs://192.168.2.102:31005/web_sales_*.dat
|gsfs://192.168.2.103:31001/web_sales_*.dat|gsfs://192.168.2.103:31002/web_sales_*.dat|
gsfs://192.168.2.103:31003/web_sales_*.dat|gsfs://192.168.2.103:31004/web_sales_*.dat|
gsfs://192.168.2.103:31005/web_sales_*.dat
|gsfs://192.168.2.104:31001/web_sales_*.dat|gsfs://192.168.2.104:31002/web_sales_*.dat|
gsfs://192.168.2.104:31003/web_sales_*.dat|gsfs://192.168.2.104:31004/web_sales_*.dat|
gsfs://192.168.2.104:31005/web_sales_*.dat
|gsfs://192.168.2.105:31001/web_sales_*.dat|gsfs://192.168.2.105:31002/web_sales_*.dat|
gsfs://192.168.2.105:31003/web_sales_*.dat|gsfs://192.168.2.105:31004/web_sales_*.dat|
gsfs://192.168.2.105:31005/web_sales_*.dat
|gsfs://192.168.2.106:31001/web_sales_*.dat|gsfs://192.168.2.106:31002/web_sales_*.dat|
gsfs://192.168.2.106:31003/web_sales_*.dat|gsfs://192.168.2.106:31004/web_sales_*.dat|
gsfs://192.168.2.106:31005/web_sales_*.dat

',
FORMAT 'TEXT' ,
DELIMITER '|',
encoding 'utf8',
mode 'Normal'
)
with web_sales_err
PER NODE REJECT LIMIT 'unlimited'
;

 

DROP FOREIGN TABLE IF EXISTS web_returns_ext;
CREATE FOREIGN TABLE web_returns_ext
(
wr_returned_date_sk integer ,
wr_returned_time_sk integer ,
wr_item_sk integer ,
wr_refunded_customer_sk integer ,
wr_refunded_cdemo_sk integer ,
wr_refunded_hdemo_sk integer ,
wr_refunded_addr_sk integer ,
wr_returning_customer_sk integer ,
wr_returning_cdemo_sk integer ,
wr_returning_hdemo_sk integer ,
wr_returning_addr_sk integer ,
wr_web_page_sk integer ,
wr_reason_sk integer ,
wr_order_number bigint ,
wr_return_quantity integer ,
wr_return_amt decimal(7,2) ,
wr_return_tax decimal(7,2) ,
wr_return_amt_inc_tax decimal(7,2) ,
wr_fee decimal(7,2) ,
wr_return_ship_cost decimal(7,2) ,
wr_refunded_cash decimal(7,2) ,
wr_reversed_charge decimal(7,2) ,
wr_account_credit decimal(7,2) ,
wr_net_loss decimal(7,2)
)
SERVER gsmpp_server
OPTIONS(location
'gsfs://192.168.2.107:31001/web_returns_*.dat|gsfs://192.168.2.107:31002/web_returns_*.dat|
gsfs://192.168.2.107:31003/web_returns_*.dat|gsfs://192.168.2.107:31004/web_returns_*.dat|
gsfs://192.168.2.107:31005/web_returns_*.dat
|gsfs://192.168.2.102:31001/web_returns_*.dat|gsfs://192.168.2.102:31002/web_returns_*.dat|
gsfs://192.168.2.102:31003/web_returns_*.dat|gsfs://192.168.2.102:31004/web_returns_*.dat|
gsfs://192.168.2.102:31005/web_returns_*.dat
|gsfs://192.168.2.103:31001/web_returns_*.dat|gsfs://192.168.2.103:31002/web_returns_*.dat|
gsfs://192.168.2.103:31003/web_returns_*.dat|gsfs://192.168.2.103:31004/web_returns_*.dat|
gsfs://192.168.2.103:31005/web_returns_*.dat
|gsfs://192.168.2.104:31001/web_returns_*.dat|gsfs://192.168.2.104:31002/web_returns_*.dat|
gsfs://192.168.2.104:31003/web_returns_*.dat|gsfs://192.168.2.104:31004/web_returns_*.dat|
gsfs://192.168.2.104:31005/web_returns_*.dat
|gsfs://192.168.2.105:31001/web_returns_*.dat|gsfs://192.168.2.105:31002/web_returns_*.dat|
gsfs://192.168.2.105:31003/web_returns_*.dat|gsfs://192.168.2.105:31004/web_returns_*.dat|
gsfs://192.168.2.105:31005/web_returns_*.dat
|gsfs://192.168.2.106:31001/web_returns_*.dat|gsfs://192.168.2.106:31002/web_returns_*.dat|
gsfs://192.168.2.106:31003/web_returns_*.dat|gsfs://192.168.2.106:31004/web_returns_*.dat|
gsfs://192.168.2.106:31005/web_returns_*.dat

',
FORMAT 'TEXT' ,
DELIMITER '|',
encoding 'utf8',
mode 'Normal'
)
with web_returns_err
PER NODE REJECT LIMIT 'unlimited'
;

 

o
粉丝 1
博文 500
码字总数 0
作品 0
私信 提问
加载中
请先登录后再评论。
开源数据访问组件--Smark.Data

Smark.Data是基于Ado.net实现的数据访问组件,提供基于强类型的查询表达式进行灵活的数据查询,统计,修改和删除等操作;采用基于条件驱动的操作模式,使数据操作更简单轻松;内部通过标准SQL...

泥水佬
2013/03/12
2.5K
0
CardDavMATE

CardDavMATE 是一个 CardDAV 的 Web 客户端,提供一个强大的 vCard 编辑器。兼容 Safari/Mobile Safari, Webkit, Epiphany, iCab, Chrome, Firefox, and IE9 等浏览器,支持 DAViCal, Mac O......

匿名
2012/12/20
524
0
开源人力资源系统--ehr

开源人力资源系统说明 本项目采用GPL v2授权协议。 项目目标: 1.提供一个开源的、可用的企业级人力资源管理系统 2.系统支持多分支机构人力资源的集中管理 3.系统准备实现的功能模块:组织机...

zhjin
2013/06/07
3.3W
0
数据库结构比较工具--dbcompare

数据库结构比较工具,目前支持mysql,oracle,sql server. 概述: 在设计开发过程中经常会出现开发库与测试库不一致,测试库与生产库不一致,每次手工比对是个辛苦的活。 以前用java写过一个数...

dbcompare
2013/06/25
5.8K
0
利用java8新特性实现类似javascript callback特性

Java8的新特性之一,就是首次引入了函数式编程Lambda表达式,按oracle的说法,是为了引导java向函数式编程的方向发展。 在JDK1.8中,多了一个包,java.util.function,这里主要用到了这个包下...

Acce1erator
2015/12/02
3.4K
3

没有更多内容

加载失败,请刷新页面

加载更多

Vim清除最后一个搜索突出显示 - Vim clear last search highlighting

问题: Want to improve this post? 想要改善这篇文章吗? Provide detailed answers to this question, including citations and an explanation of why your answer is correct. 提供此问题......

技术盛宴
今天
23
0
原子属性和非原子属性有什么区别? - What's the difference between the atomic and nonatomic attributes?

问题: What do atomic and nonatomic mean in property declarations? 属性声明中atomic和nonatomic是什么意思? @property(nonatomic, retain) UITextField *userName;@property(atomic, ......

fyin1314
今天
7
0
马化腾每天刷 Leetcode?代码你打算写到几岁?

本文作者:o****0 前几天,一张未证真伪的截图流传,图中显示马化腾几乎每天都会在 Leetcode 上提交代码。 截图还贴出一个 Leetcode 账户地址。该地址的头像已从马化腾的照片换成腾讯 logo,...

百度开发者中心
前天
13
0
滴滴 3000+ Kylin Cube 背后的实践经验揭秘

本次分享主要有三个部分:Kylin 在滴滴的整体应用、架构的实践经验、滴滴全局字典最新版本的实现以及 Kylin 最新实时 OLAP 探索经验分享。 Kylin 在滴滴的应用&架构 Kylin 在滴滴的三类应用场...

浪尖聊大数据
昨天
9
0
ssh“权限太开放”错误 - ssh “permissions are too open” error

问题: I had a problem with my mac where I couldn't save any kind of file on the disk anymore. 我的Mac出现问题,无法再在磁盘上保存任何类型的文件。 I had to reboot OSX lion and r......

javail
今天
19
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部