The world's fastest open query engine for sub-second analytics both on and off the data lakehouse. With the flexibility to support nearly any scenario, StarRocks provides best-in-class performance for multi-dimensional analytics, real-time analytics, and ad-hoc queries. A Linux Foundation project.
In current master(3.3.0rc2) version, when a field starting with the # character is used as the key of a range partition expression, and there is a field with the same name that does not start with # in the table, the system will recognize that the field that does not start with # is used as the partition field.
Steps to reproduce the behavior (Required)
CREATE TABLE
CREATE TABLE site_access1 (
`#event_day` DATETIME NOT NULL,
site_id INT DEFAULT '10',
city_code VARCHAR(100),
user_name VARCHAR(32) DEFAULT '',
event_day DATETIME NOT NULL,
pv BIGINT DEFAULT '0'
)
DUPLICATE KEY(`#event_day`, site_id, city_code, user_name)
PARTITION BY date_trunc('day', `#event_day`)
DISTRIBUTED BY HASH(`#event_day`, site_id);
In current master(3.3.0rc2) version, when a field starting with the # character is used as the key of a range partition expression, and there is a field with the same name that does not start with # in the table, the system will recognize that the field that does not start with # is used as the partition field.
Steps to reproduce the behavior (Required)
In starrocks version 3.2.6-2585333
In starrocks version 3.3.0-rc2 (master version)
Partition range key
#event_day
->event_day
Expected behavior (Required)
Real behavior (Required)
StarRocks version (Required)
select current_version()