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

AGGREGATE模型建表错误 #1749

Closed
metaAstonish opened this issue Jan 9, 2025 · 1 comment
Closed

AGGREGATE模型建表错误 #1749

metaAstonish opened this issue Jan 9, 2025 · 1 comment

Comments

@metaAstonish
Copy link

CREATE TABLE IF NOT EXISTS example_tbl_agg
(
user_id LARGEINT NOT NULL,
load_dt DATE NOT NULL,
city VARCHAR(20),
last_visit_dt DATETIME REPLACE DEFAULT "1970-01-01 00:00:00",
cost BIGINT SUM DEFAULT "0",
max_dwell INT MAX DEFAULT "0",
)
AGGREGATE KEY(user_id, date, city)
DISTRIBUTED BY HASH(user_id) BUCKETS 10;

在指定聚合列时,没有date列,应该是 load_dt列

@KassieZ
Copy link
Contributor

KassieZ commented Jan 24, 2025

Docs has been updated, please check

@KassieZ KassieZ closed this as completed Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants