Ejemplo DDL Tabla SQL
Ejemplo DDL Tabla SQL
oe_order_headers_all_ont(
header_id double,
org_id double,
order_type_id double,
order_number double,
version_number double,
expiration_date string,
order_source_id double,
source_document_type_id double,
orig_sys_document_ref string,
source_document_id double,
ordered_date string,
request_date string,
pricing_date string,
shipment_priority_code string,
demand_class_code string,
price_list_id double,
tax_exempt_flag string,
tax_exempt_number string,
tax_exempt_reason_code string,
conversion_rate double,
conversion_type_code string,
conversion_rate_date string,
partial_shipments_allowed string,
ship_tolerance_above double,
ship_tolerance_below double,
transactional_curr_code string,
agreement_id double,
tax_point_code string,
cust_po_number string,
invoicing_rule_id double,
accounting_rule_id double,
payment_term_id double,
shipping_method_code string,
freight_carrier_code string,
fob_point_code string,
freight_terms_code string,
sold_from_org_id double,
sold_to_org_id double,
ship_from_org_id double,
ship_to_org_id double,
invoice_to_org_id double,
deliver_to_org_id double,
sold_to_contact_id double,
ship_to_contact_id double,
invoice_to_contact_id double,
deliver_to_contact_id double,
creation_date string,
created_by double,
last_updated_by double,
last_update_date string,
last_update_login double,
program_application_id double,
program_id double,
program_update_date string,
request_id double,
context string,
attribute1 string,
attribute2 string,
attribute3 string,
attribute4 string,
attribute5 string,
attribute6 string,
attribute7 string,
attribute8 string,
attribute9 string,
attribute10 string,
attribute11 string,
attribute12 string,
attribute13 string,
attribute14 string,
attribute15 string,
global_attribute_category string,
global_attribute1 string,
global_attribute2 string,
global_attribute3 string,
global_attribute4 string,
global_attribute5 string,
global_attribute6 string,
global_attribute7 string,
global_attribute8 string,
global_attribute9 string,
global_attribute10 string,
global_attribute11 string,
global_attribute12 string,
global_attribute13 string,
global_attribute14 string,
global_attribute15 string,
global_attribute16 string,
global_attribute17 string,
global_attribute18 string,
global_attribute19 string,
global_attribute20 string,
cancelled_flag string,
open_flag string,
booked_flag string,
salesrep_id double,
return_reason_code string,
order_date_type_code string,
earliest_schedule_limit double,
latest_schedule_limit double,
payment_type_code string,
payment_amount double,
check_number string,
credit_card_code string,
credit_card_holder_name string,
credit_card_number string,
credit_card_expiration_date string,
credit_card_approval_code string,
sales_channel_code string,
first_ack_code string,
first_ack_date string,
last_ack_code string,
last_ack_date string,
order_category_code string,
change_sequence string,
drop_ship_flag string,
customer_payment_term_id double,
shipping_instructions string,
packing_instructions string,
tp_context string,
tp_attribute1 string,
tp_attribute2 string,
tp_attribute3 string,
tp_attribute4 string,
tp_attribute5 string,
tp_attribute6 string,
tp_attribute7 string,
tp_attribute8 string,
tp_attribute9 string,
tp_attribute10 string,
tp_attribute11 string,
tp_attribute12 string,
tp_attribute13 string,
tp_attribute14 string,
tp_attribute15 string,
flow_status_code string,
marketing_source_code_id double,
credit_card_approval_date string,
upgraded_flag string,
customer_preference_set_code string,
booked_date string,
lock_control double,
price_request_code string,
batch_id double,
xml_message_id double,
accounting_rule_duration double,
attribute16 string,
attribute17 string,
attribute18 string,
attribute19 string,
attribute20 string,
blanket_number double,
sales_document_type_code string,
sold_to_phone_id double,
fulfillment_set_name string,
line_set_name string,
default_fulfillment_set string,
transaction_phase_code string,
sales_document_name string,
quote_number double,
quote_date string,
user_status_code string,
draft_submitted_flag string,
source_document_version_number double,
sold_to_site_use_id double,
supplier_signature string,
supplier_signature_date string,
customer_signature string,
customer_signature_date string,
minisite_id double,
end_customer_id double,
end_customer_contact_id double,
end_customer_site_use_id double,
ib_owner string,
ib_current_location string,
ib_installed_at_location string,
order_firmed_date string,
storeday string)
STORED AS PARQUET
LOCATION
's3a://gb-prod-source/erp/erp_pgbari_sz/oe_order_headers_all_ont';