notebook/996/doirs/dhsf_engine.sql
2025-07-25 16:59:05 +08:00

6268 lines
220 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

drop TABLE box_user_game_recharge;
CREATE TABLE `box_user_game_recharge` (
`type` int NOT NULL,
`game_id` bigint NOT NULL,
`create_time` bigint NOT NULL,
`pay_money` bigint NULL,
`pay_count` int NULL,
`pay_num` int NULL
) ENGINE=OLAP
UNIQUE KEY(`type`, `game_id`, `create_time`)
DISTRIBUTED BY HASH(`game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dim_account;
CREATE TABLE `dim_account` (
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`user_account` varchar(64) NOT NULL,
`last_active_time` int MAX NULL,
`last_pay_time` int MAX NULL,
`payment_amount` int SUM NULL,
`payment_count` int SUM NULL
) ENGINE=OLAP
AGGREGATE KEY(`game_id`, `server_id`, `user_account`)
DISTRIBUTED BY HASH(`game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728"
);
drop TABLE dim_account_pd;
CREATE TABLE `dim_account_pd` (
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`user_account` varchar(64) NOT NULL,
`ds` date NOT NULL,
`last_active_time` int MAX NULL,
`last_pay_time` int MAX NULL,
`payment_amount` int SUM NULL,
`payment_count` int SUM NULL
) ENGINE=OLAP
AGGREGATE KEY(`game_id`, `server_id`, `user_account`, `ds`)
DISTRIBUTED BY HASH(`ds`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728"
);
drop TABLE dim_date_table;
CREATE TABLE `dim_date_table` (
`time_date` date NOT NULL COMMENT "date日期",
`date_str` varchar(8) NOT NULL COMMENT "ds日期-yyyymmdd",
`year_week_str` varchar(8) NOT NULL COMMENT "年00周",
`year_week_date` date NOT NULL COMMENT "年周第一天",
`week_rn` int NOT NULL COMMENT "周排行(用于跨年周计算)",
`year_month_str` varchar(8) NOT NULL COMMENT "年月00",
`year_month_date` date NOT NULL COMMENT "年月第一天",
`month_rn` int NOT NULL COMMENT "月排行(用于跨年月计算)"
) ENGINE=OLAP
UNIQUE KEY(`time_date`)
DISTRIBUTED BY HASH(`time_date`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dim_month_table;
CREATE TABLE `dim_month_table` (
`time_date` date NOT NULL COMMENT "date日期",
`date_str` varchar(8) NOT NULL COMMENT "ds日期-yyyymmdd",
`year_month_str` varchar(8) NOT NULL COMMENT "年月00",
`year_month_date` date NOT NULL COMMENT "年月第一天",
`month_rn` int NOT NULL COMMENT "月排行(用于跨年月计算)"
) ENGINE=OLAP
UNIQUE KEY(`time_date`)
DISTRIBUTED BY HASH(`time_date`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dim_role_pd;
CREATE TABLE `dim_role_pd` (
`game_id` int NOT NULL,
`role_id` varchar(64) NOT NULL,
`ds` date NOT NULL,
`last_active_time` int MAX NULL,
`last_pay_time` int MAX NULL,
`payment_amount` int SUM NULL,
`payment_count` int SUM NULL,
`duration` int SUM NULL
) ENGINE=OLAP
AGGREGATE KEY(`game_id`, `role_id`, `ds`)
DISTRIBUTED BY HASH(`ds`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728"
);
drop TABLE dim_week_table;
CREATE TABLE `dim_week_table` (
`time_date` date NOT NULL COMMENT "date日期",
`date_str` varchar(8) NOT NULL COMMENT "ds日期-yyyymmdd",
`year_week_str` varchar(8) NOT NULL COMMENT "年00周",
`year_week_date` date NOT NULL COMMENT "年周第一天",
`week_rn` int NOT NULL COMMENT "周排行(用于跨年周计算)"
) ENGINE=OLAP
UNIQUE KEY(`time_date`)
DISTRIBUTED BY HASH(`time_date`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_1st_pay;
CREATE TABLE `dwd_1st_pay` (
`game_id` bigint NOT NULL,
`server_id` bigint NOT NULL,
`user_account` varchar(64) NOT NULL,
`role_id` varchar(64) NULL,
`order_id` varchar(64) NULL,
`amount` bigint NULL,
`prod_id` varchar(64) NULL,
`prod_name` varchar(64) NULL,
`pay_time` datetime NULL,
`ds` date NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `server_id`, `user_account`)
DISTRIBUTED BY HASH(`game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_ltv_reg;
CREATE TABLE `dwd_ltv_reg` (
`game_id` int NOT NULL,
`user_id` int NULL,
`reg_date` date NULL,
`amount` bigint NULL,
`rd` bigint NOT NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `user_id`)
DISTRIBUTED BY HASH(`game_id`, `user_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_ltv_role;
CREATE TABLE `dwd_ltv_role` (
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`role_id` varchar(64) NOT NULL,
`ds` date NULL,
`rd` int NULL,
`amount` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `server_id`, `role_id`)
DISTRIBUTED BY HASH(`game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_newly_payment;
CREATE TABLE `dwd_newly_payment` (
`game_id` int NOT NULL,
`user_id` int NULL,
`game_name` varchar(30) NULL,
`user_account` varchar(50) NULL,
`user_nickname` varchar(30) NULL,
`order_id` varchar(100) NOT NULL,
`role_id` varchar(50) NULL,
`role_name` varchar(100) NULL,
`server_id` varchar(50) NULL,
`server_name` varchar(30) NULL,
`platform_id` int NULL,
`promote_id` int NULL,
`amount` decimal(10,2) NULL,
`status` tinyint NOT NULL,
`pay_time` int NULL,
`pay_way` tinyint NULL,
`pay_company` varchar(20) NULL,
`ip` varchar(50) NULL,
`is_box_pay` tinyint NULL,
`scene` tinyint NULL,
`ds` date NULL,
`prod_id` int NULL,
`prod_name` varchar(30) NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `user_id`)
DISTRIBUTED BY HASH(`game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_platform_login_d;
CREATE TABLE `dwd_platform_login_d` (
`game_id` int NOT NULL,
`user_id` bigint NOT NULL,
`ds` date NULL,
`user_account` varchar(100) NULL,
`promote_id` int NULL,
`platform_id` int NULL,
`login_time` int NOT NULL,
`login_ip` varchar(50) NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `user_id`, `ds`)
DISTRIBUTED BY HASH(`game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_platform_login_m;
CREATE TABLE `dwd_platform_login_m` (
`game_id` int NOT NULL,
`user_id` bigint NOT NULL,
`ds` date NULL,
`user_account` varchar(100) NULL,
`promote_id` int NULL,
`platform_id` int NULL,
`login_time` int NOT NULL,
`login_ip` varchar(50) NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `user_id`, `ds`)
PARTITION BY RANGE(`ds`)
(PARTITION dwd_platform_login_m_202307 VALUES [('2023-07-01'), ('2023-08-01')),
PARTITION dwd_platform_login_m_202308 VALUES [('2023-08-01'), ('2023-09-01')),
PARTITION dwd_platform_login_m_202309 VALUES [('2023-09-01'), ('2023-10-01')),
PARTITION dwd_platform_login_m_202310 VALUES [('2023-10-01'), ('2023-11-01')),
PARTITION dwd_platform_login_m_202311 VALUES [('2023-11-01'), ('2023-12-01')),
PARTITION dwd_platform_login_m_202312 VALUES [('2023-12-01'), ('2024-01-01')),
PARTITION dwd_platform_login_m_202401 VALUES [('2024-01-01'), ('2024-02-01')),
PARTITION dwd_platform_login_m_202402 VALUES [('2024-02-01'), ('2024-03-01')),
PARTITION dwd_platform_login_m_202403 VALUES [('2024-03-01'), ('2024-04-01')),
PARTITION dwd_platform_login_m_202404 VALUES [('2024-04-01'), ('2024-05-01')),
PARTITION dwd_platform_login_m_202405 VALUES [('2024-05-01'), ('2024-06-01')),
PARTITION dwd_platform_login_m_202406 VALUES [('2024-06-01'), ('2024-07-01')),
PARTITION dwd_platform_login_m_202407 VALUES [('2024-07-01'), ('2024-08-01')),
PARTITION dwd_platform_login_m_202408 VALUES [('2024-08-01'), ('2024-09-01')),
PARTITION dwd_platform_login_m_202409 VALUES [('2024-09-01'), ('2024-10-01')),
PARTITION dwd_platform_login_m_202410 VALUES [('2024-10-01'), ('2024-11-01')),
PARTITION dwd_platform_login_m_202411 VALUES [('2024-11-01'), ('2024-12-01')),
PARTITION dwd_platform_login_m_202412 VALUES [('2024-12-01'), ('2025-01-01')),
PARTITION dwd_platform_login_m_202501 VALUES [('2025-01-01'), ('2025-02-01')),
PARTITION dwd_platform_login_m_202502 VALUES [('2025-02-01'), ('2025-03-01')),
PARTITION dwd_platform_login_m_202503 VALUES [('2025-03-01'), ('2025-04-01')),
PARTITION dwd_platform_login_m_202504 VALUES [('2025-04-01'), ('2025-05-01')),
PARTITION dwd_platform_login_m_202505 VALUES [('2025-05-01'), ('2025-06-01')),
PARTITION dwd_platform_login_m_202506 VALUES [('2025-06-01'), ('2025-07-01')),
PARTITION dwd_platform_login_m_202507 VALUES [('2025-07-01'), ('2025-08-01')),
PARTITION dwd_platform_login_m_202508 VALUES [('2025-08-01'), ('2025-09-01')),
PARTITION dwd_platform_login_m_202509 VALUES [('2025-09-01'), ('2025-10-01')),
PARTITION dwd_platform_login_m_202510 VALUES [('2025-10-01'), ('2025-11-01')))
DISTRIBUTED BY HASH(`game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"dynamic_partition.enable" = "true",
"dynamic_partition.time_unit" = "MONTH",
"dynamic_partition.time_zone" = "Asia/Shanghai",
"dynamic_partition.start" = "-24",
"dynamic_partition.end" = "3",
"dynamic_partition.prefix" = "dwd_platform_login_m_",
"dynamic_partition.replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"dynamic_partition.buckets" = "32",
"dynamic_partition.create_history_partition" = "true",
"dynamic_partition.history_partition_num" = "-1",
"dynamic_partition.hot_partition_num" = "0",
"dynamic_partition.reserved_history_periods" = "NULL",
"dynamic_partition.storage_policy" = "",
"dynamic_partition.start_day_of_month" = "1",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_platform_order;
CREATE TABLE `dwd_platform_order` (
`game_id` int NOT NULL,
`order_id` varchar(100) NOT NULL,
`server_id` int NULL,
`user_id` int NULL,
`user_account` varchar(50) NULL,
`role_id` varchar(100) NULL,
`amount` int NULL,
`prod_id` int NULL,
`prod_name` varchar(30) NULL,
`status` tinyint NULL,
`pay_time` int NULL,
`ds` date NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `order_id`)
DISTRIBUTED BY HASH(`game_id`, `order_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_platform_user;
CREATE TABLE `dwd_platform_user` (
`game_id` int NOT NULL,
`user_id` bigint NOT NULL,
`ds` date NULL,
`user_account` varchar(30) NULL,
`platform_id` int NULL,
`promote_id` int NULL,
`channel` varchar(20) NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `user_id`, `ds`)
PARTITION BY RANGE(`ds`)
(PARTITION p20250119 VALUES [('2025-01-19'), ('2025-01-20')),
PARTITION p20250120 VALUES [('2025-01-20'), ('2025-01-21')),
PARTITION p20250121 VALUES [('2025-01-21'), ('2025-01-22')),
PARTITION p20250122 VALUES [('2025-01-22'), ('2025-01-23')),
PARTITION p20250123 VALUES [('2025-01-23'), ('2025-01-24')),
PARTITION p20250124 VALUES [('2025-01-24'), ('2025-01-25')),
PARTITION p20250125 VALUES [('2025-01-25'), ('2025-01-26')),
PARTITION p20250126 VALUES [('2025-01-26'), ('2025-01-27')),
PARTITION p20250127 VALUES [('2025-01-27'), ('2025-01-28')),
PARTITION p20250128 VALUES [('2025-01-28'), ('2025-01-29')),
PARTITION p20250129 VALUES [('2025-01-29'), ('2025-01-30')),
PARTITION p20250130 VALUES [('2025-01-30'), ('2025-01-31')),
PARTITION p20250131 VALUES [('2025-01-31'), ('2025-02-01')),
PARTITION p20250201 VALUES [('2025-02-01'), ('2025-02-02')),
PARTITION p20250202 VALUES [('2025-02-02'), ('2025-02-03')),
PARTITION p20250203 VALUES [('2025-02-03'), ('2025-02-04')),
PARTITION p20250204 VALUES [('2025-02-04'), ('2025-02-05')),
PARTITION p20250205 VALUES [('2025-02-05'), ('2025-02-06')),
PARTITION p20250206 VALUES [('2025-02-06'), ('2025-02-07')),
PARTITION p20250207 VALUES [('2025-02-07'), ('2025-02-08')),
PARTITION p20250208 VALUES [('2025-02-08'), ('2025-02-09')),
PARTITION p20250209 VALUES [('2025-02-09'), ('2025-02-10')),
PARTITION p20250210 VALUES [('2025-02-10'), ('2025-02-11')),
PARTITION p20250211 VALUES [('2025-02-11'), ('2025-02-12')),
PARTITION p20250212 VALUES [('2025-02-12'), ('2025-02-13')),
PARTITION p20250213 VALUES [('2025-02-13'), ('2025-02-14')),
PARTITION p20250214 VALUES [('2025-02-14'), ('2025-02-15')),
PARTITION p20250215 VALUES [('2025-02-15'), ('2025-02-16')),
PARTITION p20250216 VALUES [('2025-02-16'), ('2025-02-17')),
PARTITION p20250217 VALUES [('2025-02-17'), ('2025-02-18')),
PARTITION p20250218 VALUES [('2025-02-18'), ('2025-02-19')),
PARTITION p20250219 VALUES [('2025-02-19'), ('2025-02-20')),
PARTITION p20250220 VALUES [('2025-02-20'), ('2025-02-21')),
PARTITION p20250221 VALUES [('2025-02-21'), ('2025-02-22')),
PARTITION p20250222 VALUES [('2025-02-22'), ('2025-02-23')),
PARTITION p20250223 VALUES [('2025-02-23'), ('2025-02-24')),
PARTITION p20250224 VALUES [('2025-02-24'), ('2025-02-25')),
PARTITION p20250225 VALUES [('2025-02-25'), ('2025-02-26')),
PARTITION p20250226 VALUES [('2025-02-26'), ('2025-02-27')),
PARTITION p20250227 VALUES [('2025-02-27'), ('2025-02-28')),
PARTITION p20250228 VALUES [('2025-02-28'), ('2025-03-01')),
PARTITION p20250301 VALUES [('2025-03-01'), ('2025-03-02')),
PARTITION p20250302 VALUES [('2025-03-02'), ('2025-03-03')),
PARTITION p20250303 VALUES [('2025-03-03'), ('2025-03-04')),
PARTITION p20250304 VALUES [('2025-03-04'), ('2025-03-05')),
PARTITION p20250305 VALUES [('2025-03-05'), ('2025-03-06')),
PARTITION p20250306 VALUES [('2025-03-06'), ('2025-03-07')),
PARTITION p20250307 VALUES [('2025-03-07'), ('2025-03-08')),
PARTITION p20250308 VALUES [('2025-03-08'), ('2025-03-09')),
PARTITION p20250309 VALUES [('2025-03-09'), ('2025-03-10')),
PARTITION p20250310 VALUES [('2025-03-10'), ('2025-03-11')),
PARTITION p20250311 VALUES [('2025-03-11'), ('2025-03-12')),
PARTITION p20250312 VALUES [('2025-03-12'), ('2025-03-13')),
PARTITION p20250313 VALUES [('2025-03-13'), ('2025-03-14')),
PARTITION p20250314 VALUES [('2025-03-14'), ('2025-03-15')),
PARTITION p20250315 VALUES [('2025-03-15'), ('2025-03-16')),
PARTITION p20250316 VALUES [('2025-03-16'), ('2025-03-17')),
PARTITION p20250317 VALUES [('2025-03-17'), ('2025-03-18')),
PARTITION p20250318 VALUES [('2025-03-18'), ('2025-03-19')),
PARTITION p20250319 VALUES [('2025-03-19'), ('2025-03-20')),
PARTITION p20250320 VALUES [('2025-03-20'), ('2025-03-21')),
PARTITION p20250321 VALUES [('2025-03-21'), ('2025-03-22')),
PARTITION p20250322 VALUES [('2025-03-22'), ('2025-03-23')),
PARTITION p20250323 VALUES [('2025-03-23'), ('2025-03-24')),
PARTITION p20250324 VALUES [('2025-03-24'), ('2025-03-25')),
PARTITION p20250325 VALUES [('2025-03-25'), ('2025-03-26')),
PARTITION p20250326 VALUES [('2025-03-26'), ('2025-03-27')),
PARTITION p20250327 VALUES [('2025-03-27'), ('2025-03-28')),
PARTITION p20250328 VALUES [('2025-03-28'), ('2025-03-29')),
PARTITION p20250329 VALUES [('2025-03-29'), ('2025-03-30')),
PARTITION p20250330 VALUES [('2025-03-30'), ('2025-03-31')),
PARTITION p20250331 VALUES [('2025-03-31'), ('2025-04-01')),
PARTITION p20250401 VALUES [('2025-04-01'), ('2025-04-02')),
PARTITION p20250402 VALUES [('2025-04-02'), ('2025-04-03')),
PARTITION p20250403 VALUES [('2025-04-03'), ('2025-04-04')),
PARTITION p20250404 VALUES [('2025-04-04'), ('2025-04-05')),
PARTITION p20250405 VALUES [('2025-04-05'), ('2025-04-06')),
PARTITION p20250406 VALUES [('2025-04-06'), ('2025-04-07')),
PARTITION p20250407 VALUES [('2025-04-07'), ('2025-04-08')),
PARTITION p20250408 VALUES [('2025-04-08'), ('2025-04-09')),
PARTITION p20250409 VALUES [('2025-04-09'), ('2025-04-10')),
PARTITION p20250410 VALUES [('2025-04-10'), ('2025-04-11')),
PARTITION p20250411 VALUES [('2025-04-11'), ('2025-04-12')),
PARTITION p20250412 VALUES [('2025-04-12'), ('2025-04-13')),
PARTITION p20250413 VALUES [('2025-04-13'), ('2025-04-14')),
PARTITION p20250414 VALUES [('2025-04-14'), ('2025-04-15')),
PARTITION p20250415 VALUES [('2025-04-15'), ('2025-04-16')),
PARTITION p20250416 VALUES [('2025-04-16'), ('2025-04-17')),
PARTITION p20250417 VALUES [('2025-04-17'), ('2025-04-18')),
PARTITION p20250418 VALUES [('2025-04-18'), ('2025-04-19')),
PARTITION p20250419 VALUES [('2025-04-19'), ('2025-04-20')),
PARTITION p20250420 VALUES [('2025-04-20'), ('2025-04-21')),
PARTITION p20250421 VALUES [('2025-04-21'), ('2025-04-22')),
PARTITION p20250422 VALUES [('2025-04-22'), ('2025-04-23')),
PARTITION p20250423 VALUES [('2025-04-23'), ('2025-04-24')),
PARTITION p20250424 VALUES [('2025-04-24'), ('2025-04-25')),
PARTITION p20250425 VALUES [('2025-04-25'), ('2025-04-26')),
PARTITION p20250426 VALUES [('2025-04-26'), ('2025-04-27')),
PARTITION p20250427 VALUES [('2025-04-27'), ('2025-04-28')),
PARTITION p20250428 VALUES [('2025-04-28'), ('2025-04-29')),
PARTITION p20250429 VALUES [('2025-04-29'), ('2025-04-30')),
PARTITION p20250430 VALUES [('2025-04-30'), ('2025-05-01')),
PARTITION p20250501 VALUES [('2025-05-01'), ('2025-05-02')),
PARTITION p20250502 VALUES [('2025-05-02'), ('2025-05-03')),
PARTITION p20250503 VALUES [('2025-05-03'), ('2025-05-04')),
PARTITION p20250504 VALUES [('2025-05-04'), ('2025-05-05')),
PARTITION p20250505 VALUES [('2025-05-05'), ('2025-05-06')),
PARTITION p20250506 VALUES [('2025-05-06'), ('2025-05-07')),
PARTITION p20250507 VALUES [('2025-05-07'), ('2025-05-08')),
PARTITION p20250508 VALUES [('2025-05-08'), ('2025-05-09')),
PARTITION p20250509 VALUES [('2025-05-09'), ('2025-05-10')),
PARTITION p20250510 VALUES [('2025-05-10'), ('2025-05-11')),
PARTITION p20250511 VALUES [('2025-05-11'), ('2025-05-12')),
PARTITION p20250512 VALUES [('2025-05-12'), ('2025-05-13')),
PARTITION p20250513 VALUES [('2025-05-13'), ('2025-05-14')),
PARTITION p20250514 VALUES [('2025-05-14'), ('2025-05-15')),
PARTITION p20250515 VALUES [('2025-05-15'), ('2025-05-16')),
PARTITION p20250516 VALUES [('2025-05-16'), ('2025-05-17')),
PARTITION p20250517 VALUES [('2025-05-17'), ('2025-05-18')),
PARTITION p20250518 VALUES [('2025-05-18'), ('2025-05-19')),
PARTITION p20250519 VALUES [('2025-05-19'), ('2025-05-20')),
PARTITION p20250520 VALUES [('2025-05-20'), ('2025-05-21')),
PARTITION p20250521 VALUES [('2025-05-21'), ('2025-05-22')),
PARTITION p20250522 VALUES [('2025-05-22'), ('2025-05-23')),
PARTITION p20250523 VALUES [('2025-05-23'), ('2025-05-24')),
PARTITION p20250524 VALUES [('2025-05-24'), ('2025-05-25')),
PARTITION p20250525 VALUES [('2025-05-25'), ('2025-05-26')),
PARTITION p20250526 VALUES [('2025-05-26'), ('2025-05-27')),
PARTITION p20250527 VALUES [('2025-05-27'), ('2025-05-28')),
PARTITION p20250528 VALUES [('2025-05-28'), ('2025-05-29')),
PARTITION p20250529 VALUES [('2025-05-29'), ('2025-05-30')),
PARTITION p20250530 VALUES [('2025-05-30'), ('2025-05-31')),
PARTITION p20250531 VALUES [('2025-05-31'), ('2025-06-01')),
PARTITION p20250601 VALUES [('2025-06-01'), ('2025-06-02')),
PARTITION p20250602 VALUES [('2025-06-02'), ('2025-06-03')),
PARTITION p20250603 VALUES [('2025-06-03'), ('2025-06-04')),
PARTITION p20250604 VALUES [('2025-06-04'), ('2025-06-05')),
PARTITION p20250605 VALUES [('2025-06-05'), ('2025-06-06')),
PARTITION p20250606 VALUES [('2025-06-06'), ('2025-06-07')),
PARTITION p20250607 VALUES [('2025-06-07'), ('2025-06-08')),
PARTITION p20250608 VALUES [('2025-06-08'), ('2025-06-09')),
PARTITION p20250609 VALUES [('2025-06-09'), ('2025-06-10')),
PARTITION p20250610 VALUES [('2025-06-10'), ('2025-06-11')),
PARTITION p20250611 VALUES [('2025-06-11'), ('2025-06-12')),
PARTITION p20250612 VALUES [('2025-06-12'), ('2025-06-13')),
PARTITION p20250613 VALUES [('2025-06-13'), ('2025-06-14')),
PARTITION p20250614 VALUES [('2025-06-14'), ('2025-06-15')),
PARTITION p20250615 VALUES [('2025-06-15'), ('2025-06-16')),
PARTITION p20250616 VALUES [('2025-06-16'), ('2025-06-17')),
PARTITION p20250617 VALUES [('2025-06-17'), ('2025-06-18')),
PARTITION p20250618 VALUES [('2025-06-18'), ('2025-06-19')),
PARTITION p20250619 VALUES [('2025-06-19'), ('2025-06-20')),
PARTITION p20250620 VALUES [('2025-06-20'), ('2025-06-21')),
PARTITION p20250621 VALUES [('2025-06-21'), ('2025-06-22')),
PARTITION p20250622 VALUES [('2025-06-22'), ('2025-06-23')),
PARTITION p20250623 VALUES [('2025-06-23'), ('2025-06-24')),
PARTITION p20250624 VALUES [('2025-06-24'), ('2025-06-25')),
PARTITION p20250625 VALUES [('2025-06-25'), ('2025-06-26')),
PARTITION p20250626 VALUES [('2025-06-26'), ('2025-06-27')),
PARTITION p20250627 VALUES [('2025-06-27'), ('2025-06-28')),
PARTITION p20250628 VALUES [('2025-06-28'), ('2025-06-29')),
PARTITION p20250629 VALUES [('2025-06-29'), ('2025-06-30')),
PARTITION p20250630 VALUES [('2025-06-30'), ('2025-07-01')),
PARTITION p20250701 VALUES [('2025-07-01'), ('2025-07-02')),
PARTITION p20250702 VALUES [('2025-07-02'), ('2025-07-03')),
PARTITION p20250703 VALUES [('2025-07-03'), ('2025-07-04')),
PARTITION p20250704 VALUES [('2025-07-04'), ('2025-07-05')),
PARTITION p20250705 VALUES [('2025-07-05'), ('2025-07-06')),
PARTITION p20250706 VALUES [('2025-07-06'), ('2025-07-07')),
PARTITION p20250707 VALUES [('2025-07-07'), ('2025-07-08')),
PARTITION p20250708 VALUES [('2025-07-08'), ('2025-07-09')),
PARTITION p20250709 VALUES [('2025-07-09'), ('2025-07-10')),
PARTITION p20250710 VALUES [('2025-07-10'), ('2025-07-11')),
PARTITION p20250711 VALUES [('2025-07-11'), ('2025-07-12')),
PARTITION p20250712 VALUES [('2025-07-12'), ('2025-07-13')),
PARTITION p20250713 VALUES [('2025-07-13'), ('2025-07-14')),
PARTITION p20250714 VALUES [('2025-07-14'), ('2025-07-15')),
PARTITION p20250715 VALUES [('2025-07-15'), ('2025-07-16')),
PARTITION p20250716 VALUES [('2025-07-16'), ('2025-07-17')),
PARTITION p20250717 VALUES [('2025-07-17'), ('2025-07-18')),
PARTITION p20250718 VALUES [('2025-07-18'), ('2025-07-19')),
PARTITION p20250719 VALUES [('2025-07-19'), ('2025-07-20')),
PARTITION p20250720 VALUES [('2025-07-20'), ('2025-07-21')),
PARTITION p20250721 VALUES [('2025-07-21'), ('2025-07-22')),
PARTITION p20250722 VALUES [('2025-07-22'), ('2025-07-23')),
PARTITION p20250723 VALUES [('2025-07-23'), ('2025-07-24')),
PARTITION p20250724 VALUES [('2025-07-24'), ('2025-07-25')),
PARTITION p20250725 VALUES [('2025-07-25'), ('2025-07-26')),
PARTITION p20250726 VALUES [('2025-07-26'), ('2025-07-27')))
DISTRIBUTED BY HASH(`game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"dynamic_partition.enable" = "true",
"dynamic_partition.time_unit" = "DAY",
"dynamic_partition.time_zone" = "Asia/Shanghai",
"dynamic_partition.start" = "-185",
"dynamic_partition.end" = "3",
"dynamic_partition.prefix" = "p",
"dynamic_partition.replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"dynamic_partition.buckets" = "32",
"dynamic_partition.create_history_partition" = "true",
"dynamic_partition.history_partition_num" = "-1",
"dynamic_partition.hot_partition_num" = "0",
"dynamic_partition.reserved_history_periods" = "NULL",
"dynamic_partition.storage_policy" = "",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_retention_act;
CREATE TABLE `dwd_retention_act` (
`game_id` int NOT NULL,
`user_id` bigint NOT NULL,
`ds` date NULL,
`rd` int NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `user_id`, `ds`, `rd`)
PARTITION BY RANGE(`ds`)
(PARTITION dwd_retention_act20250704 VALUES [('2025-07-04'), ('2025-07-05')),
PARTITION dwd_retention_act20250705 VALUES [('2025-07-05'), ('2025-07-06')),
PARTITION dwd_retention_act20250706 VALUES [('2025-07-06'), ('2025-07-07')),
PARTITION dwd_retention_act20250707 VALUES [('2025-07-07'), ('2025-07-08')),
PARTITION dwd_retention_act20250708 VALUES [('2025-07-08'), ('2025-07-09')),
PARTITION dwd_retention_act20250709 VALUES [('2025-07-09'), ('2025-07-10')),
PARTITION dwd_retention_act20250710 VALUES [('2025-07-10'), ('2025-07-11')),
PARTITION dwd_retention_act20250711 VALUES [('2025-07-11'), ('2025-07-12')),
PARTITION dwd_retention_act20250712 VALUES [('2025-07-12'), ('2025-07-13')),
PARTITION dwd_retention_act20250713 VALUES [('2025-07-13'), ('2025-07-14')),
PARTITION dwd_retention_act20250714 VALUES [('2025-07-14'), ('2025-07-15')),
PARTITION dwd_retention_act20250715 VALUES [('2025-07-15'), ('2025-07-16')),
PARTITION dwd_retention_act20250716 VALUES [('2025-07-16'), ('2025-07-17')),
PARTITION dwd_retention_act20250717 VALUES [('2025-07-17'), ('2025-07-18')),
PARTITION dwd_retention_act20250718 VALUES [('2025-07-18'), ('2025-07-19')),
PARTITION dwd_retention_act20250719 VALUES [('2025-07-19'), ('2025-07-20')),
PARTITION dwd_retention_act20250720 VALUES [('2025-07-20'), ('2025-07-21')),
PARTITION dwd_retention_act20250721 VALUES [('2025-07-21'), ('2025-07-22')),
PARTITION dwd_retention_act20250722 VALUES [('2025-07-22'), ('2025-07-23')),
PARTITION dwd_retention_act20250723 VALUES [('2025-07-23'), ('2025-07-24')),
PARTITION dwd_retention_act20250724 VALUES [('2025-07-24'), ('2025-07-25')),
PARTITION dwd_retention_act20250725 VALUES [('2025-07-25'), ('2025-07-26')),
PARTITION dwd_retention_act20250726 VALUES [('2025-07-26'), ('2025-07-27')))
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"dynamic_partition.enable" = "true",
"dynamic_partition.time_unit" = "DAY",
"dynamic_partition.time_zone" = "Asia/Shanghai",
"dynamic_partition.start" = "-190",
"dynamic_partition.end" = "3",
"dynamic_partition.prefix" = "dwd_retention_act",
"dynamic_partition.replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"dynamic_partition.buckets" = "32",
"dynamic_partition.create_history_partition" = "false",
"dynamic_partition.history_partition_num" = "-1",
"dynamic_partition.hot_partition_num" = "0",
"dynamic_partition.reserved_history_periods" = "NULL",
"dynamic_partition.storage_policy" = "",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_retention_act_m;
CREATE TABLE `dwd_retention_act_m` (
`game_id` int NOT NULL,
`user_id` bigint NOT NULL,
`ds` date NULL,
`rd` int NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `user_id`, `ds`, `rd`)
PARTITION BY RANGE(`ds`)
(PARTITION p202507 VALUES [('2025-07-01'), ('2025-08-01')),
PARTITION p202508 VALUES [('2025-08-01'), ('2025-09-01')),
PARTITION p202509 VALUES [('2025-09-01'), ('2025-10-01')),
PARTITION p202510 VALUES [('2025-10-01'), ('2025-11-01')))
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "1",
"is_being_synced" = "false",
"dynamic_partition.enable" = "true",
"dynamic_partition.time_unit" = "MONTH",
"dynamic_partition.time_zone" = "Asia/Shanghai",
"dynamic_partition.start" = "-5",
"dynamic_partition.end" = "3",
"dynamic_partition.prefix" = "p",
"dynamic_partition.replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"dynamic_partition.buckets" = "32",
"dynamic_partition.create_history_partition" = "false",
"dynamic_partition.history_partition_num" = "24",
"dynamic_partition.hot_partition_num" = "0",
"dynamic_partition.reserved_history_periods" = "NULL",
"dynamic_partition.storage_policy" = "",
"dynamic_partition.start_day_of_month" = "1",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_retention_act_w;
CREATE TABLE `dwd_retention_act_w` (
`game_id` int NOT NULL,
`user_id` bigint NOT NULL,
`ds` date NULL,
`rd` int NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `user_id`, `ds`, `rd`)
PARTITION BY RANGE(`ds`)
(PARTITION p2025_27 VALUES [('2025-06-30'), ('2025-07-07')),
PARTITION p2025_28 VALUES [('2025-07-07'), ('2025-07-14')),
PARTITION p2025_29 VALUES [('2025-07-14'), ('2025-07-21')),
PARTITION p2025_30 VALUES [('2025-07-21'), ('2025-07-28')),
PARTITION p2025_31 VALUES [('2025-07-28'), ('2025-08-04')),
PARTITION p2025_32 VALUES [('2025-08-04'), ('2025-08-11')),
PARTITION p2025_33 VALUES [('2025-08-11'), ('2025-08-18')))
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "1",
"is_being_synced" = "false",
"dynamic_partition.enable" = "true",
"dynamic_partition.time_unit" = "WEEK",
"dynamic_partition.time_zone" = "Asia/Shanghai",
"dynamic_partition.start" = "-5",
"dynamic_partition.end" = "3",
"dynamic_partition.prefix" = "p",
"dynamic_partition.replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"dynamic_partition.buckets" = "32",
"dynamic_partition.create_history_partition" = "false",
"dynamic_partition.history_partition_num" = "24",
"dynamic_partition.hot_partition_num" = "0",
"dynamic_partition.reserved_history_periods" = "NULL",
"dynamic_partition.storage_policy" = "",
"dynamic_partition.start_day_of_week" = "1",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_retention_active_device_m;
CREATE TABLE `dwd_retention_active_device_m` (
`appid` int NOT NULL,
`channel` varchar(64) NOT NULL,
`device_id` varchar(64) NOT NULL,
`ds` varchar(64) NOT NULL,
`rd` int NOT NULL,
`orig_channel` varchar(64) NULL
) ENGINE=OLAP
UNIQUE KEY(`appid`, `channel`, `device_id`, `ds`, `rd`)
DISTRIBUTED BY HASH(`appid`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_retention_active_device_w;
CREATE TABLE `dwd_retention_active_device_w` (
`appid` int NOT NULL,
`channel` varchar(64) NOT NULL,
`device_id` varchar(64) NOT NULL,
`ds` varchar(64) NOT NULL,
`rd` int NOT NULL,
`orig_channel` varchar(64) NULL
) ENGINE=OLAP
UNIQUE KEY(`appid`, `channel`, `device_id`, `ds`, `rd`)
DISTRIBUTED BY HASH(`appid`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_retention_active_role;
CREATE TABLE `dwd_retention_active_role` (
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`role_id` varchar(64) NOT NULL,
`ds` date NULL,
`dt` int NULL,
`rd` int NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `server_id`, `role_id`, `ds`, `dt`, `rd`)
DISTRIBUTED BY HASH(`dt`, `ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_retention_active_role_d;
CREATE TABLE `dwd_retention_active_role_d` (
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`role_id` varchar(64) NOT NULL,
`ds` date NULL,
`dt` int NULL,
`rd` int NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `server_id`, `role_id`, `ds`, `dt`, `rd`)
DISTRIBUTED BY HASH(`dt`, `ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_retention_apr;
CREATE TABLE `dwd_retention_apr` (
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`role_id` varchar(64) NOT NULL,
`ds` date NULL,
`dt` int NULL,
`rd` int NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `server_id`, `role_id`, `ds`, `dt`, `rd`)
DISTRIBUTED BY HASH(`dt`, `ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_retention_apu;
CREATE TABLE `dwd_retention_apu` (
`game_id` int NOT NULL,
`user_id` bigint NOT NULL,
`ds` date NULL,
`rd` int NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `user_id`, `ds`, `rd`)
DISTRIBUTED BY HASH(`ds`, `rd`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_retention_apu_m;
CREATE TABLE `dwd_retention_apu_m` (
`game_id` int NOT NULL,
`user_id` bigint NOT NULL,
`ds` date NULL,
`rd` int NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `user_id`, `ds`, `rd`)
DISTRIBUTED BY HASH(`ds`, `rd`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_retention_apu_w;
CREATE TABLE `dwd_retention_apu_w` (
`game_id` int NOT NULL,
`user_id` bigint NOT NULL,
`ds` date NULL,
`rd` int NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `user_id`, `ds`, `rd`)
DISTRIBUTED BY HASH(`ds`, `rd`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_retention_newly_role;
CREATE TABLE `dwd_retention_newly_role` (
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`role_id` varchar(64) NOT NULL,
`ds` date NULL,
`dt` int NULL,
`rd` int NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `server_id`, `role_id`, `ds`, `dt`, `rd`)
DISTRIBUTED BY HASH(`dt`, `ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_retention_npa_repay;
CREATE TABLE `dwd_retention_npa_repay` (
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`user_id` int NOT NULL,
`ds` date NULL,
`dt` int NULL,
`rd` int NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `server_id`, `user_id`, `ds`, `dt`, `rd`)
DISTRIBUTED BY HASH(`dt`, `ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_retention_npu;
CREATE TABLE `dwd_retention_npu` (
`game_id` int NOT NULL,
`user_id` int NOT NULL,
`ds` date NOT NULL,
`rd` int NOT NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `user_id`, `ds`, `rd`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_retention_npu_m;
CREATE TABLE `dwd_retention_npu_m` (
`game_id` int NOT NULL,
`user_id` int NOT NULL,
`ds` date NOT NULL,
`rd` int NOT NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `user_id`, `ds`, `rd`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_retention_npu_w;
CREATE TABLE `dwd_retention_npu_w` (
`game_id` int NOT NULL,
`user_id` int NOT NULL,
`ds` date NOT NULL,
`rd` int NOT NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `user_id`, `ds`, `rd`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_retention_reg;
CREATE TABLE `dwd_retention_reg` (
`game_id` int NOT NULL,
`user_id` int NOT NULL,
`ds` date NOT NULL,
`rd` int NOT NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `user_id`, `ds`, `rd`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_retention_reg_m;
CREATE TABLE `dwd_retention_reg_m` (
`game_id` int NOT NULL,
`user_id` int NOT NULL,
`ds` date NOT NULL,
`rd` int NOT NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `user_id`, `ds`, `rd`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_retention_reg_w;
CREATE TABLE `dwd_retention_reg_w` (
`game_id` int NOT NULL,
`user_id` int NOT NULL,
`ds` date NOT NULL,
`rd` int NOT NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `user_id`, `ds`, `rd`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_retention_repay_d;
CREATE TABLE `dwd_retention_repay_d` (
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`user_id` int NOT NULL,
`ds` date NOT NULL,
`rd` int NOT NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `server_id`, `user_id`, `ds`, `rd`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_union_1st_payment;
CREATE TABLE `dwd_union_1st_payment` (
`game_id` int NOT NULL,
`server_id` bigint NOT NULL,
`user_account` varchar(64) NOT NULL,
`role_id` varchar(64) NULL,
`order_id` varchar(64) NULL,
`amount` bigint NULL,
`prod_id` varchar(64) NULL,
`prod_name` varchar(64) NULL,
`pay_time` datetime NULL,
`ds` date NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `server_id`, `user_account`)
DISTRIBUTED BY HASH(`game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_union_newly_payment;
CREATE TABLE `dwd_union_newly_payment` (
`game_id` int NOT NULL,
`user_account` varchar(64) NULL,
`order_id` varchar(64) NOT NULL,
`role_id` varchar(64) NULL,
`server_id` int NULL,
`platform_id` varchar(64) NULL,
`product_id` varchar(64) NULL,
`amount` bigint NULL,
`status` int NULL,
`create_time` datetime NULL,
`ds` date NOT NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `user_account`)
DISTRIBUTED BY HASH(`game_id`) BUCKETS 30
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_union_oper_ltv;
CREATE TABLE `dwd_union_oper_ltv` (
`game_id` int NOT NULL,
`server_id` int NULL,
`user_account` varchar(64) NULL,
`amount` bigint NULL,
`ds` date NULL,
`rd` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `server_id`, `user_account`)
DISTRIBUTED BY HASH(`game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_union_oper_retention_act_d;
CREATE TABLE `dwd_union_oper_retention_act_d` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`user_account` varchar(50) NULL,
`rd` int NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`, `user_account`, `rd`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_union_oper_retention_act_m;
CREATE TABLE `dwd_union_oper_retention_act_m` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`user_account` varchar(50) NULL,
`rd` int NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`, `user_account`, `rd`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_union_oper_retention_act_w;
CREATE TABLE `dwd_union_oper_retention_act_w` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`user_account` varchar(50) NULL,
`rd` int NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`, `user_account`, `rd`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_union_oper_retention_apu_d;
CREATE TABLE `dwd_union_oper_retention_apu_d` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`user_account` varchar(50) NULL,
`rd` int NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`, `user_account`, `rd`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_union_oper_retention_apu_m;
CREATE TABLE `dwd_union_oper_retention_apu_m` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`user_account` varchar(50) NULL,
`rd` int NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`, `user_account`, `rd`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_union_oper_retention_apu_w;
CREATE TABLE `dwd_union_oper_retention_apu_w` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`user_account` varchar(50) NULL,
`rd` int NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`, `user_account`, `rd`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_union_oper_retention_npu_d;
CREATE TABLE `dwd_union_oper_retention_npu_d` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`user_account` varchar(50) NULL,
`rd` int NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`, `user_account`, `rd`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_union_oper_retention_npu_m;
CREATE TABLE `dwd_union_oper_retention_npu_m` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`user_account` varchar(50) NULL,
`rd` int NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`, `user_account`, `rd`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_union_oper_retention_npu_w;
CREATE TABLE `dwd_union_oper_retention_npu_w` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`user_account` varchar(50) NULL,
`rd` int NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`, `user_account`, `rd`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_union_oper_retention_reg_d;
CREATE TABLE `dwd_union_oper_retention_reg_d` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`user_account` varchar(50) NULL,
`rd` int NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`, `user_account`, `rd`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_union_oper_retention_reg_m;
CREATE TABLE `dwd_union_oper_retention_reg_m` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`user_account` varchar(50) NULL,
`rd` int NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`, `user_account`, `rd`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_union_oper_retention_reg_w;
CREATE TABLE `dwd_union_oper_retention_reg_w` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`user_account` varchar(50) NULL,
`rd` int NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`, `user_account`, `rd`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_union_retention_npa_repay;
CREATE TABLE `dwd_union_retention_npa_repay` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`user_account` varchar(50) NULL,
`dt` int NOT NULL,
`rd` int NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`, `user_account`, `dt`)
DISTRIBUTED BY HASH(`dt`, `ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dwd_union_retention_repay_d;
CREATE TABLE `dwd_union_retention_repay_d` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`user_account` varchar(50) NULL,
`rd` int NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`, `user_account`, `rd`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dws_account_1stpay;
CREATE TABLE `dws_account_1stpay` (
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`user_account` varchar(64) NOT NULL,
`pay_time` int NULL,
`amount` int NULL,
`prod_id` varchar(64) NULL,
`prod_name` varchar(64) NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `server_id`, `user_account`)
DISTRIBUTED BY HASH(`game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"function_column.sequence_type" = "int",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dws_analyze_account_1st;
CREATE TABLE `dws_analyze_account_1st` (
`game_id` bigint NOT NULL,
`server_id` bigint NOT NULL,
`user_account` varchar(64) NOT NULL,
`first_pay_time` datetime NOT NULL,
`amount` bigint NULL,
`prod_id` varchar(64) NULL,
`prod_name` varchar(64) NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `server_id`, `user_account`)
DISTRIBUTED BY HASH(`game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dws_role_1stpay;
CREATE TABLE `dws_role_1stpay` (
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`role_id` varchar(64) NOT NULL,
`pay_time` int NULL,
`amount` int NULL,
`prod_id` varchar(64) NULL,
`prod_name` varchar(64) NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `server_id`, `role_id`)
DISTRIBUTED BY HASH(`game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"function_column.sequence_type" = "int",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE dws_rolw_last;
CREATE TABLE `dws_rolw_last` (
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`role_id` varchar(64) NOT NULL,
`last_active_time` int MAX NULL,
`last_pay_time` int MAX NULL
) ENGINE=OLAP
AGGREGATE KEY(`game_id`, `server_id`, `role_id`)
DISTRIBUTED BY HASH(`game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728"
);
drop TABLE example_table_yinzhou;
CREATE TABLE `example_table_yinzhou` (
`a` varchar(50) NOT NULL COMMENT "唯一键",
`b` bigint MIN NULL COMMENT "冲突时更新为新值",
`c` double REPLACE NULL COMMENT "冲突时更新为新值",
`d` datetime MIN NULL COMMENT "冲突时保留所有记录中的最小值",
`first_occur_time` datetime REPLACE_IF_NOT_NULL NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=OLAP
AGGREGATE KEY(`a`)
DISTRIBUTED BY HASH(`a`) BUCKETS 10
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728"
);
drop TABLE game_info;
CREATE TABLE `game_info` (
`id` bigint NOT NULL,
`name` varchar(64) NOT NULL,
`zh_name` varchar(64) NOT NULL,
`gm_uid` bigint NOT NULL,
`gm_account` varchar(64) NULL,
`gm_name` varchar(64) NULL,
`gm_orig_uid` bigint NULL,
`is_union_oper` int NULL,
`create_time` bigint NULL,
`pay_company` varchar(64) NULL
) ENGINE=OLAP
UNIQUE KEY(`id`)
DISTRIBUTED BY HASH(`id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE game_merge;
CREATE TABLE `game_merge` (
`src` varchar(64) NOT NULL,
`id` bigint NOT NULL,
`game_id` int NULL,
`start_id` int NULL,
`end_ids` varchar(64) NULL,
`isconfirm` int NULL,
`merge_time` int NULL
) ENGINE=OLAP
UNIQUE KEY(`src`, `id`)
DISTRIBUTED BY HASH(`src`, `id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE game_server;
CREATE TABLE `game_server` (
`game_id` int NOT NULL,
`id` int NOT NULL,
`mid` int NULL,
`name` varchar(50) NULL,
`isconfirm` tinyint NULL,
`del` tinyint NULL,
`state` tinyint NULL,
`open_time` int NULL,
`space_id` int NULL,
`space_type` tinyint NULL,
`engine_version` varchar(255) NULL,
`server_type` varchar(16) NULL,
`kuafu_game_id` varchar(20) NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `id`)
DISTRIBUTED BY HASH(`game_id`, `id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE gm_apply;
CREATE TABLE `gm_apply` (
`id` int NULL COMMENT "主键",
`appkey` char(32) NULL COMMENT "appkey",
`name` varchar(50) NOT NULL COMMENT "标题",
`chart` varchar(10) NULL COMMENT "首字母",
`platform` int NOT NULL DEFAULT "1" COMMENT "1-Android,2-iphone,3-pc",
`desc` varchar(255) NULL COMMENT "描述",
`status` tinyint NOT NULL DEFAULT "1" COMMENT "状态:1-有效,0-失效",
`game_id` int NOT NULL COMMENT "游戏id",
`channel_id` int NOT NULL COMMENT "渠道id",
`uid` int NOT NULL COMMENT "所属用户id",
`account` varchar(50) NOT NULL COMMENT "所属用户账号",
`relation_advert` tinyint NOT NULL COMMENT "关联广告0-否1-是",
`payment_appear_way` tinyint NOT NULL DEFAULT "1" COMMENT "付费上报方式1-服务端上报2-客户端上报",
`advert_callback_way` tinyint NOT NULL DEFAULT "1" COMMENT "事件回传逻辑1激活归因 2注册归因 ",
`active_expire_days` int NOT NULL DEFAULT "30" COMMENT "激活有效期(天)",
`create_time` int NOT NULL COMMENT "创建时间",
`update_time` int NOT NULL COMMENT "更新时间",
`analysis_limit` bigint NOT NULL DEFAULT "500000000" COMMENT "自定义分析额度",
`event_limit` int NOT NULL DEFAULT "30" COMMENT "自定义分析数量限制",
`analysis_status` tinyint NOT NULL DEFAULT "1" COMMENT "自定义分析限制状态 0.已限制 1.未限制",
`bind_game_id` int NOT NULL COMMENT "绑定游戏id",
`bind_type` tinyint NOT NULL COMMENT "0-常规应用,1-游戏默认应用",
`bind_appid` int NOT NULL COMMENT "绑定的默认应用appid",
`analysis_used` bigint NOT NULL COMMENT "自定义分析已用额度",
`bind_game_type` tinyint NOT NULL COMMENT "游戏绑定类型0-默认|1-传奇|2-传世|3-仙侠|4-传3",
`app_id` char(32) NULL COMMENT "appid",
`demo` tinyint NOT NULL COMMENT "demo数据展示1-展示",
`event_report` tinyint NOT NULL COMMENT "是否生成默认报表1-是",
`engine_push_sw` int NULL COMMENT "引擎上报开关二进制表示法参考model",
`qq` varchar(32) NOT NULL DEFAULT "" COMMENT "qq",
`prodid` text NOT NULL COMMENT "prodid和名称关系",
`prodid_time` int NOT NULL COMMENT "申请时间",
`analysis_full_time` int NULL COMMENT "自定义分析额度满额时间",
`return_account_status` tinyint NULL COMMENT "回流账号判断 0关闭 1开启"
) ENGINE=OLAP
UNIQUE KEY(`id`)
DISTRIBUTED BY HASH(`id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE gm_info;
CREATE TABLE `gm_info` (
`id` bigint NOT NULL,
`biz_name` varchar(64) NOT NULL,
`account` varchar(64) NULL,
`real_name` varchar(64) NULL,
`parent_uid` bigint NULL,
`mode` int NULL,
`signing` int NULL,
`status` varchar(64) NULL,
`join_time` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`id`, `biz_name`)
DISTRIBUTED BY HASH(`id`, `biz_name`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE gm_space;
CREATE TABLE `gm_space` (
`id` int NOT NULL,
`gm_uid` int NOT NULL,
`space_name` varchar(50) NULL,
`space_type` int NULL,
`buy_time` int NULL,
`stime` int NULL,
`etime` int NULL,
`server_id` int NULL,
`state` tinyint NULL
) ENGINE=OLAP
UNIQUE KEY(`id`)
DISTRIBUTED BY HASH(`id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE juhe_order;
CREATE TABLE `juhe_order` (
`id` bigint NOT NULL,
`user_external_id` varchar(64) NULL,
`game_identient` varchar(64) NULL,
`game_name` varchar(64) NULL,
`server_id` varchar(64) NULL,
`server_name` varchar(64) NULL,
`game_player_id` varchar(64) NULL,
`game_player_name` varchar(64) NULL,
`order_number` varchar(64) NULL,
`game_order_number` varchar(64) NULL,
`pay_order_number` varchar(64) NULL,
`product_id` varchar(64) NULL,
`props_name` varchar(64) NULL,
`pay_amount` decimal(10,2) NULL,
`create_time` bigint NULL,
`pay_time` bigint NULL,
`pay_status` int NULL,
`pay_game_status` int NULL,
`ip` varchar(64) NULL,
`deviceinfo` varchar(64) NULL,
`channel_id` varchar(64) NULL,
`package_id` varchar(64) NULL,
`channel` varchar(64) NULL
) ENGINE=OLAP
UNIQUE KEY(`id`)
DISTRIBUTED BY HASH(`id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE juhe_user;
CREATE TABLE `juhe_user` (
`id` bigint NOT NULL,
`account` varchar(64) NULL,
`register_time` bigint NULL,
`register_ip` varchar(64) NULL,
`external_id` varchar(64) NULL,
`device_id` varchar(64) NULL,
`game_id` int NULL,
`game_name` varchar(64) NULL,
`device` varchar(64) NULL,
`channel_id` varchar(64) NULL,
`package_id` varchar(64) NULL,
`channel` varchar(64) NULL,
`channel_uid` varchar(64) NULL
) ENGINE=OLAP
UNIQUE KEY(`id`)
DISTRIBUTED BY HASH(`id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE monthly_sales;
CREATE TABLE `monthly_sales` (
`order_id` bigint NOT NULL COMMENT "订单ID",
`sale_date` date NOT NULL COMMENT "销售日期(分区列)",
`product_id` int NOT NULL COMMENT "商品ID",
`revenue` decimal(12,2) NULL DEFAULT "0" COMMENT "销售额",
`quantity` int NULL DEFAULT "0" COMMENT "销量"
) ENGINE=OLAP
UNIQUE KEY(`order_id`, `sale_date`)
PARTITION BY RANGE(`sale_date`)
(PARTITION p_202501 VALUES [('2025-01-01'), ('2025-02-01')),
PARTITION p_202502 VALUES [('2025-02-01'), ('2025-03-01')),
PARTITION p_202503 VALUES [('2025-03-01'), ('2025-04-01')),
PARTITION p_202504 VALUES [('2025-04-01'), ('2025-05-01')),
PARTITION p_202505 VALUES [('2025-05-01'), ('2025-06-01')),
PARTITION p_202506 VALUES [('2025-06-01'), ('2025-07-01')),
PARTITION p_202507 VALUES [('2025-07-01'), ('2025-08-01')),
PARTITION p_202508 VALUES [('2025-08-01'), ('2025-09-01')),
PARTITION p_202509 VALUES [('2025-09-01'), ('2025-10-01')),
PARTITION p_202510 VALUES [('2025-10-01'), ('2025-11-01')))
DISTRIBUTED BY HASH(`order_id`) BUCKETS 8
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"dynamic_partition.enable" = "true",
"dynamic_partition.time_unit" = "MONTH",
"dynamic_partition.time_zone" = "Asia/Shanghai",
"dynamic_partition.start" = "-6",
"dynamic_partition.end" = "3",
"dynamic_partition.prefix" = "p_",
"dynamic_partition.replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"dynamic_partition.buckets" = "32",
"dynamic_partition.create_history_partition" = "true",
"dynamic_partition.history_partition_num" = "-1",
"dynamic_partition.hot_partition_num" = "0",
"dynamic_partition.reserved_history_periods" = "NULL",
"dynamic_partition.storage_policy" = "",
"dynamic_partition.start_day_of_month" = "1",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE ods_across_server;
CREATE TABLE `ods_across_server` (
`id` int NOT NULL,
`game_id` int NOT NULL,
`serverids` varchar(100) NULL,
`status` tinyint NULL,
`create_time` datetime NOT NULL
) ENGINE=OLAP
UNIQUE KEY(`id`)
DISTRIBUTED BY HASH(`id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE ods_active_account;
CREATE TABLE `ods_active_account` (
`game_id` int NOT NULL COMMENT "游戏ID",
`server_id` int NOT NULL COMMENT "服务器ID",
`user_account` varchar(64) NOT NULL COMMENT "用户账号",
`ds` date NOT NULL COMMENT "日期分区",
`create_time` bigint NULL COMMENT "创建时间戳"
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `server_id`, `user_account`, `ds`)
PARTITION BY RANGE(`ds`)
(PARTITION ods_active_account_20250114 VALUES [('2025-01-14'), ('2025-01-15')),
PARTITION ods_active_account_20250115 VALUES [('2025-01-15'), ('2025-01-16')),
PARTITION ods_active_account_20250116 VALUES [('2025-01-16'), ('2025-01-17')),
PARTITION ods_active_account_20250117 VALUES [('2025-01-17'), ('2025-01-18')),
PARTITION ods_active_account_20250118 VALUES [('2025-01-18'), ('2025-01-19')),
PARTITION ods_active_account_20250119 VALUES [('2025-01-19'), ('2025-01-20')),
PARTITION ods_active_account_20250120 VALUES [('2025-01-20'), ('2025-01-21')),
PARTITION ods_active_account_20250121 VALUES [('2025-01-21'), ('2025-01-22')),
PARTITION ods_active_account_20250122 VALUES [('2025-01-22'), ('2025-01-23')),
PARTITION ods_active_account_20250123 VALUES [('2025-01-23'), ('2025-01-24')),
PARTITION ods_active_account_20250124 VALUES [('2025-01-24'), ('2025-01-25')),
PARTITION ods_active_account_20250125 VALUES [('2025-01-25'), ('2025-01-26')),
PARTITION ods_active_account_20250126 VALUES [('2025-01-26'), ('2025-01-27')),
PARTITION ods_active_account_20250127 VALUES [('2025-01-27'), ('2025-01-28')),
PARTITION ods_active_account_20250128 VALUES [('2025-01-28'), ('2025-01-29')),
PARTITION ods_active_account_20250129 VALUES [('2025-01-29'), ('2025-01-30')),
PARTITION ods_active_account_20250130 VALUES [('2025-01-30'), ('2025-01-31')),
PARTITION ods_active_account_20250131 VALUES [('2025-01-31'), ('2025-02-01')),
PARTITION ods_active_account_20250201 VALUES [('2025-02-01'), ('2025-02-02')),
PARTITION ods_active_account_20250202 VALUES [('2025-02-02'), ('2025-02-03')),
PARTITION ods_active_account_20250203 VALUES [('2025-02-03'), ('2025-02-04')),
PARTITION ods_active_account_20250204 VALUES [('2025-02-04'), ('2025-02-05')),
PARTITION ods_active_account_20250205 VALUES [('2025-02-05'), ('2025-02-06')),
PARTITION ods_active_account_20250206 VALUES [('2025-02-06'), ('2025-02-07')),
PARTITION ods_active_account_20250207 VALUES [('2025-02-07'), ('2025-02-08')),
PARTITION ods_active_account_20250208 VALUES [('2025-02-08'), ('2025-02-09')),
PARTITION ods_active_account_20250209 VALUES [('2025-02-09'), ('2025-02-10')),
PARTITION ods_active_account_20250210 VALUES [('2025-02-10'), ('2025-02-11')),
PARTITION ods_active_account_20250211 VALUES [('2025-02-11'), ('2025-02-12')),
PARTITION ods_active_account_20250212 VALUES [('2025-02-12'), ('2025-02-13')),
PARTITION ods_active_account_20250213 VALUES [('2025-02-13'), ('2025-02-14')),
PARTITION ods_active_account_20250214 VALUES [('2025-02-14'), ('2025-02-15')),
PARTITION ods_active_account_20250215 VALUES [('2025-02-15'), ('2025-02-16')),
PARTITION ods_active_account_20250216 VALUES [('2025-02-16'), ('2025-02-17')),
PARTITION ods_active_account_20250217 VALUES [('2025-02-17'), ('2025-02-18')),
PARTITION ods_active_account_20250218 VALUES [('2025-02-18'), ('2025-02-19')),
PARTITION ods_active_account_20250219 VALUES [('2025-02-19'), ('2025-02-20')),
PARTITION ods_active_account_20250220 VALUES [('2025-02-20'), ('2025-02-21')),
PARTITION ods_active_account_20250221 VALUES [('2025-02-21'), ('2025-02-22')),
PARTITION ods_active_account_20250222 VALUES [('2025-02-22'), ('2025-02-23')),
PARTITION ods_active_account_20250223 VALUES [('2025-02-23'), ('2025-02-24')),
PARTITION ods_active_account_20250224 VALUES [('2025-02-24'), ('2025-02-25')),
PARTITION ods_active_account_20250225 VALUES [('2025-02-25'), ('2025-02-26')),
PARTITION ods_active_account_20250226 VALUES [('2025-02-26'), ('2025-02-27')),
PARTITION ods_active_account_20250227 VALUES [('2025-02-27'), ('2025-02-28')),
PARTITION ods_active_account_20250228 VALUES [('2025-02-28'), ('2025-03-01')),
PARTITION ods_active_account_20250301 VALUES [('2025-03-01'), ('2025-03-02')),
PARTITION ods_active_account_20250302 VALUES [('2025-03-02'), ('2025-03-03')),
PARTITION ods_active_account_20250303 VALUES [('2025-03-03'), ('2025-03-04')),
PARTITION ods_active_account_20250304 VALUES [('2025-03-04'), ('2025-03-05')),
PARTITION ods_active_account_20250305 VALUES [('2025-03-05'), ('2025-03-06')),
PARTITION ods_active_account_20250306 VALUES [('2025-03-06'), ('2025-03-07')),
PARTITION ods_active_account_20250307 VALUES [('2025-03-07'), ('2025-03-08')),
PARTITION ods_active_account_20250308 VALUES [('2025-03-08'), ('2025-03-09')),
PARTITION ods_active_account_20250309 VALUES [('2025-03-09'), ('2025-03-10')),
PARTITION ods_active_account_20250310 VALUES [('2025-03-10'), ('2025-03-11')),
PARTITION ods_active_account_20250311 VALUES [('2025-03-11'), ('2025-03-12')),
PARTITION ods_active_account_20250312 VALUES [('2025-03-12'), ('2025-03-13')),
PARTITION ods_active_account_20250313 VALUES [('2025-03-13'), ('2025-03-14')),
PARTITION ods_active_account_20250314 VALUES [('2025-03-14'), ('2025-03-15')),
PARTITION ods_active_account_20250315 VALUES [('2025-03-15'), ('2025-03-16')),
PARTITION ods_active_account_20250316 VALUES [('2025-03-16'), ('2025-03-17')),
PARTITION ods_active_account_20250317 VALUES [('2025-03-17'), ('2025-03-18')),
PARTITION ods_active_account_20250318 VALUES [('2025-03-18'), ('2025-03-19')),
PARTITION ods_active_account_20250319 VALUES [('2025-03-19'), ('2025-03-20')),
PARTITION ods_active_account_20250320 VALUES [('2025-03-20'), ('2025-03-21')),
PARTITION ods_active_account_20250321 VALUES [('2025-03-21'), ('2025-03-22')),
PARTITION ods_active_account_20250322 VALUES [('2025-03-22'), ('2025-03-23')),
PARTITION ods_active_account_20250323 VALUES [('2025-03-23'), ('2025-03-24')),
PARTITION ods_active_account_20250324 VALUES [('2025-03-24'), ('2025-03-25')),
PARTITION ods_active_account_20250325 VALUES [('2025-03-25'), ('2025-03-26')),
PARTITION ods_active_account_20250326 VALUES [('2025-03-26'), ('2025-03-27')),
PARTITION ods_active_account_20250327 VALUES [('2025-03-27'), ('2025-03-28')),
PARTITION ods_active_account_20250328 VALUES [('2025-03-28'), ('2025-03-29')),
PARTITION ods_active_account_20250329 VALUES [('2025-03-29'), ('2025-03-30')),
PARTITION ods_active_account_20250330 VALUES [('2025-03-30'), ('2025-03-31')),
PARTITION ods_active_account_20250331 VALUES [('2025-03-31'), ('2025-04-01')),
PARTITION ods_active_account_20250401 VALUES [('2025-04-01'), ('2025-04-02')),
PARTITION ods_active_account_20250402 VALUES [('2025-04-02'), ('2025-04-03')),
PARTITION ods_active_account_20250403 VALUES [('2025-04-03'), ('2025-04-04')),
PARTITION ods_active_account_20250404 VALUES [('2025-04-04'), ('2025-04-05')),
PARTITION ods_active_account_20250405 VALUES [('2025-04-05'), ('2025-04-06')),
PARTITION ods_active_account_20250406 VALUES [('2025-04-06'), ('2025-04-07')),
PARTITION ods_active_account_20250407 VALUES [('2025-04-07'), ('2025-04-08')),
PARTITION ods_active_account_20250408 VALUES [('2025-04-08'), ('2025-04-09')),
PARTITION ods_active_account_20250409 VALUES [('2025-04-09'), ('2025-04-10')),
PARTITION ods_active_account_20250410 VALUES [('2025-04-10'), ('2025-04-11')),
PARTITION ods_active_account_20250411 VALUES [('2025-04-11'), ('2025-04-12')),
PARTITION ods_active_account_20250412 VALUES [('2025-04-12'), ('2025-04-13')),
PARTITION ods_active_account_20250413 VALUES [('2025-04-13'), ('2025-04-14')),
PARTITION ods_active_account_20250414 VALUES [('2025-04-14'), ('2025-04-15')),
PARTITION ods_active_account_20250415 VALUES [('2025-04-15'), ('2025-04-16')),
PARTITION ods_active_account_20250416 VALUES [('2025-04-16'), ('2025-04-17')),
PARTITION ods_active_account_20250417 VALUES [('2025-04-17'), ('2025-04-18')),
PARTITION ods_active_account_20250418 VALUES [('2025-04-18'), ('2025-04-19')),
PARTITION ods_active_account_20250419 VALUES [('2025-04-19'), ('2025-04-20')),
PARTITION ods_active_account_20250420 VALUES [('2025-04-20'), ('2025-04-21')),
PARTITION ods_active_account_20250421 VALUES [('2025-04-21'), ('2025-04-22')),
PARTITION ods_active_account_20250422 VALUES [('2025-04-22'), ('2025-04-23')),
PARTITION ods_active_account_20250423 VALUES [('2025-04-23'), ('2025-04-24')),
PARTITION ods_active_account_20250424 VALUES [('2025-04-24'), ('2025-04-25')),
PARTITION ods_active_account_20250425 VALUES [('2025-04-25'), ('2025-04-26')),
PARTITION ods_active_account_20250426 VALUES [('2025-04-26'), ('2025-04-27')),
PARTITION ods_active_account_20250427 VALUES [('2025-04-27'), ('2025-04-28')),
PARTITION ods_active_account_20250428 VALUES [('2025-04-28'), ('2025-04-29')),
PARTITION ods_active_account_20250429 VALUES [('2025-04-29'), ('2025-04-30')),
PARTITION ods_active_account_20250430 VALUES [('2025-04-30'), ('2025-05-01')),
PARTITION ods_active_account_20250501 VALUES [('2025-05-01'), ('2025-05-02')),
PARTITION ods_active_account_20250502 VALUES [('2025-05-02'), ('2025-05-03')),
PARTITION ods_active_account_20250503 VALUES [('2025-05-03'), ('2025-05-04')),
PARTITION ods_active_account_20250504 VALUES [('2025-05-04'), ('2025-05-05')),
PARTITION ods_active_account_20250505 VALUES [('2025-05-05'), ('2025-05-06')),
PARTITION ods_active_account_20250506 VALUES [('2025-05-06'), ('2025-05-07')),
PARTITION ods_active_account_20250507 VALUES [('2025-05-07'), ('2025-05-08')),
PARTITION ods_active_account_20250508 VALUES [('2025-05-08'), ('2025-05-09')),
PARTITION ods_active_account_20250509 VALUES [('2025-05-09'), ('2025-05-10')),
PARTITION ods_active_account_20250510 VALUES [('2025-05-10'), ('2025-05-11')),
PARTITION ods_active_account_20250511 VALUES [('2025-05-11'), ('2025-05-12')),
PARTITION ods_active_account_20250512 VALUES [('2025-05-12'), ('2025-05-13')),
PARTITION ods_active_account_20250513 VALUES [('2025-05-13'), ('2025-05-14')),
PARTITION ods_active_account_20250514 VALUES [('2025-05-14'), ('2025-05-15')),
PARTITION ods_active_account_20250515 VALUES [('2025-05-15'), ('2025-05-16')),
PARTITION ods_active_account_20250516 VALUES [('2025-05-16'), ('2025-05-17')),
PARTITION ods_active_account_20250517 VALUES [('2025-05-17'), ('2025-05-18')),
PARTITION ods_active_account_20250518 VALUES [('2025-05-18'), ('2025-05-19')),
PARTITION ods_active_account_20250519 VALUES [('2025-05-19'), ('2025-05-20')),
PARTITION ods_active_account_20250520 VALUES [('2025-05-20'), ('2025-05-21')),
PARTITION ods_active_account_20250521 VALUES [('2025-05-21'), ('2025-05-22')),
PARTITION ods_active_account_20250522 VALUES [('2025-05-22'), ('2025-05-23')),
PARTITION ods_active_account_20250523 VALUES [('2025-05-23'), ('2025-05-24')),
PARTITION ods_active_account_20250524 VALUES [('2025-05-24'), ('2025-05-25')),
PARTITION ods_active_account_20250525 VALUES [('2025-05-25'), ('2025-05-26')),
PARTITION ods_active_account_20250526 VALUES [('2025-05-26'), ('2025-05-27')),
PARTITION ods_active_account_20250527 VALUES [('2025-05-27'), ('2025-05-28')),
PARTITION ods_active_account_20250528 VALUES [('2025-05-28'), ('2025-05-29')),
PARTITION ods_active_account_20250529 VALUES [('2025-05-29'), ('2025-05-30')),
PARTITION ods_active_account_20250530 VALUES [('2025-05-30'), ('2025-05-31')),
PARTITION ods_active_account_20250531 VALUES [('2025-05-31'), ('2025-06-01')),
PARTITION ods_active_account_20250601 VALUES [('2025-06-01'), ('2025-06-02')),
PARTITION ods_active_account_20250602 VALUES [('2025-06-02'), ('2025-06-03')),
PARTITION ods_active_account_20250603 VALUES [('2025-06-03'), ('2025-06-04')),
PARTITION ods_active_account_20250604 VALUES [('2025-06-04'), ('2025-06-05')),
PARTITION ods_active_account_20250605 VALUES [('2025-06-05'), ('2025-06-06')),
PARTITION ods_active_account_20250606 VALUES [('2025-06-06'), ('2025-06-07')),
PARTITION ods_active_account_20250607 VALUES [('2025-06-07'), ('2025-06-08')),
PARTITION ods_active_account_20250608 VALUES [('2025-06-08'), ('2025-06-09')),
PARTITION ods_active_account_20250609 VALUES [('2025-06-09'), ('2025-06-10')),
PARTITION ods_active_account_20250610 VALUES [('2025-06-10'), ('2025-06-11')),
PARTITION ods_active_account_20250611 VALUES [('2025-06-11'), ('2025-06-12')),
PARTITION ods_active_account_20250612 VALUES [('2025-06-12'), ('2025-06-13')),
PARTITION ods_active_account_20250613 VALUES [('2025-06-13'), ('2025-06-14')),
PARTITION ods_active_account_20250614 VALUES [('2025-06-14'), ('2025-06-15')),
PARTITION ods_active_account_20250615 VALUES [('2025-06-15'), ('2025-06-16')),
PARTITION ods_active_account_20250616 VALUES [('2025-06-16'), ('2025-06-17')),
PARTITION ods_active_account_20250617 VALUES [('2025-06-17'), ('2025-06-18')),
PARTITION ods_active_account_20250618 VALUES [('2025-06-18'), ('2025-06-19')),
PARTITION ods_active_account_20250619 VALUES [('2025-06-19'), ('2025-06-20')),
PARTITION ods_active_account_20250620 VALUES [('2025-06-20'), ('2025-06-21')),
PARTITION ods_active_account_20250621 VALUES [('2025-06-21'), ('2025-06-22')),
PARTITION ods_active_account_20250622 VALUES [('2025-06-22'), ('2025-06-23')),
PARTITION ods_active_account_20250623 VALUES [('2025-06-23'), ('2025-06-24')),
PARTITION ods_active_account_20250624 VALUES [('2025-06-24'), ('2025-06-25')),
PARTITION ods_active_account_20250625 VALUES [('2025-06-25'), ('2025-06-26')),
PARTITION ods_active_account_20250626 VALUES [('2025-06-26'), ('2025-06-27')),
PARTITION ods_active_account_20250627 VALUES [('2025-06-27'), ('2025-06-28')),
PARTITION ods_active_account_20250628 VALUES [('2025-06-28'), ('2025-06-29')),
PARTITION ods_active_account_20250629 VALUES [('2025-06-29'), ('2025-06-30')),
PARTITION ods_active_account_20250630 VALUES [('2025-06-30'), ('2025-07-01')),
PARTITION ods_active_account_20250701 VALUES [('2025-07-01'), ('2025-07-02')),
PARTITION ods_active_account_20250702 VALUES [('2025-07-02'), ('2025-07-03')),
PARTITION ods_active_account_20250703 VALUES [('2025-07-03'), ('2025-07-04')),
PARTITION ods_active_account_20250704 VALUES [('2025-07-04'), ('2025-07-05')),
PARTITION ods_active_account_20250705 VALUES [('2025-07-05'), ('2025-07-06')),
PARTITION ods_active_account_20250706 VALUES [('2025-07-06'), ('2025-07-07')),
PARTITION ods_active_account_20250707 VALUES [('2025-07-07'), ('2025-07-08')),
PARTITION ods_active_account_20250708 VALUES [('2025-07-08'), ('2025-07-09')),
PARTITION ods_active_account_20250709 VALUES [('2025-07-09'), ('2025-07-10')),
PARTITION ods_active_account_20250710 VALUES [('2025-07-10'), ('2025-07-11')),
PARTITION ods_active_account_20250711 VALUES [('2025-07-11'), ('2025-07-12')),
PARTITION ods_active_account_20250712 VALUES [('2025-07-12'), ('2025-07-13')),
PARTITION ods_active_account_20250713 VALUES [('2025-07-13'), ('2025-07-14')),
PARTITION ods_active_account_20250714 VALUES [('2025-07-14'), ('2025-07-15')),
PARTITION ods_active_account_20250715 VALUES [('2025-07-15'), ('2025-07-16')),
PARTITION ods_active_account_20250716 VALUES [('2025-07-16'), ('2025-07-17')),
PARTITION ods_active_account_20250717 VALUES [('2025-07-17'), ('2025-07-18')),
PARTITION ods_active_account_20250718 VALUES [('2025-07-18'), ('2025-07-19')),
PARTITION ods_active_account_20250719 VALUES [('2025-07-19'), ('2025-07-20')),
PARTITION ods_active_account_20250720 VALUES [('2025-07-20'), ('2025-07-21')),
PARTITION ods_active_account_20250721 VALUES [('2025-07-21'), ('2025-07-22')),
PARTITION ods_active_account_20250722 VALUES [('2025-07-22'), ('2025-07-23')),
PARTITION ods_active_account_20250723 VALUES [('2025-07-23'), ('2025-07-24')),
PARTITION ods_active_account_20250724 VALUES [('2025-07-24'), ('2025-07-25')),
PARTITION ods_active_account_20250725 VALUES [('2025-07-25'), ('2025-07-26')),
PARTITION ods_active_account_20250726 VALUES [('2025-07-26'), ('2025-07-27')))
DISTRIBUTED BY HASH(`ds`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"dynamic_partition.enable" = "true",
"dynamic_partition.time_unit" = "DAY",
"dynamic_partition.time_zone" = "Asia/Shanghai",
"dynamic_partition.start" = "-190",
"dynamic_partition.end" = "3",
"dynamic_partition.prefix" = "ods_active_account_",
"dynamic_partition.replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"dynamic_partition.buckets" = "32",
"dynamic_partition.create_history_partition" = "true",
"dynamic_partition.history_partition_num" = "-1",
"dynamic_partition.hot_partition_num" = "0",
"dynamic_partition.reserved_history_periods" = "NULL",
"dynamic_partition.storage_policy" = "",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE ods_active_role;
CREATE TABLE `ods_active_role` (
`game_id` int NOT NULL,
`role_id` varchar(64) NOT NULL,
`ds` date NOT NULL,
`server_id` int NULL DEFAULT "0",
`user_account` varchar(50) NULL,
`role_name` varchar(128) NULL,
`create_time` int NULL DEFAULT "0"
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `role_id`, `ds`)
DISTRIBUTED BY HASH(`ds`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE ods_game_order;
CREATE TABLE `ods_game_order` (
`game_id` int NOT NULL,
`order_id` varchar(64) NOT NULL,
`status` int NOT NULL,
`user_account` varchar(64) NULL,
`role_id` varchar(64) NULL,
`server_id` int NULL,
`platform_id` varchar(64) NULL,
`product_id` varchar(64) NULL,
`amount` bigint NULL,
`create_time` datetime NULL,
`ds` varchar(64) NULL,
`receive_time` datetime NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `order_id`, `status`)
DISTRIBUTED BY HASH(`game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE ods_order;
CREATE TABLE `ods_order` (
`game_id` int NOT NULL,
`order_id` varchar(64) NOT NULL,
`user_account` varchar(64) NULL,
`role_id` varchar(64) NULL,
`server_id` int NULL,
`platform_id` varchar(64) NULL,
`product_id` varchar(64) NULL,
`amount` bigint NULL,
`create_time` datetime NULL,
`ds` date NOT NULL,
`receive_time` datetime NULL,
`pay_company` varchar(64) NULL,
`pay_type` int NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `order_id`)
DISTRIBUTED BY HASH(`game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE ods_order_history;
CREATE TABLE `ods_order_history` (
`id` bigint NOT NULL,
`orderid` varchar(64) NOT NULL,
`account` varchar(64) NULL,
`platformid` varchar(64) NULL,
`serverid` bigint NULL,
`username` varchar(64) NULL,
`roleid` varchar(64) NULL,
`money` bigint NULL,
`yuanbao` bigint NULL,
`goods` bigint NULL,
`level` bigint NULL,
`time` bigint NULL,
`gid` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`id`, `orderid`)
DISTRIBUTED BY HASH(`id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE ods_platform_account;
CREATE TABLE `ods_platform_account` (
`uid` bigint NOT NULL,
`account` varchar(64) NULL,
`promote_id` bigint NULL,
`phone` varchar(64) NULL,
`idcard` varchar(64) NULL,
`birthday` varchar(64) NULL,
`gender` smallint NULL,
`reg_way` smallint NULL,
`reg_type` smallint NULL,
`reg_time` datetime NOT NULL,
`reg_ip` varchar(64) NULL,
`is_union` smallint NULL,
`age_status` smallint NULL,
`is_wechat_subscribe` smallint NULL,
`platform_id` int NULL,
`box_account_time` bigint NULL,
`box_channel` varchar(64) NULL,
`auth_time` datetime NULL
) ENGINE=OLAP
UNIQUE KEY(`uid`)
DISTRIBUTED BY HASH(`uid`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE ods_platform_login;
CREATE TABLE `ods_platform_login` (
`game_id` int NOT NULL,
`user_id` bigint NOT NULL,
`user_account` varchar(100) NULL,
`promote_id` int NULL,
`platform_id` int NULL,
`login_time` int NOT NULL,
`login_ip` varchar(50) NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `user_id`, `user_account`)
DISTRIBUTED BY HASH(`game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE ods_platform_order;
CREATE TABLE `ods_platform_order` (
`game_id` int NOT NULL,
`order_id` varchar(100) NOT NULL,
`game_name` varchar(30) NULL,
`user_id` int NULL,
`user_account` varchar(50) NULL,
`user_nickname` varchar(30) NULL,
`role_id` varchar(50) NULL,
`role_name` varchar(100) NULL,
`server_id` varchar(50) NULL,
`server_name` varchar(30) NULL,
`platform_id` int NULL,
`promote_id` int NULL,
`amount` decimal(10,2) NULL,
`status` tinyint NOT NULL,
`pay_time` int NULL,
`pay_way` tinyint NULL,
`pay_company` varchar(20) NULL,
`ip` varchar(50) NULL,
`is_box_pay` tinyint NULL,
`scene` tinyint NULL,
`prod_id` int NULL,
`prod_name` varchar(30) NULL,
`main_server_id` int NULL,
`refund_type` tinyint NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `order_id`)
DISTRIBUTED BY HASH(`game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE ods_platform_user;
CREATE TABLE `ods_platform_user` (
`game_id` int NOT NULL,
`user_id` bigint NOT NULL,
`user_account` varchar(30) NULL,
`platform_id` int NULL,
`promote_id` int NULL,
`create_time` bigint NULL,
`channel` varchar(20) NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `user_id`)
DISTRIBUTED BY HASH(`game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE ods_role;
CREATE TABLE `ods_role` (
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`role_id` varchar(64) NOT NULL,
`user_account` varchar(64) NULL,
`role_name` varchar(64) NULL,
`job` int NULL,
`level` int NULL,
`exp` bigint NULL,
`relevel` int NULL,
`platform_id` varchar(64) NULL,
`create_time` datetime NULL,
`ds` date NULL,
`main_server_id` int NULL,
`update_time` datetime NULL,
`is_del` int NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `server_id`, `role_id`)
DISTRIBUTED BY HASH(`game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE ods_role_duration;
CREATE TABLE `ods_role_duration` (
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`role_id` varchar(64) NOT NULL,
`create_time` datetime NOT NULL,
`user_account` varchar(64) NULL,
`duration` int NULL,
`level` int NULL,
`role_name` varchar(64) NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `server_id`, `role_id`, `create_time`)
DISTRIBUTED BY HASH(`game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE ods_rollserv_user;
CREATE TABLE `ods_rollserv_user` (
`game_id` int NULL,
`server_id` int NULL,
`user_account` varchar(64) NULL,
`role_id` varchar(64) NULL,
`role_name` varchar(64) NULL,
`job` int NULL,
`level` int NULL,
`exp` bigint NULL,
`relevel` int NULL,
`platform_id` varchar(64) NULL,
`create_time` datetime NULL,
`ds` date NOT NULL
) ENGINE=OLAP
DUPLICATE KEY(`game_id`, `server_id`, `user_account`)
PARTITION BY RANGE(`ds`)
(PARTITION p_20250124 VALUES [('2025-01-24'), ('2025-01-25')),
PARTITION p_20250125 VALUES [('2025-01-25'), ('2025-01-26')),
PARTITION p_20250126 VALUES [('2025-01-26'), ('2025-01-27')),
PARTITION p_20250127 VALUES [('2025-01-27'), ('2025-01-28')),
PARTITION p_20250128 VALUES [('2025-01-28'), ('2025-01-29')),
PARTITION p_20250129 VALUES [('2025-01-29'), ('2025-01-30')),
PARTITION p_20250130 VALUES [('2025-01-30'), ('2025-01-31')),
PARTITION p_20250131 VALUES [('2025-01-31'), ('2025-02-01')),
PARTITION p_20250201 VALUES [('2025-02-01'), ('2025-02-02')),
PARTITION p_20250202 VALUES [('2025-02-02'), ('2025-02-03')),
PARTITION p_20250203 VALUES [('2025-02-03'), ('2025-02-04')),
PARTITION p_20250204 VALUES [('2025-02-04'), ('2025-02-05')),
PARTITION p_20250205 VALUES [('2025-02-05'), ('2025-02-06')),
PARTITION p_20250206 VALUES [('2025-02-06'), ('2025-02-07')),
PARTITION p_20250207 VALUES [('2025-02-07'), ('2025-02-08')),
PARTITION p_20250208 VALUES [('2025-02-08'), ('2025-02-09')),
PARTITION p_20250209 VALUES [('2025-02-09'), ('2025-02-10')),
PARTITION p_20250210 VALUES [('2025-02-10'), ('2025-02-11')),
PARTITION p_20250211 VALUES [('2025-02-11'), ('2025-02-12')),
PARTITION p_20250212 VALUES [('2025-02-12'), ('2025-02-13')),
PARTITION p_20250213 VALUES [('2025-02-13'), ('2025-02-14')),
PARTITION p_20250214 VALUES [('2025-02-14'), ('2025-02-15')),
PARTITION p_20250215 VALUES [('2025-02-15'), ('2025-02-16')),
PARTITION p_20250216 VALUES [('2025-02-16'), ('2025-02-17')),
PARTITION p_20250217 VALUES [('2025-02-17'), ('2025-02-18')),
PARTITION p_20250218 VALUES [('2025-02-18'), ('2025-02-19')),
PARTITION p_20250219 VALUES [('2025-02-19'), ('2025-02-20')),
PARTITION p_20250220 VALUES [('2025-02-20'), ('2025-02-21')),
PARTITION p_20250221 VALUES [('2025-02-21'), ('2025-02-22')),
PARTITION p_20250222 VALUES [('2025-02-22'), ('2025-02-23')),
PARTITION p_20250223 VALUES [('2025-02-23'), ('2025-02-24')),
PARTITION p_20250224 VALUES [('2025-02-24'), ('2025-02-25')),
PARTITION p_20250225 VALUES [('2025-02-25'), ('2025-02-26')),
PARTITION p_20250226 VALUES [('2025-02-26'), ('2025-02-27')),
PARTITION p_20250227 VALUES [('2025-02-27'), ('2025-02-28')),
PARTITION p_20250228 VALUES [('2025-02-28'), ('2025-03-01')),
PARTITION p_20250301 VALUES [('2025-03-01'), ('2025-03-02')),
PARTITION p_20250302 VALUES [('2025-03-02'), ('2025-03-03')),
PARTITION p_20250303 VALUES [('2025-03-03'), ('2025-03-04')),
PARTITION p_20250304 VALUES [('2025-03-04'), ('2025-03-05')),
PARTITION p_20250305 VALUES [('2025-03-05'), ('2025-03-06')),
PARTITION p_20250306 VALUES [('2025-03-06'), ('2025-03-07')),
PARTITION p_20250307 VALUES [('2025-03-07'), ('2025-03-08')),
PARTITION p_20250308 VALUES [('2025-03-08'), ('2025-03-09')),
PARTITION p_20250309 VALUES [('2025-03-09'), ('2025-03-10')),
PARTITION p_20250310 VALUES [('2025-03-10'), ('2025-03-11')),
PARTITION p_20250311 VALUES [('2025-03-11'), ('2025-03-12')),
PARTITION p_20250312 VALUES [('2025-03-12'), ('2025-03-13')),
PARTITION p_20250313 VALUES [('2025-03-13'), ('2025-03-14')),
PARTITION p_20250314 VALUES [('2025-03-14'), ('2025-03-15')),
PARTITION p_20250315 VALUES [('2025-03-15'), ('2025-03-16')),
PARTITION p_20250316 VALUES [('2025-03-16'), ('2025-03-17')),
PARTITION p_20250317 VALUES [('2025-03-17'), ('2025-03-18')),
PARTITION p_20250318 VALUES [('2025-03-18'), ('2025-03-19')),
PARTITION p_20250319 VALUES [('2025-03-19'), ('2025-03-20')),
PARTITION p_20250320 VALUES [('2025-03-20'), ('2025-03-21')),
PARTITION p_20250321 VALUES [('2025-03-21'), ('2025-03-22')),
PARTITION p_20250322 VALUES [('2025-03-22'), ('2025-03-23')),
PARTITION p_20250323 VALUES [('2025-03-23'), ('2025-03-24')),
PARTITION p_20250324 VALUES [('2025-03-24'), ('2025-03-25')),
PARTITION p_20250325 VALUES [('2025-03-25'), ('2025-03-26')),
PARTITION p_20250326 VALUES [('2025-03-26'), ('2025-03-27')),
PARTITION p_20250327 VALUES [('2025-03-27'), ('2025-03-28')),
PARTITION p_20250328 VALUES [('2025-03-28'), ('2025-03-29')),
PARTITION p_20250329 VALUES [('2025-03-29'), ('2025-03-30')),
PARTITION p_20250330 VALUES [('2025-03-30'), ('2025-03-31')),
PARTITION p_20250331 VALUES [('2025-03-31'), ('2025-04-01')),
PARTITION p_20250401 VALUES [('2025-04-01'), ('2025-04-02')),
PARTITION p_20250402 VALUES [('2025-04-02'), ('2025-04-03')),
PARTITION p_20250403 VALUES [('2025-04-03'), ('2025-04-04')),
PARTITION p_20250404 VALUES [('2025-04-04'), ('2025-04-05')),
PARTITION p_20250405 VALUES [('2025-04-05'), ('2025-04-06')),
PARTITION p_20250406 VALUES [('2025-04-06'), ('2025-04-07')),
PARTITION p_20250407 VALUES [('2025-04-07'), ('2025-04-08')),
PARTITION p_20250408 VALUES [('2025-04-08'), ('2025-04-09')),
PARTITION p_20250409 VALUES [('2025-04-09'), ('2025-04-10')),
PARTITION p_20250410 VALUES [('2025-04-10'), ('2025-04-11')),
PARTITION p_20250411 VALUES [('2025-04-11'), ('2025-04-12')),
PARTITION p_20250412 VALUES [('2025-04-12'), ('2025-04-13')),
PARTITION p_20250413 VALUES [('2025-04-13'), ('2025-04-14')),
PARTITION p_20250414 VALUES [('2025-04-14'), ('2025-04-15')),
PARTITION p_20250415 VALUES [('2025-04-15'), ('2025-04-16')),
PARTITION p_20250416 VALUES [('2025-04-16'), ('2025-04-17')),
PARTITION p_20250417 VALUES [('2025-04-17'), ('2025-04-18')),
PARTITION p_20250418 VALUES [('2025-04-18'), ('2025-04-19')),
PARTITION p_20250419 VALUES [('2025-04-19'), ('2025-04-20')),
PARTITION p_20250420 VALUES [('2025-04-20'), ('2025-04-21')),
PARTITION p_20250421 VALUES [('2025-04-21'), ('2025-04-22')),
PARTITION p_20250422 VALUES [('2025-04-22'), ('2025-04-23')),
PARTITION p_20250423 VALUES [('2025-04-23'), ('2025-04-24')),
PARTITION p_20250424 VALUES [('2025-04-24'), ('2025-04-25')),
PARTITION p_20250425 VALUES [('2025-04-25'), ('2025-04-26')),
PARTITION p_20250426 VALUES [('2025-04-26'), ('2025-04-27')),
PARTITION p_20250427 VALUES [('2025-04-27'), ('2025-04-28')),
PARTITION p_20250428 VALUES [('2025-04-28'), ('2025-04-29')),
PARTITION p_20250429 VALUES [('2025-04-29'), ('2025-04-30')),
PARTITION p_20250430 VALUES [('2025-04-30'), ('2025-05-01')),
PARTITION p_20250501 VALUES [('2025-05-01'), ('2025-05-02')),
PARTITION p_20250502 VALUES [('2025-05-02'), ('2025-05-03')),
PARTITION p_20250503 VALUES [('2025-05-03'), ('2025-05-04')),
PARTITION p_20250504 VALUES [('2025-05-04'), ('2025-05-05')),
PARTITION p_20250505 VALUES [('2025-05-05'), ('2025-05-06')),
PARTITION p_20250506 VALUES [('2025-05-06'), ('2025-05-07')),
PARTITION p_20250507 VALUES [('2025-05-07'), ('2025-05-08')),
PARTITION p_20250508 VALUES [('2025-05-08'), ('2025-05-09')),
PARTITION p_20250509 VALUES [('2025-05-09'), ('2025-05-10')),
PARTITION p_20250510 VALUES [('2025-05-10'), ('2025-05-11')),
PARTITION p_20250511 VALUES [('2025-05-11'), ('2025-05-12')),
PARTITION p_20250512 VALUES [('2025-05-12'), ('2025-05-13')),
PARTITION p_20250513 VALUES [('2025-05-13'), ('2025-05-14')),
PARTITION p_20250514 VALUES [('2025-05-14'), ('2025-05-15')),
PARTITION p_20250515 VALUES [('2025-05-15'), ('2025-05-16')),
PARTITION p_20250516 VALUES [('2025-05-16'), ('2025-05-17')),
PARTITION p_20250517 VALUES [('2025-05-17'), ('2025-05-18')),
PARTITION p_20250518 VALUES [('2025-05-18'), ('2025-05-19')),
PARTITION p_20250519 VALUES [('2025-05-19'), ('2025-05-20')),
PARTITION p_20250520 VALUES [('2025-05-20'), ('2025-05-21')),
PARTITION p_20250521 VALUES [('2025-05-21'), ('2025-05-22')),
PARTITION p_20250522 VALUES [('2025-05-22'), ('2025-05-23')),
PARTITION p_20250523 VALUES [('2025-05-23'), ('2025-05-24')),
PARTITION p_20250524 VALUES [('2025-05-24'), ('2025-05-25')),
PARTITION p_20250525 VALUES [('2025-05-25'), ('2025-05-26')),
PARTITION p_20250526 VALUES [('2025-05-26'), ('2025-05-27')),
PARTITION p_20250527 VALUES [('2025-05-27'), ('2025-05-28')),
PARTITION p_20250528 VALUES [('2025-05-28'), ('2025-05-29')),
PARTITION p_20250529 VALUES [('2025-05-29'), ('2025-05-30')),
PARTITION p_20250530 VALUES [('2025-05-30'), ('2025-05-31')),
PARTITION p_20250531 VALUES [('2025-05-31'), ('2025-06-01')),
PARTITION p_20250601 VALUES [('2025-06-01'), ('2025-06-02')),
PARTITION p_20250602 VALUES [('2025-06-02'), ('2025-06-03')),
PARTITION p_20250603 VALUES [('2025-06-03'), ('2025-06-04')),
PARTITION p_20250604 VALUES [('2025-06-04'), ('2025-06-05')),
PARTITION p_20250605 VALUES [('2025-06-05'), ('2025-06-06')),
PARTITION p_20250606 VALUES [('2025-06-06'), ('2025-06-07')),
PARTITION p_20250607 VALUES [('2025-06-07'), ('2025-06-08')),
PARTITION p_20250608 VALUES [('2025-06-08'), ('2025-06-09')),
PARTITION p_20250609 VALUES [('2025-06-09'), ('2025-06-10')),
PARTITION p_20250610 VALUES [('2025-06-10'), ('2025-06-11')),
PARTITION p_20250611 VALUES [('2025-06-11'), ('2025-06-12')),
PARTITION p_20250612 VALUES [('2025-06-12'), ('2025-06-13')),
PARTITION p_20250613 VALUES [('2025-06-13'), ('2025-06-14')),
PARTITION p_20250614 VALUES [('2025-06-14'), ('2025-06-15')),
PARTITION p_20250615 VALUES [('2025-06-15'), ('2025-06-16')),
PARTITION p_20250616 VALUES [('2025-06-16'), ('2025-06-17')),
PARTITION p_20250617 VALUES [('2025-06-17'), ('2025-06-18')),
PARTITION p_20250618 VALUES [('2025-06-18'), ('2025-06-19')),
PARTITION p_20250619 VALUES [('2025-06-19'), ('2025-06-20')),
PARTITION p_20250620 VALUES [('2025-06-20'), ('2025-06-21')),
PARTITION p_20250621 VALUES [('2025-06-21'), ('2025-06-22')),
PARTITION p_20250622 VALUES [('2025-06-22'), ('2025-06-23')),
PARTITION p_20250623 VALUES [('2025-06-23'), ('2025-06-24')),
PARTITION p_20250624 VALUES [('2025-06-24'), ('2025-06-25')),
PARTITION p_20250625 VALUES [('2025-06-25'), ('2025-06-26')),
PARTITION p_20250626 VALUES [('2025-06-26'), ('2025-06-27')),
PARTITION p_20250627 VALUES [('2025-06-27'), ('2025-06-28')),
PARTITION p_20250628 VALUES [('2025-06-28'), ('2025-06-29')),
PARTITION p_20250629 VALUES [('2025-06-29'), ('2025-06-30')),
PARTITION p_20250630 VALUES [('2025-06-30'), ('2025-07-01')),
PARTITION p_20250701 VALUES [('2025-07-01'), ('2025-07-02')),
PARTITION p_20250702 VALUES [('2025-07-02'), ('2025-07-03')),
PARTITION p_20250703 VALUES [('2025-07-03'), ('2025-07-04')),
PARTITION p_20250704 VALUES [('2025-07-04'), ('2025-07-05')),
PARTITION p_20250705 VALUES [('2025-07-05'), ('2025-07-06')),
PARTITION p_20250706 VALUES [('2025-07-06'), ('2025-07-07')),
PARTITION p_20250707 VALUES [('2025-07-07'), ('2025-07-08')),
PARTITION p_20250708 VALUES [('2025-07-08'), ('2025-07-09')),
PARTITION p_20250709 VALUES [('2025-07-09'), ('2025-07-10')),
PARTITION p_20250710 VALUES [('2025-07-10'), ('2025-07-11')),
PARTITION p_20250711 VALUES [('2025-07-11'), ('2025-07-12')),
PARTITION p_20250712 VALUES [('2025-07-12'), ('2025-07-13')),
PARTITION p_20250713 VALUES [('2025-07-13'), ('2025-07-14')),
PARTITION p_20250714 VALUES [('2025-07-14'), ('2025-07-15')),
PARTITION p_20250715 VALUES [('2025-07-15'), ('2025-07-16')),
PARTITION p_20250716 VALUES [('2025-07-16'), ('2025-07-17')),
PARTITION p_20250717 VALUES [('2025-07-17'), ('2025-07-18')),
PARTITION p_20250718 VALUES [('2025-07-18'), ('2025-07-19')),
PARTITION p_20250719 VALUES [('2025-07-19'), ('2025-07-20')),
PARTITION p_20250720 VALUES [('2025-07-20'), ('2025-07-21')),
PARTITION p_20250721 VALUES [('2025-07-21'), ('2025-07-22')),
PARTITION p_20250722 VALUES [('2025-07-22'), ('2025-07-23')),
PARTITION p_20250723 VALUES [('2025-07-23'), ('2025-07-24')),
PARTITION p_20250724 VALUES [('2025-07-24'), ('2025-07-25')),
PARTITION p_20250725 VALUES [('2025-07-25'), ('2025-07-26')),
PARTITION p_20250726 VALUES [('2025-07-26'), ('2025-07-27')))
DISTRIBUTED BY HASH(`ds`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"dynamic_partition.enable" = "true",
"dynamic_partition.time_unit" = "DAY",
"dynamic_partition.time_zone" = "Asia/Shanghai",
"dynamic_partition.start" = "-180",
"dynamic_partition.end" = "3",
"dynamic_partition.prefix" = "p_",
"dynamic_partition.replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"dynamic_partition.buckets" = "32",
"dynamic_partition.create_history_partition" = "true",
"dynamic_partition.history_partition_num" = "-1",
"dynamic_partition.hot_partition_num" = "0",
"dynamic_partition.reserved_history_periods" = "NULL",
"dynamic_partition.storage_policy" = "",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728"
);
drop TABLE ods_rollserv_user_r;
CREATE TABLE `ods_rollserv_user_r` (
`game_id` int NULL,
`server_id` int NULL,
`user_account` varchar(64) NULL,
`role_id` varchar(64) NULL,
`role_name` varchar(64) NULL,
`job` int NULL,
`level` int NULL,
`exp` bigint NULL,
`relevel` int NULL,
`platform_id` varchar(64) NULL
) ENGINE=OLAP
DUPLICATE KEY(`game_id`, `server_id`, `user_account`)
DISTRIBUTED BY HASH(`game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728"
);
drop TABLE ods_server_user;
CREATE TABLE `ods_server_user` (
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`user_account` varchar(64) NOT NULL,
`role_id` varchar(64) NULL,
`role_name` varchar(64) NULL,
`platform_id` varchar(64) NULL,
`create_time` datetime NULL,
`ds` date NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `server_id`, `user_account`)
DISTRIBUTED BY HASH(`game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"function_column.sequence_type" = "int",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE ods_user;
CREATE TABLE `ods_user` (
`game_id` int NOT NULL,
`user_account` varchar(64) NOT NULL,
`role_id` varchar(64) NULL,
`role_name` varchar(64) NULL,
`server_id` int NULL,
`platform_id` varchar(64) NULL,
`create_time` datetime NULL,
`ds` date NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `user_account`)
DISTRIBUTED BY HASH(`game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"function_column.sequence_type" = "int",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE ods_user_profile_login;
CREATE TABLE `ods_user_profile_login` (
`appid` varchar(64) NOT NULL,
`device_id` varchar(64) NOT NULL,
`ds` date NOT NULL,
`app_ver` varchar(64) NULL,
`channel` varchar(64) NULL,
`device_lang` varchar(64) NULL,
`device_model` varchar(64) NULL,
`device_os` varchar(64) NULL,
`device_type` varchar(64) NULL,
`device_height` int NULL,
`device_width` int NULL,
`ip` varchar(64) NULL,
`net_type` varchar(64) NULL,
`user_id` int NULL,
`event_time` datetime NOT NULL
) ENGINE=OLAP
UNIQUE KEY(`appid`, `device_id`, `ds`)
DISTRIBUTED BY HASH(`appid`, `device_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE ods_user_profile_lt;
CREATE TABLE `ods_user_profile_lt` (
`account` varchar(64) NOT NULL,
`game_id` int NOT NULL,
`_update_time_` datetime NOT NULL,
`total_order` bigint NULL,
`total_payment` bigint NULL,
`total_played` int NULL,
`first_login` datetime NULL,
`last_login` datetime NULL,
`gd` int NULL,
`sd` int NULL,
`ld` int NULL,
`score` decimal(10,2) NULL
) ENGINE=OLAP
UNIQUE KEY(`account`, `game_id`)
DISTRIBUTED BY HASH(`game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE ods_user_profile_player;
CREATE TABLE `ods_user_profile_player` (
`account` varchar(64) NOT NULL,
`game_id` int NOT NULL,
`_update_time_` datetime NOT NULL
) ENGINE=OLAP
UNIQUE KEY(`account`, `game_id`)
DISTRIBUTED BY HASH(`game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE ods_xqhuyu_order;
CREATE TABLE `ods_xqhuyu_order` (
`game_id` int NOT NULL,
`order_id` varchar(64) NOT NULL,
`status` int NOT NULL,
`user_account` varchar(64) NULL,
`role_id` varchar(64) NULL,
`server_id` int NULL,
`platform_id` varchar(64) NULL,
`product_id` varchar(64) NULL,
`amount` bigint NULL,
`create_time` datetime NULL,
`ds` date NULL,
`receive_time` datetime NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `order_id`, `status`)
DISTRIBUTED BY HASH(`game_id`, `order_id`, `status`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_1st_payment;
CREATE TABLE `rpt_1st_payment` (
`game_id` int NOT NULL,
`server_id` bigint NOT NULL,
`ds` date NOT NULL,
`total_account` bigint NULL,
`total_amount` bigint NULL,
`newly_account` bigint NULL,
`newly_amount` bigint NULL,
`avg_paytime` bigint NULL,
`median_paytime` bigint NULL,
`mode_paytime` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `server_id`, `ds`)
DISTRIBUTED BY HASH(`game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_1st_payment_r;
CREATE TABLE `rpt_1st_payment_r` (
`game_id` int NOT NULL,
`server_id` bigint NOT NULL,
`ds` date NOT NULL,
`hm` varchar(64) NOT NULL,
`total_account` bigint NULL,
`total_amount` bigint NULL,
`newly_account` bigint NULL,
`newly_amount` bigint NULL,
`hh` varchar(64) NULL,
`avg_paytime` bigint NULL,
`median_paytime` bigint NULL,
`mode_paytime` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `server_id`, `ds`, `hm`)
DISTRIBUTED BY HASH(`game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_biz_statis_d;
CREATE TABLE `rpt_biz_statis_d` (
`game_id` int NOT NULL,
`ds` date NOT NULL,
`newly_gm` bigint NULL,
`newly_game` bigint NULL,
`newly_server` bigint NULL,
`stoped_server` bigint NULL,
`gm` bigint NULL,
`game` bigint NULL,
`server` bigint NULL,
`merge_server` bigint NULL,
`box_game_num` bigint NULL,
`uo_game_num` bigint NULL,
`cs_game_num` bigint NULL,
`free_server` bigint NULL,
`total_server` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `ds`)
DISTRIBUTED BY HASH(`game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_ltv_reg;
CREATE TABLE `rpt_ltv_reg` (
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`ds` date NULL,
`num` bigint NULL,
`ltv1` bigint NULL,
`ltv2` bigint NULL,
`ltv3` bigint NULL,
`ltv4` bigint NULL,
`ltv5` bigint NULL,
`ltv6` bigint NULL,
`ltv7` bigint NULL,
`ltv8` bigint NULL,
`ltv9` bigint NULL,
`ltv10` bigint NULL,
`ltv11` bigint NULL,
`ltv12` bigint NULL,
`ltv13` bigint NULL,
`ltv14` bigint NULL,
`ltv15` bigint NULL,
`ltv16` bigint NULL,
`ltv17` bigint NULL,
`ltv18` bigint NULL,
`ltv19` bigint NULL,
`ltv20` bigint NULL,
`ltv21` bigint NULL,
`ltv22` bigint NULL,
`ltv23` bigint NULL,
`ltv24` bigint NULL,
`ltv25` bigint NULL,
`ltv26` bigint NULL,
`ltv27` bigint NULL,
`ltv28` bigint NULL,
`ltv29` bigint NULL,
`ltv30` bigint NULL,
`ltv31` bigint NULL,
`ltv45` bigint NULL,
`ltv60` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `server_id`, `ds`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_ltv_role;
CREATE TABLE `rpt_ltv_role` (
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`ds` date NOT NULL,
`num` bigint NULL,
`ltv1` bigint NULL,
`ltv2` bigint NULL,
`ltv3` bigint NULL,
`ltv4` bigint NULL,
`ltv5` bigint NULL,
`ltv6` bigint NULL,
`ltv7` bigint NULL,
`ltv8` bigint NULL,
`ltv9` bigint NULL,
`ltv10` bigint NULL,
`ltv11` bigint NULL,
`ltv12` bigint NULL,
`ltv13` bigint NULL,
`ltv14` bigint NULL,
`ltv15` bigint NULL,
`ltv16` bigint NULL,
`ltv17` bigint NULL,
`ltv18` bigint NULL,
`ltv19` bigint NULL,
`ltv20` bigint NULL,
`ltv21` bigint NULL,
`ltv22` bigint NULL,
`ltv23` bigint NULL,
`ltv24` bigint NULL,
`ltv25` bigint NULL,
`ltv26` bigint NULL,
`ltv27` bigint NULL,
`ltv28` bigint NULL,
`ltv29` bigint NULL,
`ltv30` bigint NULL,
`ltv31` bigint NULL,
`ltv45` bigint NULL,
`ltv60` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `server_id`, `ds`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_payment_distribution;
CREATE TABLE `rpt_payment_distribution` (
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`ds` date NOT NULL,
`dt` int NOT NULL,
`total_account` bigint NULL,
`payment_account` bigint NULL,
`range1` bigint NULL,
`range2` bigint NULL,
`range3` bigint NULL,
`range4` bigint NULL,
`range5` bigint NULL,
`range6` bigint NULL,
`range7` bigint NULL,
`range8` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `server_id`, `ds`, `dt`)
DISTRIBUTED BY HASH(`dt`, `ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_platform_statis_d;
CREATE TABLE `rpt_platform_statis_d` (
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`ds` date NULL,
`newly_account` bigint NULL,
`active_account` bigint NULL,
`login_account` bigint NULL,
`total_order` bigint NULL,
`payment_order` bigint NULL,
`payment_account` bigint NULL,
`payment_amount` bigint NULL,
`newly_payment_order` bigint NULL,
`newly_payment_account` bigint NULL,
`newly_payment_amount` bigint NULL,
`cm_newly_account` bigint NULL,
`cm_payment_amount` bigint NULL,
`box_payment_order` bigint NULL,
`box_payment_account` bigint NULL,
`box_payment_amount` bigint NULL,
`total_amount` bigint NULL,
`total_account` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `server_id`, `ds`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_platform_statis_m;
CREATE TABLE `rpt_platform_statis_m` (
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`ds` date NOT NULL,
`newly_account` bigint NULL,
`active_account` bigint NULL,
`login_account` bigint NULL,
`total_order` bigint NULL,
`payment_order` bigint NULL,
`payment_account` bigint NULL,
`payment_amount` bigint NULL,
`newly_payment_order` bigint NULL,
`newly_payment_account` bigint NULL,
`newly_payment_amount` bigint NULL,
`cm_newly_account` bigint NULL,
`cm_payment_amount` bigint NULL,
`box_payment_order` bigint NULL,
`box_payment_account` bigint NULL,
`box_payment_amount` bigint NULL,
`total_amount` bigint NULL,
`total_account` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `server_id`, `ds`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_platform_statis_r;
CREATE TABLE `rpt_platform_statis_r` (
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`ds` date NOT NULL,
`hh` varchar(10) NULL,
`hm` varchar(10) NULL,
`newly_account` bigint NULL,
`active_account` bigint NULL,
`login_account` bigint NULL,
`total_order` bigint NULL,
`payment_order` bigint NULL,
`payment_account` bigint NULL,
`payment_amount` bigint NULL,
`newly_payment_order` bigint NULL,
`newly_payment_account` bigint NULL,
`newly_payment_amount` bigint NULL,
`cm_newly_account` bigint NULL,
`cm_payment_amount` bigint NULL,
`box_payment_order` bigint NULL,
`box_payment_account` bigint NULL,
`box_payment_amount` bigint NULL,
`total_amount` bigint NULL,
`total_account` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `server_id`, `ds`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_platform_statis_rt;
CREATE TABLE `rpt_platform_statis_rt` (
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`ds` date NOT NULL,
`hh` varchar(10) NULL,
`hm` varchar(10) NULL,
`newly_account` bigint NULL,
`active_account` bigint NULL,
`login_account` bigint NULL,
`total_order` bigint NULL,
`payment_order` bigint NULL,
`payment_account` bigint NULL,
`payment_amount` bigint NULL,
`newly_payment_order` bigint NULL,
`newly_payment_account` bigint NULL,
`newly_payment_amount` bigint NULL,
`cm_newly_account` bigint NULL,
`cm_payment_amount` bigint NULL,
`box_payment_order` bigint NULL,
`box_payment_account` bigint NULL,
`box_payment_amount` bigint NULL,
`total_amount` bigint NULL,
`total_account` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `server_id`, `ds`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_platform_statis_w;
CREATE TABLE `rpt_platform_statis_w` (
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`ds` date NOT NULL,
`newly_account` bigint NULL,
`active_account` bigint NULL,
`login_account` bigint NULL,
`total_order` bigint NULL,
`payment_order` bigint NULL,
`payment_account` bigint NULL,
`payment_amount` bigint NULL,
`newly_payment_order` bigint NULL,
`newly_payment_account` bigint NULL,
`newly_payment_amount` bigint NULL,
`cm_newly_account` bigint NULL,
`cm_payment_amount` bigint NULL,
`box_payment_order` bigint NULL,
`box_payment_account` bigint NULL,
`box_payment_amount` bigint NULL,
`total_amount` bigint NULL,
`total_account` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `server_id`, `ds`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_reflux_user;
CREATE TABLE `rpt_reflux_user` (
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`ds` date NOT NULL,
`num` bigint NULL,
`rd7` bigint NULL,
`rd14` bigint NULL,
`rd30` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `server_id`, `ds`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_retention_act;
CREATE TABLE `rpt_retention_act` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`rd1` bigint NULL,
`rd2` bigint NULL,
`rd3` bigint NULL,
`rd4` bigint NULL,
`rd5` bigint NULL,
`rd6` bigint NULL,
`rd7` bigint NULL,
`rd8` bigint NULL,
`rd9` bigint NULL,
`rd10` bigint NULL,
`rd11` bigint NULL,
`rd12` bigint NULL,
`rd13` bigint NULL,
`rd14` bigint NULL,
`rd15` bigint NULL,
`rd16` bigint NULL,
`rd17` bigint NULL,
`rd18` bigint NULL,
`rd19` bigint NULL,
`rd20` bigint NULL,
`rd21` bigint NULL,
`rd22` bigint NULL,
`rd23` bigint NULL,
`rd24` bigint NULL,
`rd25` bigint NULL,
`rd26` bigint NULL,
`rd27` bigint NULL,
`rd28` bigint NULL,
`rd29` bigint NULL,
`rd30` bigint NULL,
`rd45` bigint NULL,
`rd60` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_retention_act_m;
CREATE TABLE `rpt_retention_act_m` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`rd1` bigint NULL,
`rd2` bigint NULL,
`rd3` bigint NULL,
`rd4` bigint NULL,
`rd5` bigint NULL,
`rd6` bigint NULL,
`rd7` bigint NULL,
`rd8` bigint NULL,
`rd9` bigint NULL,
`rd10` bigint NULL,
`rd11` bigint NULL,
`rd12` bigint NULL,
`rd13` bigint NULL,
`rd14` bigint NULL,
`rd15` bigint NULL,
`rd16` bigint NULL,
`rd17` bigint NULL,
`rd18` bigint NULL,
`rd19` bigint NULL,
`rd20` bigint NULL,
`rd21` bigint NULL,
`rd22` bigint NULL,
`rd23` bigint NULL,
`rd24` bigint NULL,
`rd25` bigint NULL,
`rd26` bigint NULL,
`rd27` bigint NULL,
`rd28` bigint NULL,
`rd29` bigint NULL,
`rd30` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_retention_act_w;
CREATE TABLE `rpt_retention_act_w` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`rd1` bigint NULL,
`rd2` bigint NULL,
`rd3` bigint NULL,
`rd4` bigint NULL,
`rd5` bigint NULL,
`rd6` bigint NULL,
`rd7` bigint NULL,
`rd8` bigint NULL,
`rd9` bigint NULL,
`rd10` bigint NULL,
`rd11` bigint NULL,
`rd12` bigint NULL,
`rd13` bigint NULL,
`rd14` bigint NULL,
`rd15` bigint NULL,
`rd16` bigint NULL,
`rd17` bigint NULL,
`rd18` bigint NULL,
`rd19` bigint NULL,
`rd20` bigint NULL,
`rd21` bigint NULL,
`rd22` bigint NULL,
`rd23` bigint NULL,
`rd24` bigint NULL,
`rd25` bigint NULL,
`rd26` bigint NULL,
`rd27` bigint NULL,
`rd28` bigint NULL,
`rd29` bigint NULL,
`rd30` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_retention_active_role_d;
CREATE TABLE `rpt_retention_active_role_d` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`rd1` bigint NULL,
`rd2` bigint NULL,
`rd3` bigint NULL,
`rd4` bigint NULL,
`rd5` bigint NULL,
`rd6` bigint NULL,
`rd7` bigint NULL,
`rd8` bigint NULL,
`rd9` bigint NULL,
`rd10` bigint NULL,
`rd11` bigint NULL,
`rd12` bigint NULL,
`rd13` bigint NULL,
`rd14` bigint NULL,
`rd15` bigint NULL,
`rd16` bigint NULL,
`rd17` bigint NULL,
`rd18` bigint NULL,
`rd19` bigint NULL,
`rd20` bigint NULL,
`rd21` bigint NULL,
`rd22` bigint NULL,
`rd23` bigint NULL,
`rd24` bigint NULL,
`rd25` bigint NULL,
`rd26` bigint NULL,
`rd27` bigint NULL,
`rd28` bigint NULL,
`rd29` bigint NULL,
`rd30` bigint NULL,
`rd45` bigint NULL,
`rd60` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_retention_active_role_m;
CREATE TABLE `rpt_retention_active_role_m` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`rd1` bigint NULL,
`rd2` bigint NULL,
`rd3` bigint NULL,
`rd4` bigint NULL,
`rd5` bigint NULL,
`rd6` bigint NULL,
`rd7` bigint NULL,
`rd8` bigint NULL,
`rd9` bigint NULL,
`rd10` bigint NULL,
`rd11` bigint NULL,
`rd12` bigint NULL,
`rd13` bigint NULL,
`rd14` bigint NULL,
`rd15` bigint NULL,
`rd16` bigint NULL,
`rd17` bigint NULL,
`rd18` bigint NULL,
`rd19` bigint NULL,
`rd20` bigint NULL,
`rd21` bigint NULL,
`rd22` bigint NULL,
`rd23` bigint NULL,
`rd24` bigint NULL,
`rd25` bigint NULL,
`rd26` bigint NULL,
`rd27` bigint NULL,
`rd28` bigint NULL,
`rd29` bigint NULL,
`rd30` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_retention_active_role_w;
CREATE TABLE `rpt_retention_active_role_w` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`rd1` bigint NULL,
`rd2` bigint NULL,
`rd3` bigint NULL,
`rd4` bigint NULL,
`rd5` bigint NULL,
`rd6` bigint NULL,
`rd7` bigint NULL,
`rd8` bigint NULL,
`rd9` bigint NULL,
`rd10` bigint NULL,
`rd11` bigint NULL,
`rd12` bigint NULL,
`rd13` bigint NULL,
`rd14` bigint NULL,
`rd15` bigint NULL,
`rd16` bigint NULL,
`rd17` bigint NULL,
`rd18` bigint NULL,
`rd19` bigint NULL,
`rd20` bigint NULL,
`rd21` bigint NULL,
`rd22` bigint NULL,
`rd23` bigint NULL,
`rd24` bigint NULL,
`rd25` bigint NULL,
`rd26` bigint NULL,
`rd27` bigint NULL,
`rd28` bigint NULL,
`rd29` bigint NULL,
`rd30` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_retention_apr_d;
CREATE TABLE `rpt_retention_apr_d` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`rd1` bigint NULL,
`rd2` bigint NULL,
`rd3` bigint NULL,
`rd4` bigint NULL,
`rd5` bigint NULL,
`rd6` bigint NULL,
`rd7` bigint NULL,
`rd8` bigint NULL,
`rd9` bigint NULL,
`rd10` bigint NULL,
`rd11` bigint NULL,
`rd12` bigint NULL,
`rd13` bigint NULL,
`rd14` bigint NULL,
`rd15` bigint NULL,
`rd16` bigint NULL,
`rd17` bigint NULL,
`rd18` bigint NULL,
`rd19` bigint NULL,
`rd20` bigint NULL,
`rd21` bigint NULL,
`rd22` bigint NULL,
`rd23` bigint NULL,
`rd24` bigint NULL,
`rd25` bigint NULL,
`rd26` bigint NULL,
`rd27` bigint NULL,
`rd28` bigint NULL,
`rd29` bigint NULL,
`rd30` bigint NULL,
`rd45` bigint NULL,
`rd60` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_retention_apr_m;
CREATE TABLE `rpt_retention_apr_m` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`rd1` bigint NULL,
`rd2` bigint NULL,
`rd3` bigint NULL,
`rd4` bigint NULL,
`rd5` bigint NULL,
`rd6` bigint NULL,
`rd7` bigint NULL,
`rd8` bigint NULL,
`rd9` bigint NULL,
`rd10` bigint NULL,
`rd11` bigint NULL,
`rd12` bigint NULL,
`rd13` bigint NULL,
`rd14` bigint NULL,
`rd15` bigint NULL,
`rd16` bigint NULL,
`rd17` bigint NULL,
`rd18` bigint NULL,
`rd19` bigint NULL,
`rd20` bigint NULL,
`rd21` bigint NULL,
`rd22` bigint NULL,
`rd23` bigint NULL,
`rd24` bigint NULL,
`rd25` bigint NULL,
`rd26` bigint NULL,
`rd27` bigint NULL,
`rd28` bigint NULL,
`rd29` bigint NULL,
`rd30` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_retention_apr_w;
CREATE TABLE `rpt_retention_apr_w` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`rd1` bigint NULL,
`rd2` bigint NULL,
`rd3` bigint NULL,
`rd4` bigint NULL,
`rd5` bigint NULL,
`rd6` bigint NULL,
`rd7` bigint NULL,
`rd8` bigint NULL,
`rd9` bigint NULL,
`rd10` bigint NULL,
`rd11` bigint NULL,
`rd12` bigint NULL,
`rd13` bigint NULL,
`rd14` bigint NULL,
`rd15` bigint NULL,
`rd16` bigint NULL,
`rd17` bigint NULL,
`rd18` bigint NULL,
`rd19` bigint NULL,
`rd20` bigint NULL,
`rd21` bigint NULL,
`rd22` bigint NULL,
`rd23` bigint NULL,
`rd24` bigint NULL,
`rd25` bigint NULL,
`rd26` bigint NULL,
`rd27` bigint NULL,
`rd28` bigint NULL,
`rd29` bigint NULL,
`rd30` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_retention_apu;
CREATE TABLE `rpt_retention_apu` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`rd1` bigint NULL,
`rd2` bigint NULL,
`rd3` bigint NULL,
`rd4` bigint NULL,
`rd5` bigint NULL,
`rd6` bigint NULL,
`rd7` bigint NULL,
`rd8` bigint NULL,
`rd9` bigint NULL,
`rd10` bigint NULL,
`rd11` bigint NULL,
`rd12` bigint NULL,
`rd13` bigint NULL,
`rd14` bigint NULL,
`rd15` bigint NULL,
`rd16` bigint NULL,
`rd17` bigint NULL,
`rd18` bigint NULL,
`rd19` bigint NULL,
`rd20` bigint NULL,
`rd21` bigint NULL,
`rd22` bigint NULL,
`rd23` bigint NULL,
`rd24` bigint NULL,
`rd25` bigint NULL,
`rd26` bigint NULL,
`rd27` bigint NULL,
`rd28` bigint NULL,
`rd29` bigint NULL,
`rd30` bigint NULL,
`rd45` bigint NULL,
`rd60` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_retention_apu_m;
CREATE TABLE `rpt_retention_apu_m` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`rd1` bigint NULL,
`rd2` bigint NULL,
`rd3` bigint NULL,
`rd4` bigint NULL,
`rd5` bigint NULL,
`rd6` bigint NULL,
`rd7` bigint NULL,
`rd8` bigint NULL,
`rd9` bigint NULL,
`rd10` bigint NULL,
`rd11` bigint NULL,
`rd12` bigint NULL,
`rd13` bigint NULL,
`rd14` bigint NULL,
`rd15` bigint NULL,
`rd16` bigint NULL,
`rd17` bigint NULL,
`rd18` bigint NULL,
`rd19` bigint NULL,
`rd20` bigint NULL,
`rd21` bigint NULL,
`rd22` bigint NULL,
`rd23` bigint NULL,
`rd24` bigint NULL,
`rd25` bigint NULL,
`rd26` bigint NULL,
`rd27` bigint NULL,
`rd28` bigint NULL,
`rd29` bigint NULL,
`rd30` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_retention_apu_w;
CREATE TABLE `rpt_retention_apu_w` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`rd1` bigint NULL,
`rd2` bigint NULL,
`rd3` bigint NULL,
`rd4` bigint NULL,
`rd5` bigint NULL,
`rd6` bigint NULL,
`rd7` bigint NULL,
`rd8` bigint NULL,
`rd9` bigint NULL,
`rd10` bigint NULL,
`rd11` bigint NULL,
`rd12` bigint NULL,
`rd13` bigint NULL,
`rd14` bigint NULL,
`rd15` bigint NULL,
`rd16` bigint NULL,
`rd17` bigint NULL,
`rd18` bigint NULL,
`rd19` bigint NULL,
`rd20` bigint NULL,
`rd21` bigint NULL,
`rd22` bigint NULL,
`rd23` bigint NULL,
`rd24` bigint NULL,
`rd25` bigint NULL,
`rd26` bigint NULL,
`rd27` bigint NULL,
`rd28` bigint NULL,
`rd29` bigint NULL,
`rd30` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_retention_newly_role_d;
CREATE TABLE `rpt_retention_newly_role_d` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`rd1` bigint NULL,
`rd2` bigint NULL,
`rd3` bigint NULL,
`rd4` bigint NULL,
`rd5` bigint NULL,
`rd6` bigint NULL,
`rd7` bigint NULL,
`rd8` bigint NULL,
`rd9` bigint NULL,
`rd10` bigint NULL,
`rd11` bigint NULL,
`rd12` bigint NULL,
`rd13` bigint NULL,
`rd14` bigint NULL,
`rd15` bigint NULL,
`rd16` bigint NULL,
`rd17` bigint NULL,
`rd18` bigint NULL,
`rd19` bigint NULL,
`rd20` bigint NULL,
`rd21` bigint NULL,
`rd22` bigint NULL,
`rd23` bigint NULL,
`rd24` bigint NULL,
`rd25` bigint NULL,
`rd26` bigint NULL,
`rd27` bigint NULL,
`rd28` bigint NULL,
`rd29` bigint NULL,
`rd30` bigint NULL,
`rd45` bigint NULL,
`rd60` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_retention_newly_role_m;
CREATE TABLE `rpt_retention_newly_role_m` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`rd1` bigint NULL,
`rd2` bigint NULL,
`rd3` bigint NULL,
`rd4` bigint NULL,
`rd5` bigint NULL,
`rd6` bigint NULL,
`rd7` bigint NULL,
`rd8` bigint NULL,
`rd9` bigint NULL,
`rd10` bigint NULL,
`rd11` bigint NULL,
`rd12` bigint NULL,
`rd13` bigint NULL,
`rd14` bigint NULL,
`rd15` bigint NULL,
`rd16` bigint NULL,
`rd17` bigint NULL,
`rd18` bigint NULL,
`rd19` bigint NULL,
`rd20` bigint NULL,
`rd21` bigint NULL,
`rd22` bigint NULL,
`rd23` bigint NULL,
`rd24` bigint NULL,
`rd25` bigint NULL,
`rd26` bigint NULL,
`rd27` bigint NULL,
`rd28` bigint NULL,
`rd29` bigint NULL,
`rd30` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_retention_newly_role_w;
CREATE TABLE `rpt_retention_newly_role_w` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`rd1` bigint NULL,
`rd2` bigint NULL,
`rd3` bigint NULL,
`rd4` bigint NULL,
`rd5` bigint NULL,
`rd6` bigint NULL,
`rd7` bigint NULL,
`rd8` bigint NULL,
`rd9` bigint NULL,
`rd10` bigint NULL,
`rd11` bigint NULL,
`rd12` bigint NULL,
`rd13` bigint NULL,
`rd14` bigint NULL,
`rd15` bigint NULL,
`rd16` bigint NULL,
`rd17` bigint NULL,
`rd18` bigint NULL,
`rd19` bigint NULL,
`rd20` bigint NULL,
`rd21` bigint NULL,
`rd22` bigint NULL,
`rd23` bigint NULL,
`rd24` bigint NULL,
`rd25` bigint NULL,
`rd26` bigint NULL,
`rd27` bigint NULL,
`rd28` bigint NULL,
`rd29` bigint NULL,
`rd30` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_retention_npa_repay;
CREATE TABLE `rpt_retention_npa_repay` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`dt` int NOT NULL,
`num` bigint NULL,
`rd1` bigint NULL,
`rd2` bigint NULL,
`rd3` bigint NULL,
`rd4` bigint NULL,
`rd5` bigint NULL,
`rd6` bigint NULL,
`rd7` bigint NULL,
`rd8` bigint NULL,
`rd9` bigint NULL,
`rd10` bigint NULL,
`rd11` bigint NULL,
`rd12` bigint NULL,
`rd13` bigint NULL,
`rd14` bigint NULL,
`rd15` bigint NULL,
`rd16` bigint NULL,
`rd17` bigint NULL,
`rd18` bigint NULL,
`rd19` bigint NULL,
`rd20` bigint NULL,
`rd21` bigint NULL,
`rd22` bigint NULL,
`rd23` bigint NULL,
`rd24` bigint NULL,
`rd25` bigint NULL,
`rd26` bigint NULL,
`rd27` bigint NULL,
`rd28` bigint NULL,
`rd29` bigint NULL,
`rd30` bigint NULL,
`rd45` bigint NULL,
`rd60` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`, `dt`)
DISTRIBUTED BY HASH(`dt`, `ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_retention_npr_d;
CREATE TABLE `rpt_retention_npr_d` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`rd1` bigint NULL,
`rd2` bigint NULL,
`rd3` bigint NULL,
`rd4` bigint NULL,
`rd5` bigint NULL,
`rd6` bigint NULL,
`rd7` bigint NULL,
`rd8` bigint NULL,
`rd9` bigint NULL,
`rd10` bigint NULL,
`rd11` bigint NULL,
`rd12` bigint NULL,
`rd13` bigint NULL,
`rd14` bigint NULL,
`rd15` bigint NULL,
`rd16` bigint NULL,
`rd17` bigint NULL,
`rd18` bigint NULL,
`rd19` bigint NULL,
`rd20` bigint NULL,
`rd21` bigint NULL,
`rd22` bigint NULL,
`rd23` bigint NULL,
`rd24` bigint NULL,
`rd25` bigint NULL,
`rd26` bigint NULL,
`rd27` bigint NULL,
`rd28` bigint NULL,
`rd29` bigint NULL,
`rd30` bigint NULL,
`rd45` bigint NULL,
`rd60` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_retention_npr_m;
CREATE TABLE `rpt_retention_npr_m` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`rd1` bigint NULL,
`rd2` bigint NULL,
`rd3` bigint NULL,
`rd4` bigint NULL,
`rd5` bigint NULL,
`rd6` bigint NULL,
`rd7` bigint NULL,
`rd8` bigint NULL,
`rd9` bigint NULL,
`rd10` bigint NULL,
`rd11` bigint NULL,
`rd12` bigint NULL,
`rd13` bigint NULL,
`rd14` bigint NULL,
`rd15` bigint NULL,
`rd16` bigint NULL,
`rd17` bigint NULL,
`rd18` bigint NULL,
`rd19` bigint NULL,
`rd20` bigint NULL,
`rd21` bigint NULL,
`rd22` bigint NULL,
`rd23` bigint NULL,
`rd24` bigint NULL,
`rd25` bigint NULL,
`rd26` bigint NULL,
`rd27` bigint NULL,
`rd28` bigint NULL,
`rd29` bigint NULL,
`rd30` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_retention_npr_w;
CREATE TABLE `rpt_retention_npr_w` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`rd1` bigint NULL,
`rd2` bigint NULL,
`rd3` bigint NULL,
`rd4` bigint NULL,
`rd5` bigint NULL,
`rd6` bigint NULL,
`rd7` bigint NULL,
`rd8` bigint NULL,
`rd9` bigint NULL,
`rd10` bigint NULL,
`rd11` bigint NULL,
`rd12` bigint NULL,
`rd13` bigint NULL,
`rd14` bigint NULL,
`rd15` bigint NULL,
`rd16` bigint NULL,
`rd17` bigint NULL,
`rd18` bigint NULL,
`rd19` bigint NULL,
`rd20` bigint NULL,
`rd21` bigint NULL,
`rd22` bigint NULL,
`rd23` bigint NULL,
`rd24` bigint NULL,
`rd25` bigint NULL,
`rd26` bigint NULL,
`rd27` bigint NULL,
`rd28` bigint NULL,
`rd29` bigint NULL,
`rd30` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_retention_npu;
CREATE TABLE `rpt_retention_npu` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`rd1` bigint NULL,
`rd2` bigint NULL,
`rd3` bigint NULL,
`rd4` bigint NULL,
`rd5` bigint NULL,
`rd6` bigint NULL,
`rd7` bigint NULL,
`rd8` bigint NULL,
`rd9` bigint NULL,
`rd10` bigint NULL,
`rd11` bigint NULL,
`rd12` bigint NULL,
`rd13` bigint NULL,
`rd14` bigint NULL,
`rd15` bigint NULL,
`rd16` bigint NULL,
`rd17` bigint NULL,
`rd18` bigint NULL,
`rd19` bigint NULL,
`rd20` bigint NULL,
`rd21` bigint NULL,
`rd22` bigint NULL,
`rd23` bigint NULL,
`rd24` bigint NULL,
`rd25` bigint NULL,
`rd26` bigint NULL,
`rd27` bigint NULL,
`rd28` bigint NULL,
`rd29` bigint NULL,
`rd30` bigint NULL,
`rd45` bigint NULL,
`rd60` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_retention_npu_m;
CREATE TABLE `rpt_retention_npu_m` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`rd1` bigint NULL,
`rd2` bigint NULL,
`rd3` bigint NULL,
`rd4` bigint NULL,
`rd5` bigint NULL,
`rd6` bigint NULL,
`rd7` bigint NULL,
`rd8` bigint NULL,
`rd9` bigint NULL,
`rd10` bigint NULL,
`rd11` bigint NULL,
`rd12` bigint NULL,
`rd13` bigint NULL,
`rd14` bigint NULL,
`rd15` bigint NULL,
`rd16` bigint NULL,
`rd17` bigint NULL,
`rd18` bigint NULL,
`rd19` bigint NULL,
`rd20` bigint NULL,
`rd21` bigint NULL,
`rd22` bigint NULL,
`rd23` bigint NULL,
`rd24` bigint NULL,
`rd25` bigint NULL,
`rd26` bigint NULL,
`rd27` bigint NULL,
`rd28` bigint NULL,
`rd29` bigint NULL,
`rd30` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_retention_npu_w;
CREATE TABLE `rpt_retention_npu_w` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`rd1` bigint NULL,
`rd2` bigint NULL,
`rd3` bigint NULL,
`rd4` bigint NULL,
`rd5` bigint NULL,
`rd6` bigint NULL,
`rd7` bigint NULL,
`rd8` bigint NULL,
`rd9` bigint NULL,
`rd10` bigint NULL,
`rd11` bigint NULL,
`rd12` bigint NULL,
`rd13` bigint NULL,
`rd14` bigint NULL,
`rd15` bigint NULL,
`rd16` bigint NULL,
`rd17` bigint NULL,
`rd18` bigint NULL,
`rd19` bigint NULL,
`rd20` bigint NULL,
`rd21` bigint NULL,
`rd22` bigint NULL,
`rd23` bigint NULL,
`rd24` bigint NULL,
`rd25` bigint NULL,
`rd26` bigint NULL,
`rd27` bigint NULL,
`rd28` bigint NULL,
`rd29` bigint NULL,
`rd30` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_retention_reg;
CREATE TABLE `rpt_retention_reg` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`rd1` bigint NULL,
`rd2` bigint NULL,
`rd3` bigint NULL,
`rd4` bigint NULL,
`rd5` bigint NULL,
`rd6` bigint NULL,
`rd7` bigint NULL,
`rd8` bigint NULL,
`rd9` bigint NULL,
`rd10` bigint NULL,
`rd11` bigint NULL,
`rd12` bigint NULL,
`rd13` bigint NULL,
`rd14` bigint NULL,
`rd15` bigint NULL,
`rd16` bigint NULL,
`rd17` bigint NULL,
`rd18` bigint NULL,
`rd19` bigint NULL,
`rd20` bigint NULL,
`rd21` bigint NULL,
`rd22` bigint NULL,
`rd23` bigint NULL,
`rd24` bigint NULL,
`rd25` bigint NULL,
`rd26` bigint NULL,
`rd27` bigint NULL,
`rd28` bigint NULL,
`rd29` bigint NULL,
`rd30` bigint NULL,
`rd45` bigint NULL,
`rd60` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_retention_reg_m;
CREATE TABLE `rpt_retention_reg_m` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`rd1` bigint NULL,
`rd2` bigint NULL,
`rd3` bigint NULL,
`rd4` bigint NULL,
`rd5` bigint NULL,
`rd6` bigint NULL,
`rd7` bigint NULL,
`rd8` bigint NULL,
`rd9` bigint NULL,
`rd10` bigint NULL,
`rd11` bigint NULL,
`rd12` bigint NULL,
`rd13` bigint NULL,
`rd14` bigint NULL,
`rd15` bigint NULL,
`rd16` bigint NULL,
`rd17` bigint NULL,
`rd18` bigint NULL,
`rd19` bigint NULL,
`rd20` bigint NULL,
`rd21` bigint NULL,
`rd22` bigint NULL,
`rd23` bigint NULL,
`rd24` bigint NULL,
`rd25` bigint NULL,
`rd26` bigint NULL,
`rd27` bigint NULL,
`rd28` bigint NULL,
`rd29` bigint NULL,
`rd30` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_retention_reg_w;
CREATE TABLE `rpt_retention_reg_w` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`rd1` bigint NULL,
`rd2` bigint NULL,
`rd3` bigint NULL,
`rd4` bigint NULL,
`rd5` bigint NULL,
`rd6` bigint NULL,
`rd7` bigint NULL,
`rd8` bigint NULL,
`rd9` bigint NULL,
`rd10` bigint NULL,
`rd11` bigint NULL,
`rd12` bigint NULL,
`rd13` bigint NULL,
`rd14` bigint NULL,
`rd15` bigint NULL,
`rd16` bigint NULL,
`rd17` bigint NULL,
`rd18` bigint NULL,
`rd19` bigint NULL,
`rd20` bigint NULL,
`rd21` bigint NULL,
`rd22` bigint NULL,
`rd23` bigint NULL,
`rd24` bigint NULL,
`rd25` bigint NULL,
`rd26` bigint NULL,
`rd27` bigint NULL,
`rd28` bigint NULL,
`rd29` bigint NULL,
`rd30` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_retention_repay_d;
CREATE TABLE `rpt_retention_repay_d` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`rd1` bigint NULL,
`rd2` bigint NULL,
`rd3` bigint NULL,
`rd4` bigint NULL,
`rd5` bigint NULL,
`rd6` bigint NULL,
`rd7` bigint NULL,
`rd8` bigint NULL,
`rd9` bigint NULL,
`rd10` bigint NULL,
`rd11` bigint NULL,
`rd12` bigint NULL,
`rd13` bigint NULL,
`rd14` bigint NULL,
`rd15` bigint NULL,
`rd16` bigint NULL,
`rd17` bigint NULL,
`rd18` bigint NULL,
`rd19` bigint NULL,
`rd20` bigint NULL,
`rd21` bigint NULL,
`rd22` bigint NULL,
`rd23` bigint NULL,
`rd24` bigint NULL,
`rd25` bigint NULL,
`rd26` bigint NULL,
`rd27` bigint NULL,
`rd28` bigint NULL,
`rd29` bigint NULL,
`rd30` bigint NULL,
`rd45` bigint NULL,
`rd60` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_union_1st_payment_r;
CREATE TABLE `rpt_union_1st_payment_r` (
`game_id` int NOT NULL,
`server_id` bigint NOT NULL,
`ds` date NOT NULL,
`hm` varchar(64) NOT NULL,
`total_account` bigint NULL,
`total_amount` bigint NULL,
`newly_account` bigint NULL,
`newly_amount` bigint NULL,
`hh` varchar(64) NULL,
`avg_paytime` bigint NULL,
`median_paytime` bigint NULL,
`mode_paytime` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `server_id`, `ds`, `hm`)
DISTRIBUTED BY HASH(`game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_union_oper_ltv;
CREATE TABLE `rpt_union_oper_ltv` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`ltv1` bigint NULL,
`ltv2` bigint NULL,
`ltv3` bigint NULL,
`ltv4` bigint NULL,
`ltv5` bigint NULL,
`ltv6` bigint NULL,
`ltv7` bigint NULL,
`ltv8` bigint NULL,
`ltv9` bigint NULL,
`ltv10` bigint NULL,
`ltv11` bigint NULL,
`ltv12` bigint NULL,
`ltv13` bigint NULL,
`ltv14` bigint NULL,
`ltv15` bigint NULL,
`ltv16` bigint NULL,
`ltv17` bigint NULL,
`ltv18` bigint NULL,
`ltv19` bigint NULL,
`ltv20` bigint NULL,
`ltv21` bigint NULL,
`ltv22` bigint NULL,
`ltv23` bigint NULL,
`ltv24` bigint NULL,
`ltv25` bigint NULL,
`ltv26` bigint NULL,
`ltv27` bigint NULL,
`ltv28` bigint NULL,
`ltv29` bigint NULL,
`ltv30` bigint NULL,
`ltv31` bigint NULL,
`ltv45` bigint NULL,
`ltv60` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_union_oper_reflux_user;
CREATE TABLE `rpt_union_oper_reflux_user` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`rd7` bigint NULL,
`rd14` bigint NULL,
`rd30` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_union_oper_retention_act_d;
CREATE TABLE `rpt_union_oper_retention_act_d` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`rd1` bigint NULL,
`rd2` bigint NULL,
`rd3` bigint NULL,
`rd4` bigint NULL,
`rd5` bigint NULL,
`rd6` bigint NULL,
`rd7` bigint NULL,
`rd8` bigint NULL,
`rd9` bigint NULL,
`rd10` bigint NULL,
`rd11` bigint NULL,
`rd12` bigint NULL,
`rd13` bigint NULL,
`rd14` bigint NULL,
`rd15` bigint NULL,
`rd16` bigint NULL,
`rd17` bigint NULL,
`rd18` bigint NULL,
`rd19` bigint NULL,
`rd20` bigint NULL,
`rd21` bigint NULL,
`rd22` bigint NULL,
`rd23` bigint NULL,
`rd24` bigint NULL,
`rd25` bigint NULL,
`rd26` bigint NULL,
`rd27` bigint NULL,
`rd28` bigint NULL,
`rd29` bigint NULL,
`rd30` bigint NULL,
`rd31` bigint NULL,
`rd45` bigint NULL,
`rd60` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_union_oper_retention_act_m;
CREATE TABLE `rpt_union_oper_retention_act_m` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`ltv1` bigint NULL,
`ltv2` bigint NULL,
`ltv3` bigint NULL,
`ltv4` bigint NULL,
`ltv5` bigint NULL,
`ltv6` bigint NULL,
`ltv7` bigint NULL,
`ltv8` bigint NULL,
`ltv9` bigint NULL,
`ltv10` bigint NULL,
`ltv11` bigint NULL,
`ltv12` bigint NULL,
`ltv13` bigint NULL,
`ltv14` bigint NULL,
`ltv15` bigint NULL,
`ltv16` bigint NULL,
`ltv17` bigint NULL,
`ltv18` bigint NULL,
`ltv19` bigint NULL,
`ltv20` bigint NULL,
`ltv21` bigint NULL,
`ltv22` bigint NULL,
`ltv23` bigint NULL,
`ltv24` bigint NULL,
`ltv25` bigint NULL,
`ltv26` bigint NULL,
`ltv27` bigint NULL,
`ltv28` bigint NULL,
`ltv29` bigint NULL,
`ltv30` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_union_oper_retention_act_w;
CREATE TABLE `rpt_union_oper_retention_act_w` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`rd1` bigint NULL,
`rd2` bigint NULL,
`rd3` bigint NULL,
`rd4` bigint NULL,
`rd5` bigint NULL,
`rd6` bigint NULL,
`rd7` bigint NULL,
`rd8` bigint NULL,
`rd9` bigint NULL,
`rd10` bigint NULL,
`rd11` bigint NULL,
`rd12` bigint NULL,
`rd13` bigint NULL,
`rd14` bigint NULL,
`rd15` bigint NULL,
`rd16` bigint NULL,
`rd17` bigint NULL,
`rd18` bigint NULL,
`rd19` bigint NULL,
`rd20` bigint NULL,
`rd21` bigint NULL,
`rd22` bigint NULL,
`rd23` bigint NULL,
`rd24` bigint NULL,
`rd25` bigint NULL,
`rd26` bigint NULL,
`rd27` bigint NULL,
`rd28` bigint NULL,
`rd29` bigint NULL,
`rd30` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_union_oper_retention_apu_d;
CREATE TABLE `rpt_union_oper_retention_apu_d` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`rd1` bigint NULL,
`rd2` bigint NULL,
`rd3` bigint NULL,
`rd4` bigint NULL,
`rd5` bigint NULL,
`rd6` bigint NULL,
`rd7` bigint NULL,
`rd8` bigint NULL,
`rd9` bigint NULL,
`rd10` bigint NULL,
`rd11` bigint NULL,
`rd12` bigint NULL,
`rd13` bigint NULL,
`rd14` bigint NULL,
`rd15` bigint NULL,
`rd16` bigint NULL,
`rd17` bigint NULL,
`rd18` bigint NULL,
`rd19` bigint NULL,
`rd20` bigint NULL,
`rd21` bigint NULL,
`rd22` bigint NULL,
`rd23` bigint NULL,
`rd24` bigint NULL,
`rd25` bigint NULL,
`rd26` bigint NULL,
`rd27` bigint NULL,
`rd28` bigint NULL,
`rd29` bigint NULL,
`rd30` bigint NULL,
`rd45` bigint NULL,
`rd60` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_union_oper_retention_apu_m;
CREATE TABLE `rpt_union_oper_retention_apu_m` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`rd1` bigint NULL,
`rd2` bigint NULL,
`rd3` bigint NULL,
`rd4` bigint NULL,
`rd5` bigint NULL,
`rd6` bigint NULL,
`rd7` bigint NULL,
`rd8` bigint NULL,
`rd9` bigint NULL,
`rd10` bigint NULL,
`rd11` bigint NULL,
`rd12` bigint NULL,
`rd13` bigint NULL,
`rd14` bigint NULL,
`rd15` bigint NULL,
`rd16` bigint NULL,
`rd17` bigint NULL,
`rd18` bigint NULL,
`rd19` bigint NULL,
`rd20` bigint NULL,
`rd21` bigint NULL,
`rd22` bigint NULL,
`rd23` bigint NULL,
`rd24` bigint NULL,
`rd25` bigint NULL,
`rd26` bigint NULL,
`rd27` bigint NULL,
`rd28` bigint NULL,
`rd29` bigint NULL,
`rd30` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_union_oper_retention_apu_w;
CREATE TABLE `rpt_union_oper_retention_apu_w` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`rd1` bigint NULL,
`rd2` bigint NULL,
`rd3` bigint NULL,
`rd4` bigint NULL,
`rd5` bigint NULL,
`rd6` bigint NULL,
`rd7` bigint NULL,
`rd8` bigint NULL,
`rd9` bigint NULL,
`rd10` bigint NULL,
`rd11` bigint NULL,
`rd12` bigint NULL,
`rd13` bigint NULL,
`rd14` bigint NULL,
`rd15` bigint NULL,
`rd16` bigint NULL,
`rd17` bigint NULL,
`rd18` bigint NULL,
`rd19` bigint NULL,
`rd20` bigint NULL,
`rd21` bigint NULL,
`rd22` bigint NULL,
`rd23` bigint NULL,
`rd24` bigint NULL,
`rd25` bigint NULL,
`rd26` bigint NULL,
`rd27` bigint NULL,
`rd28` bigint NULL,
`rd29` bigint NULL,
`rd30` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_union_oper_retention_npu_d;
CREATE TABLE `rpt_union_oper_retention_npu_d` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`ltv1` bigint NULL,
`ltv2` bigint NULL,
`ltv3` bigint NULL,
`ltv4` bigint NULL,
`ltv5` bigint NULL,
`ltv6` bigint NULL,
`ltv7` bigint NULL,
`ltv8` bigint NULL,
`ltv9` bigint NULL,
`ltv10` bigint NULL,
`ltv11` bigint NULL,
`ltv12` bigint NULL,
`ltv13` bigint NULL,
`ltv14` bigint NULL,
`ltv15` bigint NULL,
`ltv16` bigint NULL,
`ltv17` bigint NULL,
`ltv18` bigint NULL,
`ltv19` bigint NULL,
`ltv20` bigint NULL,
`ltv21` bigint NULL,
`ltv22` bigint NULL,
`ltv23` bigint NULL,
`ltv24` bigint NULL,
`ltv25` bigint NULL,
`ltv26` bigint NULL,
`ltv27` bigint NULL,
`ltv28` bigint NULL,
`ltv29` bigint NULL,
`ltv30` bigint NULL,
`ltv31` bigint NULL,
`ltv45` bigint NULL,
`ltv60` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_union_oper_retention_npu_m;
CREATE TABLE `rpt_union_oper_retention_npu_m` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`ltv1` bigint NULL,
`ltv2` bigint NULL,
`ltv3` bigint NULL,
`ltv4` bigint NULL,
`ltv5` bigint NULL,
`ltv6` bigint NULL,
`ltv7` bigint NULL,
`ltv8` bigint NULL,
`ltv9` bigint NULL,
`ltv10` bigint NULL,
`ltv11` bigint NULL,
`ltv12` bigint NULL,
`ltv13` bigint NULL,
`ltv14` bigint NULL,
`ltv15` bigint NULL,
`ltv16` bigint NULL,
`ltv17` bigint NULL,
`ltv18` bigint NULL,
`ltv19` bigint NULL,
`ltv20` bigint NULL,
`ltv21` bigint NULL,
`ltv22` bigint NULL,
`ltv23` bigint NULL,
`ltv24` bigint NULL,
`ltv25` bigint NULL,
`ltv26` bigint NULL,
`ltv27` bigint NULL,
`ltv28` bigint NULL,
`ltv29` bigint NULL,
`ltv30` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_union_oper_retention_npu_w;
CREATE TABLE `rpt_union_oper_retention_npu_w` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`rd1` bigint NULL,
`rd2` bigint NULL,
`rd3` bigint NULL,
`rd4` bigint NULL,
`rd5` bigint NULL,
`rd6` bigint NULL,
`rd7` bigint NULL,
`rd8` bigint NULL,
`rd9` bigint NULL,
`rd10` bigint NULL,
`rd11` bigint NULL,
`rd12` bigint NULL,
`rd13` bigint NULL,
`rd14` bigint NULL,
`rd15` bigint NULL,
`rd16` bigint NULL,
`rd17` bigint NULL,
`rd18` bigint NULL,
`rd19` bigint NULL,
`rd20` bigint NULL,
`rd21` bigint NULL,
`rd22` bigint NULL,
`rd23` bigint NULL,
`rd24` bigint NULL,
`rd25` bigint NULL,
`rd26` bigint NULL,
`rd27` bigint NULL,
`rd28` bigint NULL,
`rd29` bigint NULL,
`rd30` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_union_oper_retention_reg_d;
CREATE TABLE `rpt_union_oper_retention_reg_d` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`rd1` bigint NULL,
`rd2` bigint NULL,
`rd3` bigint NULL,
`rd4` bigint NULL,
`rd5` bigint NULL,
`rd6` bigint NULL,
`rd7` bigint NULL,
`rd8` bigint NULL,
`rd9` bigint NULL,
`rd10` bigint NULL,
`rd11` bigint NULL,
`rd12` bigint NULL,
`rd13` bigint NULL,
`rd14` bigint NULL,
`rd15` bigint NULL,
`rd16` bigint NULL,
`rd17` bigint NULL,
`rd18` bigint NULL,
`rd19` bigint NULL,
`rd20` bigint NULL,
`rd21` bigint NULL,
`rd22` bigint NULL,
`rd23` bigint NULL,
`rd24` bigint NULL,
`rd25` bigint NULL,
`rd26` bigint NULL,
`rd27` bigint NULL,
`rd28` bigint NULL,
`rd29` bigint NULL,
`rd30` bigint NULL,
`rd45` bigint NULL,
`rd60` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_union_oper_retention_reg_m;
CREATE TABLE `rpt_union_oper_retention_reg_m` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`rd1` bigint NULL,
`rd2` bigint NULL,
`rd3` bigint NULL,
`rd4` bigint NULL,
`rd5` bigint NULL,
`rd6` bigint NULL,
`rd7` bigint NULL,
`rd8` bigint NULL,
`rd9` bigint NULL,
`rd10` bigint NULL,
`rd11` bigint NULL,
`rd12` bigint NULL,
`rd13` bigint NULL,
`rd14` bigint NULL,
`rd15` bigint NULL,
`rd16` bigint NULL,
`rd17` bigint NULL,
`rd18` bigint NULL,
`rd19` bigint NULL,
`rd20` bigint NULL,
`rd21` bigint NULL,
`rd22` bigint NULL,
`rd23` bigint NULL,
`rd24` bigint NULL,
`rd25` bigint NULL,
`rd26` bigint NULL,
`rd27` bigint NULL,
`rd28` bigint NULL,
`rd29` bigint NULL,
`rd30` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_union_oper_retention_reg_w;
CREATE TABLE `rpt_union_oper_retention_reg_w` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`ltv1` bigint NULL,
`ltv2` bigint NULL,
`ltv3` bigint NULL,
`ltv4` bigint NULL,
`ltv5` bigint NULL,
`ltv6` bigint NULL,
`ltv7` bigint NULL,
`ltv8` bigint NULL,
`ltv9` bigint NULL,
`ltv10` bigint NULL,
`ltv11` bigint NULL,
`ltv12` bigint NULL,
`ltv13` bigint NULL,
`ltv14` bigint NULL,
`ltv15` bigint NULL,
`ltv16` bigint NULL,
`ltv17` bigint NULL,
`ltv18` bigint NULL,
`ltv19` bigint NULL,
`ltv20` bigint NULL,
`ltv21` bigint NULL,
`ltv22` bigint NULL,
`ltv23` bigint NULL,
`ltv24` bigint NULL,
`ltv25` bigint NULL,
`ltv26` bigint NULL,
`ltv27` bigint NULL,
`ltv28` bigint NULL,
`ltv29` bigint NULL,
`ltv30` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_union_oper_statis_d;
CREATE TABLE `rpt_union_oper_statis_d` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`newly_account` bigint NULL,
`active_account` bigint NULL,
`login_account` bigint NULL,
`payment_order` bigint NULL,
`payment_account` bigint NULL,
`payment_amount` bigint NULL,
`newly_payment_account` bigint NULL,
`newly_payment_amount` bigint NULL,
`cm_newly_account` bigint NULL,
`cm_payment_amount` bigint NULL,
`newly_payment_order` bigint NULL,
`main_server` bigint NULL,
`main_server_id` bigint NULL,
`newly_account_role` bigint NULL,
`role_newly_account` bigint NULL,
`max_online` bigint NULL,
`avg_online` decimal(15,2) NULL,
`total_amount` bigint NULL,
`total_account` bigint NULL,
`total_order` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_union_oper_statis_m;
CREATE TABLE `rpt_union_oper_statis_m` (
`ds` date NOT NULL,
`game_id` bigint NOT NULL,
`server_id` bigint NOT NULL,
`newly_account` bigint NULL,
`active_account` bigint NULL,
`login_account` bigint NULL,
`payment_order` bigint NULL,
`payment_account` bigint NULL,
`payment_amount` bigint NULL,
`newly_payment_order` bigint NULL,
`newly_payment_account` bigint NULL,
`newly_payment_amount` bigint NULL,
`cm_newly_account` bigint NULL,
`cm_payment_amount` bigint NULL,
`max_online` bigint NULL,
`avg_online` bigint NULL,
`total_amount` bigint NULL,
`total_account` bigint NULL,
`total_order` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_union_oper_statis_r;
CREATE TABLE `rpt_union_oper_statis_r` (
`ds` varchar(10) NOT NULL,
`game_id` bigint NOT NULL,
`server_id` bigint NOT NULL,
`hm` varchar(10) NOT NULL,
`newly_account` bigint NULL,
`active_account` bigint NULL,
`login_account` bigint NULL,
`payment_order` bigint NULL,
`payment_account` bigint NULL,
`payment_amount` bigint NULL,
`newly_payment_account` bigint NULL,
`newly_payment_amount` bigint NULL,
`cm_newly_account` bigint NULL,
`cm_payment_amount` bigint NULL,
`hh` varchar(10) NULL,
`newly_payment_order` bigint NULL,
`main_server` bigint NULL,
`main_server_id` bigint NULL,
`newly_account_role` bigint NULL,
`role_newly_account` bigint NULL,
`max_online` bigint NULL,
`avg_online` decimal(15,2) NULL,
`total_amount` bigint NULL,
`total_account` bigint NULL,
`total_order` bigint NULL,
`active_role` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`, `hm`)
DISTRIBUTED BY HASH(`game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_union_oper_statis_rt;
CREATE TABLE `rpt_union_oper_statis_rt` (
`game_id` bigint NOT NULL,
`server_id` bigint NOT NULL,
`ds` date NOT NULL,
`hm` varchar(64) NOT NULL,
`newly_account` bigint NULL,
`active_account` bigint NULL,
`login_account` bigint NULL,
`payment_order` bigint NULL,
`payment_account` bigint NULL,
`payment_amount` bigint NULL,
`newly_payment_account` bigint NULL,
`newly_payment_amount` bigint NULL,
`cm_newly_account` bigint NULL,
`cm_payment_amount` bigint NULL,
`newly_payment_order` bigint NULL,
`hh` varchar(64) NULL,
`main_server` bigint NULL,
`main_server_id` bigint NULL,
`newly_account_role` bigint NULL,
`role_newly_account` bigint NULL,
`total_amount` bigint NULL,
`total_account` bigint NULL,
`total_order` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `server_id`, `ds`, `hm`)
DISTRIBUTED BY HASH(`game_id`, `server_id`, `ds`, `hm`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_union_payment_distribution;
CREATE TABLE `rpt_union_payment_distribution` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`dt` int NOT NULL,
`total_account` bigint NULL,
`payment_account` bigint NULL,
`range1` bigint NULL,
`range2` bigint NULL,
`range3` bigint NULL,
`range4` bigint NULL,
`range5` bigint NULL,
`range6` bigint NULL,
`range7` bigint NULL,
`range8` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`, `dt`)
DISTRIBUTED BY HASH(`dt`, `ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_union_retention_npa_repay;
CREATE TABLE `rpt_union_retention_npa_repay` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`dt` int NOT NULL,
`num` bigint NULL,
`rd1` bigint NULL,
`rd2` bigint NULL,
`rd3` bigint NULL,
`rd4` bigint NULL,
`rd5` bigint NULL,
`rd6` bigint NULL,
`rd7` bigint NULL,
`rd8` bigint NULL,
`rd9` bigint NULL,
`rd10` bigint NULL,
`rd11` bigint NULL,
`rd12` bigint NULL,
`rd13` bigint NULL,
`rd14` bigint NULL,
`rd15` bigint NULL,
`rd16` bigint NULL,
`rd17` bigint NULL,
`rd18` bigint NULL,
`rd19` bigint NULL,
`rd20` bigint NULL,
`rd21` bigint NULL,
`rd22` bigint NULL,
`rd23` bigint NULL,
`rd24` bigint NULL,
`rd25` bigint NULL,
`rd26` bigint NULL,
`rd27` bigint NULL,
`rd28` bigint NULL,
`rd29` bigint NULL,
`rd30` bigint NULL,
`rd45` bigint NULL,
`rd60` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`, `dt`)
DISTRIBUTED BY HASH(`dt`, `ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE rpt_union_retention_repay_d;
CREATE TABLE `rpt_union_retention_repay_d` (
`ds` date NOT NULL,
`game_id` int NOT NULL,
`server_id` int NOT NULL,
`num` bigint NULL,
`rd1` bigint NULL,
`rd2` bigint NULL,
`rd3` bigint NULL,
`rd4` bigint NULL,
`rd5` bigint NULL,
`rd6` bigint NULL,
`rd7` bigint NULL,
`rd8` bigint NULL,
`rd9` bigint NULL,
`rd10` bigint NULL,
`rd11` bigint NULL,
`rd12` bigint NULL,
`rd13` bigint NULL,
`rd14` bigint NULL,
`rd15` bigint NULL,
`rd16` bigint NULL,
`rd17` bigint NULL,
`rd18` bigint NULL,
`rd19` bigint NULL,
`rd20` bigint NULL,
`rd21` bigint NULL,
`rd22` bigint NULL,
`rd23` bigint NULL,
`rd24` bigint NULL,
`rd25` bigint NULL,
`rd26` bigint NULL,
`rd27` bigint NULL,
`rd28` bigint NULL,
`rd29` bigint NULL,
`rd30` bigint NULL,
`rd45` bigint NULL,
`rd60` bigint NULL
) ENGINE=OLAP
UNIQUE KEY(`ds`, `game_id`, `server_id`)
DISTRIBUTED BY HASH(`ds`, `game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE tab_spend;
CREATE TABLE `tab_spend` (
`id` int NOT NULL COMMENT "自增主键",
`user_id` int NOT NULL COMMENT " 用户ID",
`user_account` varchar(50) NULL COMMENT "用户账号",
`user_nickname` varchar(30) NULL COMMENT "用户昵称",
`game_id` int NOT NULL COMMENT "游戏id",
`game_appid` varchar(32) NULL COMMENT "游戏appid",
`game_name` varchar(30) NULL COMMENT "游戏名称",
`server_id` varchar(50) NULL COMMENT "区服id",
`server_name` varchar(30) NULL COMMENT "区服名称",
`game_player_id` varchar(50) NULL COMMENT "玩家游戏内id",
`game_player_name` varchar(100) NULL COMMENT "游戏玩家昵称",
`promote_id` int NOT NULL COMMENT "推广员id",
`promote_account` varchar(30) NULL COMMENT "推广员账号",
`order_number` varchar(100) NULL COMMENT "订单号",
`pay_order_number` varchar(100) NULL COMMENT "支付订单号",
`props_name` varchar(30) NULL COMMENT "道具名称",
`pay_amount` decimal(10,2) NULL COMMENT "支付金额",
`pay_time` int NULL COMMENT "支付时间",
`pay_status` tinyint NULL COMMENT "支付状态",
`pay_game_status` tinyint NULL COMMENT "游戏支付状态",
`extend` varchar(150) NULL COMMENT "通知游戏方扩展(一般是游戏方透传)",
`pay_way` tinyint NULL,
`spend_ip` varchar(50) NULL COMMENT "支付IP",
`settle_check` tinyint NOT NULL DEFAULT "0" COMMENT "渠道结算 0未结算 1 已结算",
`selle_status` int NOT NULL DEFAULT "0" COMMENT "CP结算 0未结算1 结算",
`selle_ratio` decimal(5,2) NULL DEFAULT "0.00" COMMENT "cp分成比例",
`sub_status` int NOT NULL DEFAULT "0" COMMENT "子渠道结算状态",
`selle_time` varchar(30) NULL COMMENT "cp结算时间",
`sdk_version` tinyint NULL COMMENT "区别sdk版本1安卓 2苹果 ",
`cost` decimal(10,2) NULL COMMENT "原价",
`discount_type` int NULL DEFAULT "0" COMMENT "0:无折扣 1首冲 2续冲",
`auto_compensation` int NULL DEFAULT "0" COMMENT "自动补单次数",
`diamond` varchar(255) NOT NULL DEFAULT "0" COMMENT "元宝",
`payplatform2cp` varchar(128) NULL COMMENT "游戏方透传参数目前是存了货币id,用于发货",
`platform_id` int NULL COMMENT "渠道号",
`settle_ratio_id` int NOT NULL DEFAULT "0" COMMENT "结算单id",
`pay_game_amount` decimal(10,2) NULL COMMENT "通知游戏金额",
`settle_state` tinyint NOT NULL DEFAULT "0" COMMENT "结算状态0未结算 1打款中 2已打款",
`ratio_state` tinyint NOT NULL DEFAULT "0" COMMENT "是否返点 0未返点 1打款中 2已打款",
`is_box_pay` tinyint NOT NULL DEFAULT "0" COMMENT "是否是盒子充值 1盒子直充游戏 2盒子余额",
`create_time` int NOT NULL DEFAULT "0" COMMENT "下单时间",
`pay_company` varchar(20) NULL DEFAULT "xianqu" COMMENT "付款公司",
`live_no` int NOT NULL DEFAULT "0" COMMENT "进入游戏的直播房间号",
`scene` tinyint NOT NULL DEFAULT "1" COMMENT "订单场景0其他1banner2直播3新游4找服5开服列表6排行榜7语音房",
`main_server_id` int NOT NULL DEFAULT "0",
`refund_type` tinyint NULL DEFAULT "0" COMMENT "退款状态0 未退款1 已退款)",
`ticket_type` tinyint NULL DEFAULT "0",
`pay_uid` varchar(200) NULL
) ENGINE=OLAP
UNIQUE KEY(`id`)
DISTRIBUTED BY HASH(`id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE yin_tmp;
CREATE TABLE `yin_tmp` (
`game_id` int NOT NULL,
`server_id` int NULL,
`tt` int NULL,
`tt2` int NULL
) ENGINE=OLAP
UNIQUE KEY(`game_id`, `server_id`)
DISTRIBUTED BY HASH(`game_id`) BUCKETS 32
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"enable_unique_key_merge_on_write" = "true",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728",
"enable_mow_light_delete" = "false"
);
drop TABLE yin_tmp_game_server;
CREATE TABLE `yin_tmp_game_server` (
`game_id` int NOT NULL,
`id` int NOT NULL,
`mid` int NULL,
`name` varchar(50) NULL,
`isconfirm` tinyint NULL,
`del` tinyint NULL,
`state` tinyint NULL,
`open_time` int NULL,
`space_id` int NULL,
`space_type` tinyint NULL,
`engine_version` varchar(255) NULL,
`server_type` varchar(16) NULL,
`kuafu_game_id` varchar(20) NULL
) ENGINE=OLAP
DUPLICATE KEY(`game_id`, `id`, `mid`)
DISTRIBUTED BY HASH(`game_id`) BUCKETS 10
PROPERTIES (
"replication_allocation" = "tag.location.ap_shanghai_8: 1, tag.location.ap_shanghai_5: 1, tag.location.ap_shanghai_4: 1",
"min_load_replica_num" = "-1",
"is_being_synced" = "false",
"storage_medium" = "hdd",
"storage_format" = "V2",
"inverted_index_storage_format" = "V1",
"light_schema_change" = "true",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false",
"group_commit_interval_ms" = "10000",
"group_commit_data_bytes" = "134217728"
);