Merge pull request #8523 from dataease/pr@dev-v2@refactor_func

refactor: 优化SQL函数
This commit is contained in:
Junjun 2024-03-14 17:09:43 +08:00 committed by GitHub
commit 0a485e0a08
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,10 +5,6 @@ package io.dataease.api.dataset.engine;
*/
public enum SQLFunctionsEnum {
SUBSTRING("SUBSTRING", "SUBSTRING(s,n,len)", 0, "获取从字符串s中的第n个位置开始长度为len的字符串", false),
DE_DATE_FORMAT("DE_DATE_FORMAT", "DE_DATE_FORMAT(date,format)", 1, "将date以format格式返回yyyy-MM-dd HH:mm:ss.SSS", true),
DE_STR_TO_DATE("DE_STR_TO_DATE", "DE_STR_TO_DATE(date,format)", 1, "将date以format格式返回yyyy-MM-dd HH:mm:ss.SSS", true),
UNIX_TIMESTAMP("UNIX_TIMESTAMP", "UNIX_TIMESTAMP(date)", 1, "将标准格式date以13位时间戳返回", true),
FROM_UNIXTIME("FROM_UNIXTIME", "FROM_UNIXTIME(timestamp,format)", 1, "将timestamp转换成format格式返回", true),
ABS("ABS", "ABS(x)", 2, "返回x的绝对值", false),
CEIL("CEIL", "CEIL(x)", 2, "返回不小于x的最小整数", false),
FLOOR("FLOOR", "FLOOR(x)", 2, "返回不大于x的最大整数", false),