guopengfa
发布于 2024-03-26 / 126 阅读 / 0 评论 / 0 点赞

Doris使用记录

Doris Tips

create table example


CREATE TABLE celery_tasks_valuetable (
	id BIGINT, 
	`StartDate` DATEV2, 
	`EndDate` DATEV2, 
	`Value` FLOAT, 
	`BranchNumber_id` TEXT, 
	`ValueTypeId_id` BIGINT, 
	`UpdateTime` DATETIME
)
DISTRIBUTED BY HASH(`EndDate`) BUCKETS 1
PROPERTIES (
"replication_allocation" = "tag.location.default: 1"
)

create user example

create USER helei@'%' IDENTIFIED BY 'heleidorismima'

permission modify example

GRANT SELECT_PRIV ON spider.* TO 'helei'@'%';

drop table example

DROP TABLE spider.doris_dict_map_table

评论