Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backup Snapshot Fails Due to Case-Insensitive Table Name Handling: Duplicated Table Error #56012

Closed
fixpng opened this issue Feb 18, 2025 · 1 comment
Labels
type/bug Something isn't working

Comments

@fixpng
Copy link

fixpng commented Feb 18, 2025

Steps to reproduce the behavior (Required)

USE test;

CREATE TABLE `dws_hrm_hyyg_sumday` (
  `company_name` varchar(65533) NULL COMMENT "企业名称",
  `create_time_day` date NULL COMMENT "当前时间",
  `active_staff` int(11) NULL COMMENT "活跃员工数",
  `month_active_staff` int(11) NULL COMMENT "月活跃员工数",
  `etl_time` varchar(65533) NULL COMMENT "ETL时间",
  `data_dt` varchar(65533) NULL COMMENT ""
) ENGINE=OLAP 
DUPLICATE KEY(`company_name`)
COMMENT "活跃员工数日汇总表"
DISTRIBUTED BY HASH(`company_name`) BUCKETS 8 
PROPERTIES (
"replication_num" = "3",
"in_memory" = "false",
"storage_format" = "DEFAULT",
"enable_persistent_index" = "false",
"compression" = "LZ4"
);

CREATE TABLE `dws_hrm_hyyg_sumDay` (
  `company_name` varchar(65533) NULL COMMENT "企业名称",
  `create_time_day` date NULL COMMENT "当前时间",
  `active_staff` int(11) NULL COMMENT "活跃员工数",
  `month_active_staff` int(11) NULL COMMENT "月活跃员工数",
  `etl_time` varchar(65533) NULL COMMENT "ETL时间",
  `data_dt` varchar(65533) NULL COMMENT ""
) ENGINE=OLAP 
DUPLICATE KEY(`company_name`)
COMMENT "活跃员工数日汇总表"
DISTRIBUTED BY HASH(`company_name`) BUCKETS 8 
PROPERTIES (
"replication_num" = "3",
"in_memory" = "false",
"storage_format" = "DEFAULT",
"enable_persistent_index" = "false",
"compression" = "LZ4"
);

BACKUP SNAPSHOT test.test_20250218111839_backup  TO uat_backup_repo ON (`dws_hrm_hyyg_sumday`,`dws_hrm_hyyg_sumDay`);

Expected behavior (Required)

When table names are identical but differ in case, they should be recognized as two separate tables and backed up individually.

Real behavior (Required)

pymysql.err.ProgrammingError: (1064, 'Duplicated table: dws_hrm_hyyg_sumDay')

StarRocks version (Required)

@fixpng fixpng added the type/bug Something isn't working label Feb 18, 2025
@rohitrs1983
Copy link
Contributor

#51068

@fixpng fixpng closed this as completed Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants