数据库 数据校验写入等逻辑更新。
This commit is contained in:
321
tmp/table_analysis/dwd_table_fee_adjust.txt
Normal file
321
tmp/table_analysis/dwd_table_fee_adjust.txt
Normal file
@@ -0,0 +1,321 @@
|
||||
================================================================================
|
||||
Table: billiards_dwd.dwd_table_fee_adjust
|
||||
Primary Key: table_fee_adjust_id
|
||||
================================================================================
|
||||
|
||||
## COLUMNS
|
||||
--------------------------------------------------------------------------------
|
||||
table_fee_adjust_id: bigint | nullable=NO | PK
|
||||
order_trade_no: bigint | nullable=YES |
|
||||
order_settle_id: bigint | nullable=YES |
|
||||
tenant_id: bigint | nullable=YES |
|
||||
site_id: bigint | nullable=YES |
|
||||
table_id: bigint | nullable=YES |
|
||||
table_area_id: bigint | nullable=YES |
|
||||
table_area_name: character varying(64) | nullable=YES |
|
||||
tenant_table_area_id: bigint | nullable=YES |
|
||||
ledger_amount: numeric(18,2) | nullable=YES |
|
||||
ledger_status: integer | nullable=YES |
|
||||
is_delete: integer | nullable=YES |
|
||||
adjust_time: timestamp with time zone | nullable=YES |
|
||||
|
||||
## VALUE ANALYSIS (for enum detection)
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
table_fee_adjust_id:
|
||||
Total: 2849, Non-null: 2849, Distinct: 2849
|
||||
Top values:
|
||||
3064246571944837: 1
|
||||
2809440958499333: 1
|
||||
3017593903318661: 1
|
||||
3009294538409925: 1
|
||||
2993477712792197: 1
|
||||
3034392506993733: 1
|
||||
2965973253473989: 1
|
||||
2888562792286597: 1
|
||||
3008956284275205: 1
|
||||
3067055412186053: 1
|
||||
3050243960702725: 1
|
||||
2920573008315781: 1
|
||||
3002014301228037: 1
|
||||
3002075645856581: 1
|
||||
2960693282836357: 1
|
||||
|
||||
order_trade_no:
|
||||
Total: 2849, Non-null: 2849, Distinct: 2801
|
||||
Top values:
|
||||
2851655631671109: 3
|
||||
2831755508780165: 3
|
||||
2970029122997381: 3
|
||||
2831772820049093: 3
|
||||
2948091267387013: 3
|
||||
2954869758986437: 2
|
||||
2990547445273157: 2
|
||||
2970521489263493: 2
|
||||
3029974310012997: 2
|
||||
2836209539582277: 2
|
||||
3056795414873989: 2
|
||||
3054107856719045: 2
|
||||
2810434861500869: 2
|
||||
3060857267505733: 2
|
||||
2980688405924165: 2
|
||||
|
||||
order_settle_id:
|
||||
Total: 2849, Non-null: 2849, Distinct: 2515
|
||||
Top values:
|
||||
2985297809476293: 7
|
||||
2959261151989445: 5
|
||||
2890024064813381: 5
|
||||
2933889434896133: 5
|
||||
2802093505628229: 5
|
||||
2823425434258501: 5
|
||||
3050243203696325: 4
|
||||
2826430466378821: 4
|
||||
2973323104635077: 4
|
||||
2990834049419973: 4
|
||||
3041336658364101: 4
|
||||
2842013991014021: 4
|
||||
2983454744515141: 4
|
||||
2946626600634501: 4
|
||||
3046093693290245: 3
|
||||
|
||||
tenant_id:
|
||||
Total: 2849, Non-null: 2849, Distinct: 1
|
||||
*** LIKELY ENUM (distinct <= 15) ***
|
||||
Top values:
|
||||
2790683160709957: 2849
|
||||
|
||||
site_id:
|
||||
Total: 2849, Non-null: 2849, Distinct: 1
|
||||
*** LIKELY ENUM (distinct <= 15) ***
|
||||
Top values:
|
||||
2790685415443269: 2849
|
||||
|
||||
table_id:
|
||||
Total: 2849, Non-null: 2849, Distinct: 74
|
||||
Top values:
|
||||
2793022937911365: 206
|
||||
2793020259897413: 182
|
||||
2793018776735877: 170
|
||||
2793023960633413: 157
|
||||
2793023960682565: 102
|
||||
2793023960551493: 99
|
||||
2793022145302597: 83
|
||||
2791964216463493: 79
|
||||
2802006434630661: 75
|
||||
2793020955840645: 70
|
||||
2851642357976581: 62
|
||||
2793016660660357: 55
|
||||
2802282095561797: 55
|
||||
2793020259946565: 54
|
||||
2851642813353477: 54
|
||||
|
||||
table_area_id:
|
||||
Total: 2849, Non-null: 2849, Distinct: 16
|
||||
Top values:
|
||||
2791962314215301: 455
|
||||
2791960001957765: 375
|
||||
2791960521691013: 342
|
||||
2801978934053829: 331
|
||||
2791961347968901: 308
|
||||
2791961060364165: 307
|
||||
2791960850435973: 207
|
||||
2791962068946821: 206
|
||||
2791961709907845: 107
|
||||
2791961598955397: 101
|
||||
2942054283414597: 35
|
||||
2956244810877893: 32
|
||||
2956243120376773: 30
|
||||
3004534168259333: 9
|
||||
2944826806683269: 3
|
||||
|
||||
table_area_name:
|
||||
Total: 2849, Non-null: 0, Distinct: 0
|
||||
Top values:
|
||||
|
||||
tenant_table_area_id:
|
||||
Total: 2849, Non-null: 2849, Distinct: 16
|
||||
Top values:
|
||||
2791962314215301: 455
|
||||
2791960001957765: 375
|
||||
2791960521691013: 342
|
||||
2801978934053829: 331
|
||||
2791961347968901: 308
|
||||
2791961060364165: 307
|
||||
2791960850435973: 207
|
||||
2791962068946821: 206
|
||||
2791961709907845: 107
|
||||
2791961598955397: 101
|
||||
2942054283414597: 35
|
||||
2956244810877893: 32
|
||||
2956243120376773: 30
|
||||
3004534168259333: 9
|
||||
2944826806683269: 3
|
||||
|
||||
ledger_status:
|
||||
Total: 2849, Non-null: 2849, Distinct: 2
|
||||
*** LIKELY ENUM (distinct <= 15) ***
|
||||
Top values:
|
||||
1: 2801
|
||||
0: 48
|
||||
|
||||
is_delete:
|
||||
Total: 2849, Non-null: 2849, Distinct: 1
|
||||
*** LIKELY ENUM (distinct <= 15) ***
|
||||
Top values:
|
||||
0: 2849
|
||||
|
||||
## SAMPLE DATA (first 10 rows)
|
||||
--------------------------------------------------------------------------------
|
||||
Columns: ['table_fee_adjust_id', 'order_trade_no', 'order_settle_id', 'tenant_id', 'site_id', 'table_id', 'table_area_id', 'table_area_name', 'tenant_table_area_id', 'ledger_amount', 'ledger_status', 'is_delete', 'adjust_time']
|
||||
|
||||
Row 1:
|
||||
table_fee_adjust_id: 2957913441881989
|
||||
order_trade_no: 2957784612605829
|
||||
order_settle_id: 2957913171693253
|
||||
tenant_id: 2790683160709957
|
||||
site_id: 2790685415443269
|
||||
table_id: 2793020259897413
|
||||
table_area_id: 2791961347968901
|
||||
table_area_name: NULL
|
||||
tenant_table_area_id: 2791961347968901
|
||||
ledger_amount: 148.15
|
||||
ledger_status: 1
|
||||
is_delete: 0
|
||||
adjust_time: 2025-11-09 23:25:11+08:00
|
||||
|
||||
Row 2:
|
||||
table_fee_adjust_id: 2957881608900293
|
||||
order_trade_no: 2957564999110149
|
||||
order_settle_id: 2957881518788421
|
||||
tenant_id: 2790683160709957
|
||||
site_id: 2790685415443269
|
||||
table_id: 2793023960633413
|
||||
table_area_id: 2791962314215301
|
||||
table_area_name: NULL
|
||||
tenant_table_area_id: 2791962314215301
|
||||
ledger_amount: 120.00
|
||||
ledger_status: 1
|
||||
is_delete: 0
|
||||
adjust_time: 2025-11-09 22:52:48+08:00
|
||||
|
||||
Row 3:
|
||||
table_fee_adjust_id: 2957814223867717
|
||||
order_trade_no: 2957792593448837
|
||||
order_settle_id: 2957813956382533
|
||||
tenant_id: 2790683160709957
|
||||
site_id: 2790685415443269
|
||||
table_id: 2793016660660357
|
||||
table_area_id: 2791960850435973
|
||||
table_area_name: NULL
|
||||
tenant_table_area_id: 2791960850435973
|
||||
ledger_amount: 24.18
|
||||
ledger_status: 1
|
||||
is_delete: 0
|
||||
adjust_time: 2025-11-09 21:44:15+08:00
|
||||
|
||||
Row 4:
|
||||
table_fee_adjust_id: 2957814223818565
|
||||
order_trade_no: 2957757804416901
|
||||
order_settle_id: 2957813956382533
|
||||
tenant_id: 2790683160709957
|
||||
site_id: 2790685415443269
|
||||
table_id: 2791964216463493
|
||||
table_area_id: 2791960001957765
|
||||
table_area_name: NULL
|
||||
tenant_table_area_id: 2791960001957765
|
||||
ledger_amount: 14.16
|
||||
ledger_status: 1
|
||||
is_delete: 0
|
||||
adjust_time: 2025-11-09 21:44:15+08:00
|
||||
|
||||
Row 5:
|
||||
table_fee_adjust_id: 2957809022848517
|
||||
order_trade_no: 2957637918707525
|
||||
order_settle_id: 2957808874803077
|
||||
tenant_id: 2790683160709957
|
||||
site_id: 2790685415443269
|
||||
table_id: 2793012902203525
|
||||
table_area_id: 2791960521691013
|
||||
table_area_name: NULL
|
||||
tenant_table_area_id: 2791960521691013
|
||||
ledger_amount: 18.00
|
||||
ledger_status: 1
|
||||
is_delete: 0
|
||||
adjust_time: 2025-11-09 21:38:58+08:00
|
||||
|
||||
Row 6:
|
||||
table_fee_adjust_id: 2957786384502277
|
||||
order_trade_no: 2957651697635141
|
||||
order_settle_id: 2957786346884805
|
||||
tenant_id: 2790683160709957
|
||||
site_id: 2790685415443269
|
||||
table_id: 2793003806953541
|
||||
table_area_id: 2791960001957765
|
||||
table_area_name: NULL
|
||||
tenant_table_area_id: 2791960001957765
|
||||
ledger_amount: 96.27
|
||||
ledger_status: 1
|
||||
is_delete: 0
|
||||
adjust_time: 2025-11-09 21:15:56+08:00
|
||||
|
||||
Row 7:
|
||||
table_fee_adjust_id: 2957752919379845
|
||||
order_trade_no: 2957748356140741
|
||||
order_settle_id: 2957752895754053
|
||||
tenant_id: 2790683160709957
|
||||
site_id: 2790685415443269
|
||||
table_id: 2793020259897413
|
||||
table_area_id: 2791961347968901
|
||||
table_area_name: NULL
|
||||
tenant_table_area_id: 2791961347968901
|
||||
ledger_amount: 5.08
|
||||
ledger_status: 1
|
||||
is_delete: 0
|
||||
adjust_time: 2025-11-09 20:41:53+08:00
|
||||
|
||||
Row 8:
|
||||
table_fee_adjust_id: 2957675850501829
|
||||
order_trade_no: 2957576702300037
|
||||
order_settle_id: 2957675763060549
|
||||
tenant_id: 2790683160709957
|
||||
site_id: 2790685415443269
|
||||
table_id: 2793016660660357
|
||||
table_area_id: 2791960850435973
|
||||
table_area_name: NULL
|
||||
tenant_table_area_id: 2791960850435973
|
||||
ledger_amount: 113.64
|
||||
ledger_status: 1
|
||||
is_delete: 0
|
||||
adjust_time: 2025-11-09 19:23:29+08:00
|
||||
|
||||
Row 9:
|
||||
table_fee_adjust_id: 2957593928126277
|
||||
order_trade_no: 2957543598772037
|
||||
order_settle_id: 2957593881104261
|
||||
tenant_id: 2790683160709957
|
||||
site_id: 2790685415443269
|
||||
table_id: 2793022937911365
|
||||
table_area_id: 2791962068946821
|
||||
table_area_name: NULL
|
||||
tenant_table_area_id: 2791962068946821
|
||||
ledger_amount: 28.11
|
||||
ledger_status: 1
|
||||
is_delete: 0
|
||||
adjust_time: 2025-11-09 18:00:09+08:00
|
||||
|
||||
Row 10:
|
||||
table_fee_adjust_id: 2957537445105541
|
||||
order_trade_no: 2957281196167045
|
||||
order_settle_id: 2957537402621637
|
||||
tenant_id: 2790683160709957
|
||||
site_id: 2790685415443269
|
||||
table_id: 2793023960633413
|
||||
table_area_id: 2791962314215301
|
||||
table_area_name: NULL
|
||||
tenant_table_area_id: 2791962314215301
|
||||
ledger_amount: 120.00
|
||||
ledger_status: 1
|
||||
is_delete: 0
|
||||
adjust_time: 2025-11-09 17:02:42+08:00
|
||||
|
||||
Reference in New Issue
Block a user