数据库 数据校验写入等逻辑更新。
This commit is contained in:
213
tmp/table_analysis/dim_member_card_account_ex.txt
Normal file
213
tmp/table_analysis/dim_member_card_account_ex.txt
Normal file
@@ -0,0 +1,213 @@
|
||||
================================================================================
|
||||
Table: billiards_dwd.dim_member_card_account_ex
|
||||
Primary Key: member_card_id, scd2_start_time
|
||||
================================================================================
|
||||
|
||||
## COLUMNS
|
||||
--------------------------------------------------------------------------------
|
||||
member_card_id: bigint | nullable=NO | PK
|
||||
site_name: text | nullable=YES |
|
||||
tenant_name: character varying(64) | nullable=YES |
|
||||
tenantavatar: text | nullable=YES |
|
||||
effect_site_id: bigint | nullable=YES |
|
||||
able_cross_site: integer | nullable=YES |
|
||||
card_physics_type: integer | nullable=YES |
|
||||
card_no: text | nullable=YES |
|
||||
bind_password: text | nullable=YES |
|
||||
use_scene: text | nullable=YES |
|
||||
denomination: numeric(18,2) | nullable=YES |
|
||||
create_time: timestamp with time zone | nullable=YES |
|
||||
disable_start_time: timestamp with time zone | nullable=YES |
|
||||
disable_end_time: timestamp with time zone | nullable=YES |
|
||||
is_allow_give: integer | nullable=YES |
|
||||
is_allow_order_deduct: integer | nullable=YES |
|
||||
sort: integer | nullable=YES |
|
||||
table_discount: numeric(10,2) | nullable=YES |
|
||||
goods_discount: numeric(10,2) | nullable=YES |
|
||||
assistant_discount: numeric(10,2) | nullable=YES |
|
||||
assistant_reward_discount: numeric(10,2) | nullable=YES |
|
||||
table_service_discount: numeric(10,2) | nullable=YES |
|
||||
goods_service_discount: numeric(10,2) | nullable=YES |
|
||||
assistant_service_discount: numeric(10,2) | nullable=YES |
|
||||
coupon_discount: numeric(10,2) | nullable=YES |
|
||||
table_discount_sub_switch: integer | nullable=YES |
|
||||
goods_discount_sub_switch: integer | nullable=YES |
|
||||
assistant_discount_sub_switch: integer | nullable=YES |
|
||||
assistant_reward_discount_sub_switch: integer | nullable=YES |
|
||||
goods_discount_range_type: integer | nullable=YES |
|
||||
table_deduct_radio: numeric(10,2) | nullable=YES |
|
||||
goods_deduct_radio: numeric(10,2) | nullable=YES |
|
||||
assistant_deduct_radio: numeric(10,2) | nullable=YES |
|
||||
table_service_deduct_radio: numeric(10,2) | nullable=YES |
|
||||
goods_service_deduct_radio: numeric(10,2) | nullable=YES |
|
||||
assistant_service_deduct_radio: numeric(10,2) | nullable=YES |
|
||||
assistant_reward_deduct_radio: numeric(10,2) | nullable=YES |
|
||||
coupon_deduct_radio: numeric(10,2) | nullable=YES |
|
||||
cardsettlededuct: numeric(18,2) | nullable=YES |
|
||||
tablecarddeduct: numeric(18,2) | nullable=YES |
|
||||
tableservicecarddeduct: numeric(18,2) | nullable=YES |
|
||||
goodscardeduct: numeric(18,2) | nullable=YES |
|
||||
goodsservicecarddeduct: numeric(18,2) | nullable=YES |
|
||||
assistantcarddeduct: numeric(18,2) | nullable=YES |
|
||||
assistantservicecarddeduct: numeric(18,2) | nullable=YES |
|
||||
assistantrewardcarddeduct: numeric(18,2) | nullable=YES |
|
||||
couponcarddeduct: numeric(18,2) | nullable=YES |
|
||||
deliveryfeededuct: numeric(18,2) | nullable=YES |
|
||||
tableareaid: text | nullable=YES |
|
||||
goodscategoryid: text | nullable=YES |
|
||||
pdassisnatlevel: text | nullable=YES |
|
||||
cxassisnatlevel: text | nullable=YES |
|
||||
scd2_start_time: timestamp with time zone | nullable=NO | PK
|
||||
scd2_end_time: timestamp with time zone | nullable=YES |
|
||||
scd2_is_current: integer | nullable=YES |
|
||||
scd2_version: integer | nullable=YES |
|
||||
|
||||
## VALUE ANALYSIS (for enum detection)
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
member_card_id:
|
||||
Total: 945, Non-null: 945, Distinct: 945
|
||||
Top values:
|
||||
2793254697453573: 1
|
||||
2793268303710149: 1
|
||||
2793308329789317: 1
|
||||
2799215867168517: 1
|
||||
2799215872657157: 1
|
||||
2799215877195525: 1
|
||||
2799215882176261: 1
|
||||
2799215886796549: 1
|
||||
2799215892219653: 1
|
||||
2799215897331461: 1
|
||||
2799215901869829: 1
|
||||
2799215906440965: 1
|
||||
2799215912814341: 1
|
||||
2799215918532357: 1
|
||||
2799215923578629: 1
|
||||
|
||||
site_name:
|
||||
Total: 945, Non-null: 945, Distinct: 1
|
||||
*** LIKELY ENUM (distinct <= 15) ***
|
||||
Top values:
|
||||
朗朗桌球: 945
|
||||
|
||||
tenant_name:
|
||||
Total: 945, Non-null: 0, Distinct: 0
|
||||
Top values:
|
||||
|
||||
tenantavatar:
|
||||
Total: 945, Non-null: 0, Distinct: 0
|
||||
Top values:
|
||||
|
||||
effect_site_id:
|
||||
Total: 945, Non-null: 945, Distinct: 1
|
||||
*** LIKELY ENUM (distinct <= 15) ***
|
||||
Top values:
|
||||
0: 945
|
||||
|
||||
able_cross_site:
|
||||
Total: 945, Non-null: 945, Distinct: 1
|
||||
*** LIKELY ENUM (distinct <= 15) ***
|
||||
Top values:
|
||||
1: 945
|
||||
|
||||
card_physics_type:
|
||||
Total: 945, Non-null: 945, Distinct: 1
|
||||
*** LIKELY ENUM (distinct <= 15) ***
|
||||
Top values:
|
||||
1: 945
|
||||
|
||||
card_no:
|
||||
Total: 945, Non-null: 0, Distinct: 0
|
||||
Top values:
|
||||
|
||||
bind_password:
|
||||
Total: 945, Non-null: 0, Distinct: 0
|
||||
Top values:
|
||||
|
||||
use_scene:
|
||||
Total: 945, Non-null: 0, Distinct: 0
|
||||
Top values:
|
||||
|
||||
is_allow_give:
|
||||
Total: 945, Non-null: 945, Distinct: 1
|
||||
*** LIKELY ENUM (distinct <= 15) ***
|
||||
Top values:
|
||||
0: 945
|
||||
|
||||
is_allow_order_deduct:
|
||||
Total: 945, Non-null: 945, Distinct: 1
|
||||
*** LIKELY ENUM (distinct <= 15) ***
|
||||
Top values:
|
||||
0: 945
|
||||
|
||||
sort:
|
||||
Total: 945, Non-null: 945, Distinct: 1
|
||||
*** LIKELY ENUM (distinct <= 15) ***
|
||||
Top values:
|
||||
1: 945
|
||||
|
||||
table_discount_sub_switch:
|
||||
Total: 945, Non-null: 945, Distinct: 1
|
||||
*** LIKELY ENUM (distinct <= 15) ***
|
||||
Top values:
|
||||
2: 945
|
||||
|
||||
goods_discount_sub_switch:
|
||||
Total: 945, Non-null: 945, Distinct: 1
|
||||
*** LIKELY ENUM (distinct <= 15) ***
|
||||
Top values:
|
||||
2: 945
|
||||
|
||||
assistant_discount_sub_switch:
|
||||
Total: 945, Non-null: 945, Distinct: 1
|
||||
*** LIKELY ENUM (distinct <= 15) ***
|
||||
Top values:
|
||||
2: 945
|
||||
|
||||
assistant_reward_discount_sub_switch:
|
||||
Total: 945, Non-null: 945, Distinct: 1
|
||||
*** LIKELY ENUM (distinct <= 15) ***
|
||||
Top values:
|
||||
2: 945
|
||||
|
||||
goods_discount_range_type:
|
||||
Total: 945, Non-null: 945, Distinct: 1
|
||||
*** LIKELY ENUM (distinct <= 15) ***
|
||||
Top values:
|
||||
1: 945
|
||||
|
||||
tableareaid:
|
||||
Total: 945, Non-null: 0, Distinct: 0
|
||||
Top values:
|
||||
|
||||
goodscategoryid:
|
||||
Total: 945, Non-null: 0, Distinct: 0
|
||||
Top values:
|
||||
|
||||
pdassisnatlevel:
|
||||
Total: 945, Non-null: 945, Distinct: 1
|
||||
*** LIKELY ENUM (distinct <= 15) ***
|
||||
Top values:
|
||||
{}: 945
|
||||
|
||||
cxassisnatlevel:
|
||||
Total: 945, Non-null: 945, Distinct: 1
|
||||
*** LIKELY ENUM (distinct <= 15) ***
|
||||
Top values:
|
||||
{}: 945
|
||||
|
||||
scd2_is_current:
|
||||
Total: 945, Non-null: 945, Distinct: 1
|
||||
*** LIKELY ENUM (distinct <= 15) ***
|
||||
Top values:
|
||||
1: 945
|
||||
|
||||
scd2_version:
|
||||
Total: 945, Non-null: 945, Distinct: 1
|
||||
*** LIKELY ENUM (distinct <= 15) ***
|
||||
Top values:
|
||||
1: 945
|
||||
|
||||
## SAMPLE DATA (first 10 rows)
|
||||
--------------------------------------------------------------------------------
|
||||
No sample data available.
|
||||
Reference in New Issue
Block a user