As of Spring Framework 5.3.11, the {@link Connection} for the supplied
- * {@code DataSource} will be {@linkplain Connection#commit() committed} if
- * it is not configured for {@link Connection#getAutoCommit() auto-commit} and
- * is not {@linkplain DataSourceUtils#isConnectionTransactional transactional}.
- *
- * @param populator the {@code DatabasePopulator} to execute
- * @param dataSource the {@code DataSource} to execute against
- * @throws DataAccessException if an error occurs, specifically a {@link ScriptException}
- * @see DataSourceUtils#isConnectionTransactional(Connection, DataSource)
- */
- public static void execute(DatabasePopulator populator, DataSource dataSource) throws DataAccessException {
- Assert.notNull(populator, "DatabasePopulator must not be null");
- Assert.notNull(dataSource, "DataSource must not be null");
- try {
- // Override this method and do not run it if the table exists(重写此方法,如果有表存在,则不运行)
- if (isInit && CollUtil.isNotEmpty(Db.use(dataSource).query("show tables"))) {
- return;
- }
- isInit = false;
- Connection connection = DataSourceUtils.getConnection(dataSource);
- try {
- populator.populate(connection);
- if (!connection.getAutoCommit() && !DataSourceUtils.isConnectionTransactional(connection, dataSource)) {
- connection.commit();
- }
- } finally {
- DataSourceUtils.releaseConnection(connection, dataSource);
- }
- } catch (ScriptException ex) {
- throw ex;
- } catch (Throwable ex) {
- throw new UncategorizedScriptException("Failed to execute database script", ex);
- }
- }
-}
From b3733e4b25ae418a9b2affb30e985cb5f7250440 Mon Sep 17 00:00:00 2001
From: Zzm0809 <934230207@qq.com>
Date: Fri, 29 Mar 2024 12:24:43 +0800
Subject: [PATCH 07/18] modify code
---
.../configure/DatabaseFlywayMigration.java | 6 +-
.../src/main/resources/application-flyway.yml | 2 +
.../src/main/resources/application-h2.yml | 7 +-
.../src/main/resources/db/db-h2-ddl.sql | 635 -----
.../src/main/resources/db/db-h2-dml.sql | 2532 -----------------
.../src/main/resources/db/migration/README.md | 5 +-
.../db/migration/pgsql/V1.0.1__baseline.sql | 1352 ++++-----
7 files changed, 687 insertions(+), 3852 deletions(-)
delete mode 100644 dinky-admin/src/main/resources/db/db-h2-ddl.sql
delete mode 100644 dinky-admin/src/main/resources/db/db-h2-dml.sql
diff --git a/dinky-admin/src/main/java/org/dinky/configure/DatabaseFlywayMigration.java b/dinky-admin/src/main/java/org/dinky/configure/DatabaseFlywayMigration.java
index 4d3616a8a2..27ab239aa9 100644
--- a/dinky-admin/src/main/java/org/dinky/configure/DatabaseFlywayMigration.java
+++ b/dinky-admin/src/main/java/org/dinky/configure/DatabaseFlywayMigration.java
@@ -76,9 +76,9 @@ private DataSource dataSource() {
private void init() {
Flyway flyway = SpringUtil.getBean(Flyway.class);
try {
-
+ log.info("===========[Initialize flyway start]============");
flyway.migrate();
- log.info("===========[Initialize flyway successfully]============");
+ log.info("===========[Initialize flyway successfully ]============");
} catch (FlywayException e) {
flyway.repair();
@@ -87,6 +87,8 @@ private void init() {
} finally {
HikariDataSource dataSource =
(HikariDataSource) flyway.getConfiguration().getDataSource();
+ dataSource.close();
+ log.info("===========[Close dataSource of flyway successfully]============");
}
}
diff --git a/dinky-admin/src/main/resources/application-flyway.yml b/dinky-admin/src/main/resources/application-flyway.yml
index 8ad49209ab..936beadad3 100644
--- a/dinky-admin/src/main/resources/application-flyway.yml
+++ b/dinky-admin/src/main/resources/application-flyway.yml
@@ -15,6 +15,8 @@
# limitations under the License.
#
+# todo: pgsql 的sql文件 有些数据类型不对,需要修改 等待 pr https://github.com/DataLinkDC/dinky/pull/3306 合并后将文件内容复制到 db/migration/pgsql/V1.0.1__baseline.sql
+
spring:
flyway:
enabled: true # 是否启用
diff --git a/dinky-admin/src/main/resources/application-h2.yml b/dinky-admin/src/main/resources/application-h2.yml
index 955eda1e6f..18a84a486e 100644
--- a/dinky-admin/src/main/resources/application-h2.yml
+++ b/dinky-admin/src/main/resources/application-h2.yml
@@ -27,9 +27,4 @@ spring:
h2:
console:
enabled: true
- path: /api/h2
- sql:
- init:
- schema-locations: classpath:db/db-h2-ddl.sql
- data-locations: classpath:db/db-h2-dml.sql
- mode: always
\ No newline at end of file
+ path: /api/h2
\ No newline at end of file
diff --git a/dinky-admin/src/main/resources/db/db-h2-ddl.sql b/dinky-admin/src/main/resources/db/db-h2-ddl.sql
deleted file mode 100644
index 684283d7b3..0000000000
--- a/dinky-admin/src/main/resources/db/db-h2-ddl.sql
+++ /dev/null
@@ -1,635 +0,0 @@
-
-SET NAMES utf8mb4;
-SET FOREIGN_KEY_CHECKS = 0;
-
-CREATE TABLE `dinky_alert_group` (
- `id` int(11) NOT null AUTO_INCREMENT COMMENT 'id',
- `name` varchar(50) NOT null COMMENT 'alert group name',
- `tenant_id` int(11) NOT null DEFAULT 1 COMMENT 'tenant id',
- `alert_instance_ids` text null COMMENT 'Alert instance IDS',
- `note` varchar(255) null DEFAULT null COMMENT 'note',
- `enabled` tinyint(4) null DEFAULT 1 COMMENT 'is enable',
- `create_time` datetime(0) null DEFAULT null COMMENT 'create time',
- `update_time` datetime(0) null DEFAULT null COMMENT 'update time',
- `creator` int(11) null DEFAULT null COMMENT 'creator',
- `updater` int(11) null DEFAULT null COMMENT 'updater'
-
-) ENGINE = InnoDB ROW_FORMAT = Dynamic;
-
-CREATE TABLE `dinky_alert_history` (
- `id` int(11) NOT null AUTO_INCREMENT COMMENT 'id',
- `tenant_id` int(11) NOT null DEFAULT 1 COMMENT 'tenant id',
- `alert_group_id` int(11) null DEFAULT null COMMENT 'Alert group ID',
- `job_instance_id` int(11) null DEFAULT null COMMENT 'job instance ID',
- `title` varchar(255) null DEFAULT null COMMENT 'alert title',
- `content` text null COMMENT 'content description',
- `status` int(11) null DEFAULT null COMMENT 'alert status',
- `log` text null COMMENT 'log',
- `create_time` datetime(0) null DEFAULT null COMMENT 'create time',
- `update_time` datetime(0) null DEFAULT null COMMENT 'update time'
-) ENGINE = InnoDB ROW_FORMAT = Dynamic;
-
-CREATE TABLE `dinky_alert_instance` (
- `id` int(11) NOT null AUTO_INCREMENT COMMENT 'id',
- `name` varchar(50) NOT null COMMENT 'alert instance name',
- `tenant_id` int(11) NOT null DEFAULT 1 COMMENT 'tenant id',
- `type` varchar(50) null DEFAULT null COMMENT 'alert instance type such as: DingTalk,Wechat(Webhook,app) Feishu ,email',
- `params` longtext null COMMENT 'configuration',
- `enabled` tinyint(4) null DEFAULT 1 COMMENT 'is enable',
- `create_time` datetime(0) null DEFAULT null COMMENT 'create time',
- `update_time` datetime(0) null DEFAULT null COMMENT 'update time',
- `creator` int(11) null DEFAULT 1 COMMENT 'creator',
- `updater` int(11) null DEFAULT 1 COMMENT 'updater'
-) ENGINE = InnoDB ROW_FORMAT = Dynamic;
-
-CREATE TABLE `dinky_catalogue` (
- `id` int(11) NOT null AUTO_INCREMENT COMMENT 'ID',
- `tenant_id` int(11) NOT null DEFAULT 1 COMMENT 'tenant id',
- `task_id` int(11) null DEFAULT null COMMENT 'Job ID',
- `name` varchar(100) NOT null COMMENT 'Job Name',
- `type` varchar(50) null DEFAULT null COMMENT 'Job Type',
- `parent_id` int(11) NOT null DEFAULT 0 COMMENT 'parent ID',
- `enabled` tinyint(1) NOT null DEFAULT 1 COMMENT 'is enable',
- `is_leaf` tinyint(1) NOT null COMMENT 'is leaf node',
- `create_time` datetime(0) null DEFAULT null COMMENT 'create time',
- `update_time` datetime(0) null DEFAULT null COMMENT 'update time',
- `creator` int(11) null DEFAULT null COMMENT 'creator',
- `updater` int(11) null DEFAULT null COMMENT 'updater'
-) ENGINE = InnoDB ROW_FORMAT = Dynamic;
-
-CREATE TABLE `dinky_cluster` (
- `id` int(11) NOT null AUTO_INCREMENT COMMENT 'ID',
- `tenant_id` int(11) NOT null DEFAULT 1 COMMENT 'tenant id',
- `name` varchar(255) NOT null COMMENT 'cluster instance name',
- `alias` varchar(255) null DEFAULT null COMMENT 'cluster instance alias',
- `type` varchar(50) null DEFAULT null COMMENT 'cluster types',
- `hosts` text null COMMENT 'cluster hosts',
- `job_manager_host` varchar(255) null DEFAULT null COMMENT 'Job Manager Host',
- `version` varchar(20) null DEFAULT null COMMENT 'version',
- `status` int(11) null DEFAULT null COMMENT 'cluster status',
- `note` varchar(255) null DEFAULT null COMMENT 'note',
- `auto_registers` tinyint(1) null DEFAULT 0 COMMENT 'is auto registration',
- `cluster_configuration_id` int(11) null DEFAULT null COMMENT 'cluster configuration id',
- `task_id` int(11) null DEFAULT null COMMENT 'task ID',
- `enabled` tinyint(1) NOT null DEFAULT 1 COMMENT 'is enable',
- `create_time` datetime(0) null DEFAULT null COMMENT 'create time',
- `update_time` datetime(0) null DEFAULT null COMMENT 'update time',
- `creator` int(11) null DEFAULT null COMMENT 'creator',
- `updater` int(11) null DEFAULT null COMMENT 'updater'
-) ENGINE = InnoDB ROW_FORMAT = Dynamic;
-
-CREATE TABLE `dinky_cluster_configuration` (
- `id` int(11) NOT null AUTO_INCREMENT COMMENT 'ID',
- `tenant_id` int(11) NOT null DEFAULT 1 COMMENT 'tenant id',
- `name` varchar(255) NOT null COMMENT 'cluster configuration name',
- `type` varchar(50) null DEFAULT null COMMENT 'cluster type',
- `config_json` text null COMMENT 'json of configuration',
- `is_available` tinyint(1) NOT null DEFAULT 0 COMMENT 'is available',
- `note` varchar(255) null DEFAULT null COMMENT 'note',
- `enabled` tinyint(1) NOT null DEFAULT 1 COMMENT 'is enable',
- `create_time` datetime(0) null DEFAULT null COMMENT 'create time',
- `update_time` datetime(0) null DEFAULT null COMMENT 'update time',
- `creator` int(11) null DEFAULT null COMMENT 'creator',
- `updater` int(11) null DEFAULT null COMMENT 'updater'
-) ENGINE = InnoDB ROW_FORMAT = Dynamic;
-
-CREATE TABLE `dinky_database` (
- `id` int(11) NOT null AUTO_INCREMENT COMMENT 'ID',
- `tenant_id` int(11) NOT null DEFAULT 1 COMMENT 'tenant id',
- `name` varchar(30) NOT null COMMENT 'database name',
- `group_name` varchar(255) null DEFAULT 'Default' COMMENT 'database belong group name',
- `type` varchar(50) NOT null COMMENT 'database type',
- `connect_config` text NOT null COMMENT 'database type',
- `note` varchar(255) null DEFAULT null COMMENT 'note',
- `flink_config` text null COMMENT 'Flink configuration',
- `flink_template` text null COMMENT 'Flink template',
- `db_version` varchar(255) null DEFAULT null COMMENT 'version,such as: 11g of oracle ,2.2.3 of hbase',
- `status` tinyint(1) null DEFAULT null COMMENT 'heartbeat status',
- `health_time` datetime(0) null DEFAULT null COMMENT 'last heartbeat time of trigger',
- `heartbeat_time` datetime(0) null DEFAULT null COMMENT 'last heartbeat time',
- `enabled` tinyint(1) NOT null DEFAULT 1 COMMENT 'is enable',
- `create_time` datetime(0) null DEFAULT null COMMENT 'create time',
- `update_time` datetime(0) null DEFAULT null COMMENT 'update time',
- `creator` int(11) null DEFAULT null COMMENT 'creator',
- `updater` int(11) null DEFAULT null COMMENT 'updater'
-) ENGINE = InnoDB ROW_FORMAT = Dynamic;
-
-CREATE TABLE `dinky_flink_document` (
- `id` int(11) NOT null AUTO_INCREMENT COMMENT 'id',
- `category` varchar(255) null DEFAULT null COMMENT 'document category',
- `type` varchar(255) null DEFAULT null COMMENT 'document type',
- `subtype` varchar(255) null DEFAULT null COMMENT 'document subtype',
- `name` varchar(255) null DEFAULT null COMMENT 'document name',
- `description` longtext null,
- `fill_value` longtext null COMMENT 'fill value',
- `version` varchar(255) null DEFAULT null COMMENT 'document version such as:(flink1.12,flink1.13,flink1.14,flink1.15)',
- `like_num` int(11) null DEFAULT 0 COMMENT 'like number',
- `enabled` tinyint(1) NOT null DEFAULT 0 COMMENT 'is enable',
- `create_time` datetime(0) null DEFAULT null COMMENT 'create time',
- `update_time` datetime(0) null DEFAULT null COMMENT 'update_time',
- `creator` int(11) null DEFAULT null COMMENT 'creator',
- `updater` int(11) null DEFAULT null COMMENT 'updater'
-) ENGINE = InnoDB ROW_FORMAT = Dynamic;
-
-
-CREATE TABLE `dinky_fragment` (
- `id` int(11) NOT null AUTO_INCREMENT COMMENT 'id',
- `name` varchar(50) NOT null COMMENT 'fragment name',
- `tenant_id` int(11) NOT null DEFAULT 1 COMMENT 'tenant id',
- `fragment_value` text NOT null COMMENT 'fragment value',
- `note` text null COMMENT 'note',
- `enabled` tinyint(4) null DEFAULT 1 COMMENT 'is enable',
- `create_time` datetime(0) null DEFAULT null COMMENT 'create time',
- `update_time` datetime(0) null DEFAULT null COMMENT 'update time',
- `creator` int(11) null DEFAULT null COMMENT 'creator',
- `updater` int(11) null DEFAULT null COMMENT 'updater'
-) ENGINE = InnoDB ROW_FORMAT = Dynamic;
-
-CREATE TABLE `dinky_history` (
- `id` int(11) NOT null AUTO_INCREMENT COMMENT 'ID',
- `tenant_id` int(11) NOT null DEFAULT 1 COMMENT 'tenant id',
- `cluster_id` int(11) NOT null DEFAULT 0 COMMENT 'cluster ID',
- `cluster_configuration_id` int(11) null DEFAULT null COMMENT 'cluster configuration id',
- `session` varchar(255) null DEFAULT null COMMENT 'session',
- `job_id` varchar(255) null DEFAULT null COMMENT 'Job ID',
- `job_name` varchar(255) null DEFAULT null COMMENT 'Job Name',
- `job_manager_address` varchar(255) null DEFAULT null COMMENT 'JJobManager Address',
- `batch_model` boolean null DEFAULT false COMMENT 'is batch model',
- `status` int(11) NOT null DEFAULT 0 COMMENT 'status',
- `type` varchar(50) null DEFAULT null COMMENT 'job type',
- `statement` text null COMMENT 'statement set',
- `error` text null COMMENT 'error message',
- `result` text null COMMENT 'result set',
- `config_json` text null COMMENT 'config json',
- `start_time` datetime(0) null DEFAULT null COMMENT 'job start time',
- `end_time` datetime(0) null DEFAULT null COMMENT 'job end time',
- `task_id` int(11) null DEFAULT null COMMENT 'task ID'
-) ENGINE = InnoDB ROW_FORMAT = Dynamic;
-
-
-CREATE TABLE `dinky_job_history` (
- `id` int(11) NOT null COMMENT 'id',
- `tenant_id` int(11) NOT null DEFAULT 1 COMMENT 'tenant id',
- `job_json` text null COMMENT 'Job information json',
- `exceptions_json` text null COMMENT 'error message json',
- `checkpoints_json` text null COMMENT 'checkpoints json',
- `checkpoints_config_json` text null COMMENT 'checkpoints configuration json',
- `config_json` text null COMMENT 'configuration',
- `cluster_json` text null COMMENT 'cluster instance configuration',
- `cluster_configuration_json` text null COMMENT 'cluster config',
- `update_time` datetime(0) null DEFAULT null COMMENT 'update time'
-) ENGINE = InnoDB ROW_FORMAT = Dynamic;
-
-CREATE TABLE `dinky_job_instance` (
- `id` int(11) NOT null AUTO_INCREMENT COMMENT 'id',
- `name` varchar(255) null DEFAULT null COMMENT 'job instance name',
- `tenant_id` int(11) NOT null DEFAULT 1 COMMENT 'tenant id',
- `task_id` int(11) null DEFAULT null COMMENT 'task ID',
- `step` int(11) null DEFAULT null COMMENT 'job lifecycle',
- `cluster_id` int(11) null DEFAULT null COMMENT 'cluster ID',
- `jid` varchar(50) null DEFAULT null COMMENT 'Flink JobId',
- `status` varchar(50) null DEFAULT null COMMENT 'job instance status',
- `history_id` int(11) null DEFAULT null COMMENT 'execution history ID',
- `create_time` datetime(0) null DEFAULT null COMMENT 'create time',
- `update_time` datetime(0) null DEFAULT null COMMENT 'update time',
- `finish_time` datetime(0) null DEFAULT null COMMENT 'finish time',
- `duration` bigint(20) null DEFAULT null COMMENT 'job duration',
- `error` text null COMMENT 'error logs',
- `failed_restart_count` int(11) null DEFAULT null COMMENT 'failed restart count',
- `creator` int(11) null DEFAULT null COMMENT 'creator',
- `updater` int(11) null DEFAULT null COMMENT 'updater',
- `operator` int(11) null DEFAULT null COMMENT 'operator'
-) ENGINE = InnoDB ROW_FORMAT = Dynamic;
-
-
-CREATE TABLE `dinky_role` (
- `id` int(11) NOT null AUTO_INCREMENT COMMENT 'ID',
- `tenant_id` int(11) NOT null COMMENT 'tenant id',
- `role_code` varchar(64) NOT null COMMENT 'role code',
- `role_name` varchar(64) NOT null COMMENT 'role name',
- `is_delete` tinyint(1) NOT null DEFAULT 0 COMMENT 'is delete',
- `note` varchar(255) null DEFAULT null COMMENT 'note',
- `create_time` datetime(0) null DEFAULT null COMMENT 'create time',
- `update_time` datetime(0) null DEFAULT null COMMENT 'update time'
-) ENGINE = InnoDB ROW_FORMAT = Dynamic;
-
-
-
-CREATE TABLE `dinky_savepoints` (
- `id` int(11) NOT null AUTO_INCREMENT COMMENT 'ID',
- `task_id` int(11) NOT null COMMENT 'task ID',
- `tenant_id` int(11) NOT null DEFAULT 1 COMMENT 'tenant id',
- `name` varchar(255) NOT null COMMENT 'task name',
- `type` varchar(255) NOT null COMMENT 'savepoint type',
- `path` varchar(255) NOT null COMMENT 'savepoint path',
- `create_time` datetime(0) null DEFAULT null COMMENT 'create time',
- `creator` int(11) null DEFAULT null COMMENT 'creator'
-) ENGINE = InnoDB ROW_FORMAT = Dynamic;
-
-
-CREATE TABLE `dinky_sys_config` (
- `id` int(11) NOT null AUTO_INCREMENT COMMENT 'ID',
- `name` varchar(255) NOT null COMMENT 'configuration name',
- `value` text null COMMENT 'configuration value',
- `create_time` datetime(0) null DEFAULT null COMMENT 'create time',
- `update_time` datetime(0) null DEFAULT null COMMENT 'update time'
-) ENGINE = InnoDB ROW_FORMAT = Dynamic;
-
-CREATE TABLE `dinky_task` (
- `id` int(11) NOT null AUTO_INCREMENT COMMENT 'ID',
- `name` varchar(255) NOT null COMMENT 'Job name',
- `tenant_id` int(11) NOT null DEFAULT 1 COMMENT 'tenant id',
- `dialect` varchar(50) null DEFAULT null COMMENT 'dialect',
- `type` varchar(50) null DEFAULT null COMMENT 'Job type',
- `check_point` int(11) null DEFAULT null COMMENT 'CheckPoint trigger seconds',
- `save_point_strategy` int(11) null DEFAULT null COMMENT 'SavePoint strategy',
- `save_point_path` varchar(255) null DEFAULT null COMMENT 'SavePointPath',
- `parallelism` int(11) null DEFAULT null COMMENT 'parallelism',
- `fragment` tinyint(1) null DEFAULT 0 COMMENT 'fragment',
- `statement_set` tinyint(1) null DEFAULT 0 COMMENT 'enable statement set',
- `batch_model` tinyint(1) null DEFAULT 0 COMMENT 'use batch model',
- `cluster_id` int(11) null DEFAULT null COMMENT 'Flink cluster ID',
- `cluster_configuration_id` int(11) null DEFAULT null COMMENT 'cluster configuration ID',
- `database_id` int(11) null DEFAULT null COMMENT 'database ID',
- `env_id` int(11) null DEFAULT null COMMENT 'env id',
- `alert_group_id` bigint(20) null DEFAULT null COMMENT 'alert group id',
- `config_json` text null COMMENT 'configuration json',
- `note` varchar(255) null DEFAULT null COMMENT 'Job Note',
- `step` int(11) null DEFAULT 1 COMMENT 'Job lifecycle',
- `job_instance_id` bigint(20) null DEFAULT null COMMENT 'job instance id',
- `enabled` tinyint(1) NOT null DEFAULT 1 COMMENT 'is enable',
- `create_time` datetime(0) null DEFAULT null COMMENT 'create time',
- `update_time` datetime(0) null DEFAULT null COMMENT 'update time',
- `version_id` int(11) null DEFAULT null COMMENT 'version id',
- `statement` text null DEFAULT null COMMENT 'statement',
- `creator` int(11) null DEFAULT null COMMENT 'creator',
- `updater` int(11) null DEFAULT null COMMENT 'updater',
- `operator` int(11) null DEFAULT null COMMENT 'operator'
-) ENGINE = InnoDB ROW_FORMAT = Dynamic;
-
-
-CREATE TABLE `dinky_task_version` (
- `id` int(11) NOT null AUTO_INCREMENT COMMENT 'ID',
- `task_id` int(11) NOT null COMMENT 'task ID ',
- `tenant_id` int(11) NOT null DEFAULT 1 COMMENT 'tenant id',
- `version_id` int(11) NOT null COMMENT 'version ID ',
- `statement` text null COMMENT 'flink sql statement',
- `name` varchar(255) NOT null COMMENT 'version name',
- `dialect` varchar(50) null DEFAULT null COMMENT 'dialect',
- `type` varchar(50) null DEFAULT null COMMENT 'type',
- `task_configure` text NOT null COMMENT 'task configuration',
- `create_time` datetime(0) null DEFAULT null COMMENT 'create time',
- `creator` int(11) null DEFAULT null COMMENT 'creator'
-) ENGINE = InnoDB ROW_FORMAT = Dynamic;
-
-CREATE TABLE `dinky_tenant` (
- `id` int(11) NOT null AUTO_INCREMENT COMMENT 'ID',
- `tenant_code` varchar(64) NOT null COMMENT 'tenant code',
- `is_delete` tinyint(1) NOT null DEFAULT 0 COMMENT 'is delete',
- `note` varchar(255) null DEFAULT null COMMENT 'note',
- `create_time` datetime(0) null DEFAULT null COMMENT 'create time',
- `update_time` datetime(0) null DEFAULT null COMMENT 'update time'
-) ENGINE = InnoDB ROW_FORMAT = Dynamic;
-
-
-CREATE TABLE `dinky_udf_template` (
- `id` int(11) NOT null AUTO_INCREMENT,
- `name` varchar(100) null DEFAULT null COMMENT 'template name',
- `code_type` varchar(10) null DEFAULT null COMMENT 'code type',
- `function_type` varchar(10) null DEFAULT null COMMENT 'function type',
- `template_code` longtext null COMMENT 'code',
- `enabled` tinyint(1) not null DEFAULT 1 COMMENT 'is enable',
- `create_time` datetime(0) null DEFAULT null COMMENT 'create time',
- `update_time` datetime DEFAULT null ON UPDATE CURRENT_TIMESTAMP COMMENT 'update time',
- `creator` int(11) null DEFAULT null COMMENT 'creator',
- `updater` int(11) null DEFAULT null COMMENT 'updater'
-) ENGINE = InnoDB ROW_FORMAT = Dynamic;
-
-
-
-CREATE TABLE `dinky_user` (
- `id` int(11) NOT null AUTO_INCREMENT COMMENT 'ID',
- `username` varchar(50) NOT null COMMENT 'username',
- `user_type` int DEFAULT 0 NOT null COMMENT 'login type (0:LOCAL,1:LDAP)',
- `password` varchar(50) null DEFAULT null COMMENT 'password',
- `nickname` varchar(50) null DEFAULT null COMMENT 'nickname',
- `worknum` varchar(50) null DEFAULT null COMMENT 'worknum',
- `avatar` blob null COMMENT 'avatar',
- `mobile` varchar(20) null DEFAULT null COMMENT 'mobile phone',
- `enabled` tinyint(1) NOT null DEFAULT 1 COMMENT 'is enable',
- `super_admin_flag` tinyint(1) DEFAULT '0' COMMENT 'is super admin(0:false,1true)',
- `is_delete` tinyint(1) NOT null DEFAULT 0 COMMENT 'is delete',
- `create_time` datetime(0) null DEFAULT null COMMENT 'create time',
- `update_time` datetime(0) null DEFAULT null COMMENT 'update time'
-) ENGINE = InnoDB ROW_FORMAT = Dynamic;
-
-
-CREATE TABLE `dinky_user_role` (
- `id` int(11) NOT null AUTO_INCREMENT COMMENT 'ID',
- `user_id` int(11) NOT null COMMENT 'user id',
- `role_id` int(11) NOT null COMMENT 'role id',
- `create_time` datetime(0) null DEFAULT null COMMENT 'create time',
- `update_time` datetime(0) null DEFAULT null COMMENT 'update time'
-) ENGINE = InnoDB ROW_FORMAT = Dynamic;
-
-
-CREATE TABLE `dinky_user_tenant` (
- `id` int(11) NOT null AUTO_INCREMENT COMMENT 'ID',
- `user_id` int(11) NOT null COMMENT 'user id',
- `tenant_id` int(11) NOT null COMMENT 'tenant id',
- `tenant_admin_flag` tinyint DEFAULT '0' COMMENT 'tenant admin flag(0:false,1:true)',
- `create_time` datetime(0) null DEFAULT null COMMENT 'create time',
- `update_time` datetime(0) null DEFAULT null COMMENT 'update time'
-) ENGINE = InnoDB ROW_FORMAT = Dynamic;
-
-
-CREATE TABLE `metadata_column` (
- `column_name` varchar(255) NOT null COMMENT 'column name',
- `column_type` varchar(255) NOT null COMMENT 'column type, such as : Physical , Metadata , Computed , WATERMARK',
- `data_type` varchar(255) NOT null COMMENT 'data type',
- `expr` varchar(255) null DEFAULT null COMMENT 'expression',
- `description` varchar(255) NOT null COMMENT 'column description',
- `table_id` int(11) NOT null COMMENT 'table id',
- `primary` bit(1) null DEFAULT null COMMENT 'table primary key',
- `update_time` datetime(0) null DEFAULT null COMMENT 'update time',
- `create_time` datetime(0) NOT null DEFAULT CURRENT_TIMESTAMP(0) COMMENT 'create time'
-) ENGINE = InnoDB ROW_FORMAT = Dynamic;
-
-CREATE TABLE `metadata_database` (
- `id` int(11) NOT null AUTO_INCREMENT COMMENT 'id',
- `database_name` varchar(255) NOT null COMMENT 'database name',
- `description` varchar(255) null DEFAULT null COMMENT 'database description',
- `update_time` datetime(0) null DEFAULT null COMMENT 'update time',
- `create_time` datetime(0) null DEFAULT CURRENT_TIMESTAMP(0) COMMENT 'create time'
-) ENGINE = InnoDB ROW_FORMAT = Dynamic;
-
-CREATE TABLE `metadata_database_property` (
- `key` varchar(255) NOT null COMMENT 'key',
- `value` varchar(255) null DEFAULT null COMMENT 'value',
- `database_id` int(11) NOT null COMMENT 'database id',
- `update_time` datetime(0) null DEFAULT null COMMENT 'update time',
- `create_time` datetime(0) NOT null DEFAULT CURRENT_TIMESTAMP(0) COMMENT 'create time'
-) ENGINE = InnoDB ROW_FORMAT = Dynamic;
-
-CREATE TABLE `metadata_function` (
- `id` int(11) NOT null AUTO_INCREMENT COMMENT '主键',
- `function_name` varchar(255) NOT null COMMENT 'function name',
- `class_name` varchar(255) NOT null COMMENT 'class name',
- `database_id` int(11) NOT null COMMENT 'database id',
- `function_language` varchar(255) null DEFAULT null COMMENT 'function language',
- `update_time` datetime(0) null DEFAULT null COMMENT 'update time',
- `create_time` datetime(0) null DEFAULT CURRENT_TIMESTAMP(0) COMMENT 'create time'
-) ENGINE = InnoDB ROW_FORMAT = Dynamic;
-
-CREATE TABLE `metadata_table` (
- `id` int(11) NOT null AUTO_INCREMENT COMMENT '主键',
- `table_name` varchar(255) NOT null COMMENT 'table name',
- `table_type` varchar(255) NOT null COMMENT 'type,such as:database,table,view',
- `database_id` int(11) NOT null COMMENT 'database id',
- `description` varchar(255) null DEFAULT null COMMENT 'table description',
- `update_time` datetime(0) null DEFAULT null COMMENT 'update time',
- `create_time` datetime(0) null DEFAULT CURRENT_TIMESTAMP(0) COMMENT 'create time'
-) ENGINE = InnoDB ROW_FORMAT = Dynamic;
-
-CREATE TABLE `metadata_table_property` (
- `key` varchar(255) NOT null COMMENT 'key',
- `value` mediumtext null COMMENT 'value',
- `table_id` int(11) NOT null COMMENT 'table id',
- `update_time` datetime(0) null DEFAULT null COMMENT 'update time',
- `create_time` datetime(0) NOT null DEFAULT CURRENT_TIMESTAMP(0) COMMENT 'create tiime'
-) ENGINE = InnoDB ROW_FORMAT = Dynamic;
--- ----------------------------
--- Records of metadata_table_property
--- ----------------------------
--- ----------------------------
--- Table structure for dinky_row_permissions
--- ----------------------------
-
-CREATE TABLE dinky_row_permissions (
- id int PRIMARY KEY AUTO_INCREMENT COMMENT 'ID',
- role_id int NOT null COMMENT '角色ID',
- table_name varchar(255) null COMMENT '表名',
- expression varchar(255) null COMMENT '表达式',
- create_time datetime null COMMENT '创建时间',
- update_time datetime null COMMENT '更新时间',
- `creator` int(11) null DEFAULT null COMMENT 'creator',
- `updater` int(11) null DEFAULT null COMMENT 'updater'
-);
-SET FOREIGN_KEY_CHECKS = 1;
-
-CREATE TABLE `dinky_git_project` (
- `id` bigint(20) NOT null AUTO_INCREMENT,
- `tenant_id` bigint(20) NOT null,
- `name` varchar(255) NOT null,
- `url` varchar(1000) NOT null,
- `branch` varchar(1000) NOT null,
- `username` varchar(255) DEFAULT null,
- `password` varchar(255) DEFAULT null,
- `private_key` varchar(255) DEFAULT null COMMENT 'keypath',
- `pom` varchar(255) DEFAULT null,
- `build_args` varchar(255) DEFAULT null,
- `code_type` tinyint(4) DEFAULT null COMMENT 'code type(1-java,2-python)',
- `type` tinyint(4) NOT null COMMENT '1-http ,2-ssh',
- `last_build` datetime DEFAULT null,
- `description` varchar(255) DEFAULT null,
- `build_state` tinyint(2) NOT null DEFAULT '0' COMMENT '0-notStart 1-process 2-failed 3-success',
- `build_step` tinyint(2) NOT null DEFAULT '0',
- `enabled` tinyint(1) NOT null DEFAULT '1' COMMENT '0-disable 1-enable',
- `udf_class_map_list` text COMMENT 'scan udf class',
- `order_line` int(11) NOT null DEFAULT '1' COMMENT 'order',
- `create_time` datetime NOT null DEFAULT CURRENT_TIMESTAMP COMMENT 'create time',
- `update_time` datetime NOT null DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'update time',
- `creator` int(11) null DEFAULT null COMMENT 'creator',
- `updater` int(11) null DEFAULT null COMMENT 'updater',
- `operator` int(11) null DEFAULT null COMMENT 'operator'
-
-) ENGINE = InnoDB;
-
-
-CREATE TABLE `dinky_metrics` (
- `id` int(11) NOT null AUTO_INCREMENT,
- `task_id` int(255) DEFAULT null,
- `vertices` varchar(255) DEFAULT null,
- `metrics` varchar(255) DEFAULT null,
- `position` int(11) DEFAULT null,
- `show_type` varchar(255) DEFAULT null,
- `show_size` varchar(255) DEFAULT null,
- `title` CLOB DEFAULT null,
- `layout_name` varchar(255) DEFAULT null,
- `create_time` datetime DEFAULT null,
- `update_time` datetime DEFAULT null
-) ENGINE = InnoDB;
-
-
-CREATE TABLE `dinky_resources` (
- `id` int(11) NOT null AUTO_INCREMENT COMMENT 'key',
- `file_name` varchar(64) DEFAULT null COMMENT 'file name',
- `description` varchar(255) DEFAULT null,
- `user_id` int(11) DEFAULT null COMMENT 'user id',
- `type` tinyint(4) DEFAULT null COMMENT 'resource type,0:FILE,1:UDF',
- `size` bigint(20) DEFAULT null COMMENT 'resource size',
- `pid` int(11) DEFAULT null,
- `full_name` text DEFAULT null,
- `is_directory` tinyint(4) DEFAULT null,
- `create_time` datetime NOT null DEFAULT CURRENT_TIMESTAMP COMMENT 'create time',
- `update_time` datetime NOT null DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'update time',
- `creator` int(11) null DEFAULT null COMMENT 'creator',
- `updater` int(11) null DEFAULT null COMMENT 'updater'
-) ENGINE = InnoDB;
-
-
--- ----------------------------
--- Table structure for dinky_sys_login_log
--- ----------------------------
-
-CREATE TABLE `dinky_sys_login_log` (
- `id` int(11) NOT null AUTO_INCREMENT COMMENT 'key',
- `user_id` int(11) NOT null COMMENT 'user id',
- `username` varchar(60) NOT null COMMENT 'username',
- `login_type` int NOT null COMMENT 'login type(0:LOCAL,1:LDAP)',
- `ip` varchar(40) NOT null COMMENT 'ip addr',
- `status` int NOT null COMMENT 'login status',
- `msg` text NOT null COMMENT 'status msg',
- `create_time` datetime NOT null COMMENT 'create time',
- `access_time` datetime DEFAULT null COMMENT 'access time',
- `update_time` datetime NOT null,
- `is_deleted` tinyint(1) NOT null DEFAULT '0',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB;
-
-
--- ----------------------------
--- Table structure for dinky_sys_operate_log
--- ----------------------------
-
-CREATE TABLE `dinky_sys_operate_log` (
- `id` bigint NOT null AUTO_INCREMENT COMMENT 'id',
- `module_name` varchar(50) DEFAULT '' COMMENT 'module name',
- `business_type` int null DEFAULT 0 COMMENT 'business type',
- `method` varchar(100) null DEFAULT '' COMMENT 'method name',
- `request_method` varchar(10) null DEFAULT '' COMMENT 'request method',
- `operate_name` varchar(50) DEFAULT '' COMMENT 'operate name',
- `operate_user_id` int NOT null COMMENT 'operate user id',
- `operate_url` varchar(255) DEFAULT '' COMMENT 'operate url',
- `operate_ip` varchar(50) DEFAULT '' COMMENT 'ip',
- `operate_location` varchar(255) DEFAULT '' COMMENT 'operate location',
- `operate_param` longtext DEFAULT '' COMMENT 'request param',
- `json_result` longtext DEFAULT null COMMENT 'return json result',
- `status` int null DEFAULT null COMMENT 'operate status',
- `error_msg` longtext DEFAULT null COMMENT 'error msg',
- `operate_time` datetime(0) DEFAULT null COMMENT 'operate time',
- PRIMARY KEY (`id`)
-) ENGINE = InnoDB;
-
-
-
--- ----------------------------
--- Table structure for dinky_sys_menu
--- ----------------------------
-
-create table `dinky_sys_menu` (
- `id` bigint not null auto_increment comment ' id',
- `parent_id` bigint not null comment 'parent menu id',
- `name` varchar(64) not null comment 'menu button name',
- `path` varchar(64) default null comment 'routing path',
- `component` varchar(64) default null comment 'routing component component',
- `perms` varchar(64) default null comment 'authority id',
- `icon` varchar(64) default null comment 'icon',
- `type` char(1) default null comment 'type(M:directory C:menu F:button)',
- `display` tinyint default 1 comment 'whether the menu is displayed',
- `order_num` int default null comment 'sort',
- `create_time` datetime not null default current_timestamp comment 'create time',
- `update_time` datetime not null default current_timestamp on update current_timestamp comment 'modify time',
- `note` varchar(255) default null comment 'note',
- primary key (`id`)
-) engine=innodb ;
-
--- ----------------------------
--- Table structure dinky_sys_role_menu
--- ----------------------------
-
-CREATE TABLE `dinky_sys_role_menu` (
- `id` bigint NOT null AUTO_INCREMENT COMMENT 'id',
- `role_id` bigint NOT null COMMENT 'role id',
- `menu_id` bigint NOT null COMMENT 'menu id',
- `create_time` datetime not null default current_timestamp comment 'create time',
- `update_time` datetime not null default current_timestamp on update current_timestamp comment 'modify time',
- PRIMARY KEY (`id`),
- UNIQUE KEY `un_role_menu_inx` (`role_id`,`menu_id`)
-) ENGINE=InnoDB ;
-
-
-
--- ----------------------------
--- Table structure updater
--- ----------------------------
-
-CREATE TABLE `dinky_sys_token` (
- `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
- `token_value` varchar(255) NOT NULL COMMENT 'token value',
- `user_id` bigint NOT NULL COMMENT 'user id',
- `role_id` bigint NOT NULL COMMENT 'role id',
- `tenant_id` bigint NOT NULL COMMENT 'tenant id',
- `expire_type` tinyint NOT NULL COMMENT '1: never expire, 2: expire after a period of time, 3: expire at a certain time',
- `expire_start_time` datetime DEFAULT NULL COMMENT 'expire start time ,when expire_type = 3 , it is the start time of the period',
- `expire_end_time` datetime DEFAULT NULL COMMENT 'expire end time ,when expire_type = 2,3 , it is the end time of the period',
- `create_time` datetime NOT NULL COMMENT 'create time',
- `update_time` datetime NOT NULL COMMENT 'modify time',
- `source` tinyint(2) DEFAULT NULL COMMENT '1:login 2:custom',
- `creator` bigint DEFAULT NULL COMMENT 'creator',
- `updater` bigint DEFAULT NULL COMMENT 'updater',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 COMMENT='token management';
-
-
-
--- ----------------------------
--- Table structure dinky_sys_alert
--- ----------------------------
-
-create table if not exists dinky_alert_template
-(
- id int auto_increment
- primary key COMMENT 'id',
- name varchar(20) COMMENT 'template name',
- template_content text null COMMENT 'template content',
- enabled tinyint default 1 null COMMENT 'is enable',
- create_time datetime null COMMENT 'create time',
- update_time datetime null COMMENT 'update time',
- `creator` bigint DEFAULT NULL COMMENT 'creator',
- `updater` bigint DEFAULT NULL COMMENT 'updater'
-);
-
-
-create table if not exists dinky_alert_rules
-(
- id int auto_increment
- primary key comment 'id',
- name varchar(40) unique not null comment 'rule name',
- rule text null comment 'specify rule',
- template_id int null comment 'template id',
- rule_type varchar(10) null comment 'alert rule type',
- trigger_conditions varchar(20) null comment 'trigger conditions',
- description text null comment 'description',
- enabled tinyint default 1 null comment 'is enable',
- create_time datetime null comment 'create time',
- update_time datetime null comment 'update time',
- `creator` bigint DEFAULT NULL COMMENT 'creator',
-`updater` bigint DEFAULT NULL COMMENT 'updater'
-);
-
-
-
-
-CREATE TABLE IF NOT EXISTS `dinky_udf_manage` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `name` varchar(50) DEFAULT NULL COMMENT 'udf name',
- `class_name` varchar(50) DEFAULT NULL COMMENT 'Complete class name',
- `task_id` int(11) DEFAULT NULL COMMENT 'task id',
- `resources_id` int(11) DEFAULT NULL COMMENT 'resources id',
- `enabled` tinyint(1) DEFAULT 1 COMMENT 'is enable',
- `create_time` datetime DEFAULT NULL COMMENT 'create time',
- `update_time` datetime DEFAULT NULL COMMENT 'update time',
- `creator` bigint DEFAULT NULL COMMENT 'creator',
- `updater` bigint DEFAULT NULL COMMENT 'updater'
-) ENGINE = InnoDB ROW_FORMAT = DYNAMIC;
diff --git a/dinky-admin/src/main/resources/db/db-h2-dml.sql b/dinky-admin/src/main/resources/db/db-h2-dml.sql
deleted file mode 100644
index a7e9694a75..0000000000
--- a/dinky-admin/src/main/resources/db/db-h2-dml.sql
+++ /dev/null
@@ -1,2532 +0,0 @@
-INSERT INTO `dinky_role`
-VALUES ( 1, 1, 'SuperAdmin', 'SuperAdmin', 0
- , 'SuperAdmin of Role', '2022-12-13 05:27:19', '2022-12-13 05:27:19');
-
-INSERT INTO `dinky_tenant`
-VALUES ( 1, 'DefaultTenant', 0, 'DefaultTenant', '2022-12-13 05:27:19'
- , '2022-12-13 05:27:19');
-
-INSERT INTO `dinky_user`
-VALUES ( 1, 'admin', 1, 'f4b3a484ee745b98d64cd69c429b2aa2', 'Admin', 'Dinky-001'
- , null, '17777777777', 1, 1, 0, '2022-12-13 05:27:19'
- , '2022-12-13 05:27:19');
-
-INSERT INTO `dinky_user_role`
-VALUES (1, 1, 1, '2022-12-13 05:27:19', '2022-12-13 05:27:19');
-
-INSERT INTO `dinky_user_tenant` (`id`, `user_id`, `tenant_id`, `create_time`, `update_time`)
-VALUES (1, 1, 1, current_time, current_time);
-
-INSERT INTO `dinky_git_project` ( `id`, `tenant_id`, `name`, `url`, `branch`
- , `username`, `password`, `private_key`, `pom`, `build_args`
- , `code_type`, `type`, `last_build`, `description`, `build_state`
- , `build_step`, `enabled`, `udf_class_map_list`, `order_line`)
-VALUES ( 1, 1, 'java-udf', 'https://github.com/zackyoungh/dinky-quickstart-java.git', 'master'
- , null, null, null, null, '-P flink-1.14'
- , 1, 1, null, null, 0
- , 0, 1, '[]', 1);
-INSERT INTO `dinky_git_project` ( `id`, `tenant_id`, `name`, `url`, `branch`
- , `username`, `password`, `private_key`, `pom`, `build_args`
- , `code_type`, `type`, `last_build`, `description`, `build_state`
- , `build_step`, `enabled`, `udf_class_map_list`, `order_line`)
-VALUES ( 2, 1, 'python-udf', 'https://github.com/zackyoungh/dinky-quickstart-python.git', 'master'
- , null, null, null, null, ''
- , 2, 1, null, null, 0
- , 0, 1, '[]', 2);
-
-INSERT INTO `dinky_resources` (`id`, `file_name`, `description`, `user_id`, `type`, `size`, `pid`, `full_name`,
- `is_directory`)
-VALUES (0, 'Root', 'main folder', 1, 0, 0, -1, '', 1);
-
-
--- insert into dinky_sys_menu values (1, -1, '首页', '/home', './Home', 'home', 'HomeOutlined', 'C', 0, 1, '2023-08-11 14:06:52', '2023-09-25 18:26:45', null);
-insert into dinky_sys_menu values (2, -1, '运维中心', '/devops', null, 'devops', 'ControlOutlined', 'M', 0, 20, '2023-08-11 14:06:52', '2023-09-26 14:53:34', null);
-insert into dinky_sys_menu values (3, -1, '注册中心', '/registration', null, 'registration', 'AppstoreOutlined', 'M', 0, 23, '2023-08-11 14:06:52', '2023-09-26 14:54:03', null);
-insert into dinky_sys_menu values (4, -1, '认证中心', '/auth', null, 'auth', 'SafetyCertificateOutlined', 'M', 0, 79, '2023-08-11 14:06:52', '2023-09-26 15:08:42', null);
-insert into dinky_sys_menu values (5, -1, '数据开发', '/datastudio', './DataStudio', 'datastudio', 'CodeOutlined', 'C', 0, 4, '2023-08-11 14:06:52', '2023-09-26 14:49:12', null);
-insert into dinky_sys_menu values (6, -1, '配置中心', '/settings', null, 'settings', 'SettingOutlined', 'M', 0, 115, '2023-08-11 14:06:53', '2023-09-26 15:16:03', null);
--- insert into dinky_sys_menu values (7, -1, '关于', '/about', './Other/About', 'about', 'SmileOutlined', 'C', 0, 143, '2023-08-11 14:06:53', '2023-09-26 15:21:21', null);
-insert into dinky_sys_menu values (8, -1, '监控', '/metrics', './Metrics', 'metrics', 'DashboardOutlined', 'C', 0, 140, '2023-08-11 14:06:53', '2023-09-26 15:20:49', null);
-insert into dinky_sys_menu values (9, 3, '集群', '/registration/cluster', null, 'registration:cluster', 'GoldOutlined', 'M', 0, 24, '2023-08-11 14:06:54', '2023-09-26 14:54:19', null);
-insert into dinky_sys_menu values (10, 3, '数据源', '/registration/datasource', '', 'registration:datasource', 'DatabaseOutlined', 'M', 0, 37, '2023-08-11 14:06:54', '2024-01-18 21:38:56', null);
-insert into dinky_sys_menu values (11, -1, '个人中心', '/account/center', './Other/PersonCenter', 'account:center', 'UserOutlined', 'C', 0, 144, '2023-08-11 14:06:54', '2023-09-26 15:21:29', null);
-insert into dinky_sys_menu values (12, 3, '告警', '/registration/alert', null, 'registration:alert', 'AlertOutlined', 'M', 0, 43, '2023-08-11 14:06:54', '2023-09-26 15:01:32', null);
-insert into dinky_sys_menu values (13, 3, '文档', '/registration/document', './RegCenter/Document', 'registration:document', 'BookOutlined', 'C', 0, 55, '2023-08-11 14:06:54', '2023-09-26 15:03:59', null);
-insert into dinky_sys_menu values (14, 3, '全局变量', '/registration/fragment', './RegCenter/GlobalVar', 'registration:fragment', 'RocketOutlined', 'C', 0, 59, '2023-08-11 14:06:54', '2023-09-26 15:04:55', null);
-insert into dinky_sys_menu values (15, 3, 'Git 项目', '/registration/gitproject', './RegCenter/GitProject', 'registration:gitproject', 'GithubOutlined', 'C', 0, 63, '2023-08-11 14:06:54', '2023-09-26 15:05:37', null);
-insert into dinky_sys_menu values (16, 3, 'UDF 模版', '/registration/udf', './RegCenter/UDF', 'registration:udf', 'ToolOutlined', 'C', 0, 69, '2023-08-11 14:06:54', '2023-09-26 15:06:40', null);
-insert into dinky_sys_menu values (17, 2, '任务详情', '/devops/job-detail', './DevOps/JobDetail', 'devops:job-detail', 'InfoCircleOutlined', 'C', 0, 22, '2023-08-11 14:06:54', '2024-01-18 22:36:11', null);
-insert into dinky_sys_menu values (18, 2, '任务列表', '/devops/joblist', './DevOps', 'devops:joblist', 'AppstoreFilled', 'C', 0, 21, '2023-08-11 14:06:54', '2024-01-18 22:36:00', null);
-insert into dinky_sys_menu values (19, 3, '资源中心', '/registration/resource', './RegCenter/Resource', 'registration:resource', 'FileZipOutlined', 'C', 0, 73, '2023-08-11 14:06:54', '2023-09-26 15:07:25', null);
-insert into dinky_sys_menu values (20, 4, '角色', '/auth/role', './AuthCenter/Role', 'auth:role', 'TeamOutlined', 'C', 0, 88, '2023-08-11 14:06:54', '2023-09-26 15:10:19', null);
-insert into dinky_sys_menu values (21, 4, '用户', '/auth/user', './AuthCenter/User', 'auth:user', 'UserOutlined', 'C', 0, 80, '2023-08-11 14:06:54', '2023-09-26 15:08:51', null);
-insert into dinky_sys_menu values (22, 4, '菜单', '/auth/menu', './AuthCenter/Menu', 'auth:menu', 'MenuOutlined', 'C', 0, 94, '2023-08-11 14:06:54', '2023-09-26 15:11:34', null);
-insert into dinky_sys_menu values (23, 4, '租户', '/auth/tenant', './AuthCenter/Tenant', 'auth:tenant', 'SecurityScanOutlined', 'C', 0, 104, '2023-08-11 14:06:54', '2023-09-26 15:13:35', null);
-insert into dinky_sys_menu values (24, 6, '全局设置', '/settings/globalsetting', './SettingCenter/GlobalSetting', 'settings:globalsetting', 'SettingOutlined', 'C', 0, 116, '2023-08-11 14:06:54', '2023-09-26 15:16:12', null);
-insert into dinky_sys_menu values (25, 6, '系统日志', '/settings/systemlog', './SettingCenter/SystemLogs', 'settings:systemlog', 'InfoCircleOutlined', 'C', 0, 131, '2023-08-11 14:06:55', '2023-09-26 15:18:53', null);
--- insert into dinky_sys_menu values (26, 6, '进程', '/settings/process', './SettingCenter/Process', 'settings:process', 'ReconciliationOutlined', 'C', 0, 135, '2023-08-11 14:06:55', '2023-09-26 15:19:35', null);
-insert into dinky_sys_menu values (27, 4, '行权限', '/auth/rowpermissions', './AuthCenter/RowPermissions', 'auth:rowpermissions', 'SafetyCertificateOutlined', 'C', 0, 100, '2023-08-11 14:06:55', '2023-09-26 15:12:46', null);
-insert into dinky_sys_menu values (28, 9, 'Flink 实例', '/registration/cluster/instance', './RegCenter/Cluster/Instance', 'registration:cluster:instance', 'ReconciliationOutlined', 'C', 0, 25, '2023-08-11 14:06:55', '2023-09-26 14:54:29', null);
-insert into dinky_sys_menu values (29, 12, '告警组', '/registration/alert/group', './RegCenter/Alert/AlertGroup', 'registration:alert:group', 'AlertOutlined', 'C', 0, 48, '2023-08-11 14:06:55', '2023-09-26 15:02:23', null);
-insert into dinky_sys_menu values (30, 9, '集群配置', '/registration/cluster/config', './RegCenter/Cluster/Configuration', 'registration:cluster:config', 'SettingOutlined', 'C', 0, 31, '2023-08-11 14:06:55', '2023-09-26 14:57:57', null);
-insert into dinky_sys_menu values (31, 12, '告警实例', '/registration/alert/instance', './RegCenter/Alert/AlertInstance', 'registration:alert:instance', 'AlertFilled', 'C', 0, 44, '2023-08-11 14:06:55', '2023-09-26 15:01:42', null);
--- insert into dinky_sys_menu values (32, 1, '作业监控', '/home/jobOverView', 'JobOverView', 'home:jobOverView', 'AntCloudOutlined', 'F', 0, 2, '2023-08-15 16:52:59', '2023-09-26 14:48:50', null);
--- insert into dinky_sys_menu values (33, 1, '数据开发', '/home/devOverView', 'DevOverView', 'home:devOverView', 'AimOutlined', 'F', 0, 3, '2023-08-15 16:54:47', '2023-09-26 14:49:00', null);
-insert into dinky_sys_menu values (34, 5, '项目列表', '/datastudio/left/project', null, 'datastudio:left:project', 'ConsoleSqlOutlined', 'F', 0, 5, '2023-09-01 18:00:39', '2023-09-26 14:49:31', null);
-insert into dinky_sys_menu values (35, 5, '数据源', '/datastudio/left/datasource', null, 'datastudio:left:datasource', 'TableOutlined', 'F', 0, 7, '2023-09-01 18:01:09', '2023-09-26 14:49:42', null);
-insert into dinky_sys_menu values (36, 5, 'Catalog', '/datastudio/left/catalog', null, 'datastudio:left:catalog', 'DatabaseOutlined', 'F', 0, 6, '2023-09-01 18:01:30', '2024-01-18 22:29:41', null);
-insert into dinky_sys_menu values (37, 5, '作业配置', '/datastudio/right/jobConfig', null, 'datastudio:right:jobConfig', 'SettingOutlined', 'F', 0, 8, '2023-09-01 18:02:15', '2023-09-26 14:50:24', null);
-insert into dinky_sys_menu values (38, 5, '预览配置', '/datastudio/right/previewConfig', null, 'datastudio:right:previewConfig', 'InsertRowRightOutlined', 'F', 0, 9, '2023-09-01 18:03:08', '2023-09-26 14:50:54', null);
-insert into dinky_sys_menu values (39, 5, '版本历史', '/datastudio/right/historyVision', null, 'datastudio:right:historyVision', 'HistoryOutlined', 'F', 0, 10, '2023-09-01 18:03:29', '2023-09-26 14:51:03', null);
-insert into dinky_sys_menu values (40, 5, '保存点', '/datastudio/right/savePoint', null, 'datastudio:right:savePoint', 'FolderOutlined', 'F', 0, 11, '2023-09-01 18:03:58', '2023-09-26 14:51:13', null);
-insert into dinky_sys_menu values (41, 5, '作业信息', '/datastudio/right/jobInfo', null, 'datastudio:right:jobInfo', 'InfoCircleOutlined', 'F', 0, 8, '2023-09-01 18:04:31', '2023-09-25 18:26:45', null);
-insert into dinky_sys_menu values (42, 5, '控制台', '/datastudio/bottom/console', null, 'datastudio:bottom:console', 'ConsoleSqlOutlined', 'F', 0, 12, '2023-09-01 18:04:56', '2023-09-26 14:51:24', null);
-insert into dinky_sys_menu values (43, 5, '结果', '/datastudio/bottom/result', null, 'datastudio:bottom:result', 'SearchOutlined', 'F', 0, 13, '2023-09-01 18:05:16', '2023-09-26 14:51:36', null);
-insert into dinky_sys_menu values (45, 5, '血缘', '/datastudio/bottom/lineage', null, 'datastudio:bottom:lineage', 'PushpinOutlined', 'F', 0, 15, '2023-09-01 18:07:15', '2023-09-26 14:52:00', null);
-insert into dinky_sys_menu values (46, 5, '表数据监控', '/datastudio/bottom/table-data', null, 'datastudio:bottom:table-data', 'TableOutlined', 'F', 0, 16, '2023-09-01 18:07:55', '2023-09-26 14:52:38', null);
-insert into dinky_sys_menu values (47, 5, '小工具', '/datastudio/bottom/tool', null, 'datastudio:bottom:tool', 'ToolOutlined', 'F', 0, 17, '2023-09-01 18:08:18', '2023-09-26 14:53:04', null);
-insert into dinky_sys_menu values (48, 28, '新建', '/registration/cluster/instance/add', null, 'registration:cluster:instance:add', 'PlusOutlined', 'F', 0, 26, '2023-09-06 08:56:45', '2023-09-26 14:56:54', null);
-insert into dinky_sys_menu values (50, 28, '编辑', '/registration/cluster/instance/edit', null, 'registration:cluster:instance:edit', 'EditOutlined', 'F', 0, 27, '2023-09-06 08:56:45', '2023-09-26 14:56:54', null);
-insert into dinky_sys_menu values (51, 28, '删除', '/registration/cluster/instance/delete', null, 'registration:cluster:instance:delete', 'DeleteOutlined', 'F', 0, 28, '2023-09-06 08:57:30', '2023-09-26 14:56:54', null);
-insert into dinky_sys_menu values (52, 30, '新建', '/registration/cluster/config/add', null, 'registration:cluster:config:add', 'PlusOutlined', 'F', 0, 32, '2023-09-06 09:00:31', '2023-09-26 14:58:50', null);
-insert into dinky_sys_menu values (53, 30, '编辑', '/registration/cluster/config/edit', null, 'registration:cluster:config:edit', 'EditOutlined', 'F', 0, 33, '2023-09-06 08:56:45', '2023-09-26 14:58:50', null);
-insert into dinky_sys_menu values (54, 30, '删除', '/registration/cluster/config/delete', null, 'registration:cluster:config:delete', 'DeleteOutlined', 'F', 0, 34, '2023-09-06 08:57:30', '2023-09-26 14:58:50', null);
-insert into dinky_sys_menu values (55, 149, '新建', '/registration/datasource/list/add', null, 'registration:datasource:list:add', 'PlusOutlined', 'F', 0, 38, '2023-09-06 09:01:05', '2024-01-18 22:08:51', null);
-insert into dinky_sys_menu values (56, 149, '编辑', '/registration/datasource/list/edit', null, 'registration:datasource:list:edit', 'EditOutlined', 'F', 0, 39, '2023-09-06 08:56:45', '2024-01-18 22:09:01', null);
-insert into dinky_sys_menu values (57, 149, '删除', '/registration/datasource/list/delete', null, 'registration:datasource:list:delete', 'DeleteOutlined', 'F', 0, 40, '2023-09-06 08:57:30', '2024-01-18 22:09:12', null);
-insert into dinky_sys_menu values (58, 31, '新建', '/registration/alert/instance/add', null, 'registration:alert:instance:add', 'PlusOutlined', 'F', 0, 46, '2023-09-06 09:01:05', '2023-09-26 15:02:04', null);
-insert into dinky_sys_menu values (59, 31, '编辑', '/registration/alert/instance/edit', null, 'registration:alert:instance:edit', 'EditOutlined', 'F', 0, 45, '2023-09-06 08:56:45', '2023-09-26 15:01:54', null);
-insert into dinky_sys_menu values (60, 31, '删除', '/registration/alert/instance/delete', null, 'registration:alert:instance:delete', 'DeleteOutlined', 'F', 0, 47, '2023-09-06 08:57:30', '2023-09-26 15:02:13', null);
-insert into dinky_sys_menu values (61, 29, '新建', '/registration/alert/group/add', null, 'registration:alert:group:add', 'PlusOutlined', 'F', 0, 49, '2023-09-06 09:01:05', '2023-09-26 15:02:48', null);
-insert into dinky_sys_menu values (62, 29, '编辑', '/registration/alert/group/edit', null, 'registration:alert:group:edit', 'EditOutlined', 'F', 0, 49, '2023-09-06 08:56:45', '2023-09-26 15:02:36', null);
-insert into dinky_sys_menu values (63, 29, '删除', '/registration/alert/group/delete', null, 'registration:alert:group:delete', 'DeleteOutlined', 'F', 0, 50, '2023-09-06 08:57:30', '2023-09-26 15:03:01', null);
-insert into dinky_sys_menu values (64, 13, '新建', '/registration/document/add', null, 'registration:document:add', 'PlusOutlined', 'F', 0, 57, '2023-09-06 09:01:05', '2023-09-26 15:04:22', null);
-insert into dinky_sys_menu values (65, 13, '编辑', '/registration/document/edit', null, 'registration:document:edit', 'EditOutlined', 'F', 0, 56, '2023-09-06 08:56:45', '2023-09-26 15:04:13', null);
-insert into dinky_sys_menu values (66, 13, '删除', '/registration/document/delete', null, 'registration:document:delete', 'DeleteOutlined', 'F', 0, 58, '2023-09-06 08:57:30', '2023-09-26 15:04:32', null);
-insert into dinky_sys_menu values (68, 14, '新建', '/registration/fragment/add', null, 'registration:fragment:add', 'PlusOutlined', 'F', 0, 61, '2023-09-06 09:01:05', '2023-09-26 15:05:13', null);
-insert into dinky_sys_menu values (69, 14, '编辑', '/registration/fragment/edit', null, 'registration:fragment:edit', 'EditOutlined', 'F', 0, 60, '2023-09-06 08:56:45', '2023-09-26 15:05:04', null);
-insert into dinky_sys_menu values (70, 14, '删除', '/registration/fragment/delete', null, 'registration:fragment:delete', 'DeleteOutlined', 'F', 0, 62, '2023-09-06 08:57:30', '2023-09-26 15:05:21', null);
-insert into dinky_sys_menu values (72, 15, '新建', '/registration/gitproject/add', null, 'registration:gitproject:add', 'PlusOutlined', 'F', 0, 65, '2023-09-06 09:01:05', '2023-09-26 15:06:01', null);
-insert into dinky_sys_menu values (73, 15, '编辑', '/registration/gitproject/edit', null, 'registration:gitproject:edit', 'EditOutlined', 'F', 0, 64, '2023-09-06 08:56:45', '2023-09-26 15:05:52', null);
-insert into dinky_sys_menu values (74, 15, '删除', '/registration/gitproject/delete', null, 'registration:gitproject:delete', 'DeleteOutlined', 'F', 0, 66, '2023-09-06 08:57:30', '2023-09-26 15:06:09', null);
-insert into dinky_sys_menu values (76, 15, '构建', '/registration/gitproject/build', null, 'registration:gitproject:build', 'PlaySquareOutlined', 'F', 0, 67, '2023-09-06 08:57:30', '2023-09-26 15:06:17', null);
-insert into dinky_sys_menu values (77, 15, '查看日志', '/registration/gitproject/showLog', null, 'registration:gitproject:showLog', 'SearchOutlined', 'F', 0, 68, '2023-09-06 08:57:30', '2023-09-26 15:06:26', null);
-insert into dinky_sys_menu values (78, 16, '新建', '/registration/udf/template/add', null, 'registration:udf:template:add', 'PlusOutlined', 'F', 0, 71, '2023-09-06 09:01:05', '2023-09-26 15:07:04', null);
-insert into dinky_sys_menu values (79, 16, '编辑', '/registration/udf/template/edit', null, 'registration:udf:template:edit', 'EditOutlined', 'F', 0, 70, '2023-09-06 08:56:45', '2023-09-26 15:06:48', null);
-insert into dinky_sys_menu values (80, 16, '删除', '/registration/udf/template/delete', null, 'registration:udf:template:delete', 'DeleteOutlined', 'F', 0, 72, '2023-09-06 08:57:30', '2023-09-26 15:07:12', null);
-insert into dinky_sys_menu values (82, 19, '上传', '/registration/resource/upload', null, 'registration:resource:upload', 'PlusOutlined', 'F', 0, 77, '2023-09-06 09:01:05', '2023-09-26 15:08:02', null);
-insert into dinky_sys_menu values (83, 19, '重命名', '/registration/resource/rename', null, 'registration:resource:rename', 'EditOutlined', 'F', 0, 75, '2023-09-06 08:56:45', '2023-09-26 15:07:45', null);
-insert into dinky_sys_menu values (84, 19, '删除', '/registration/resource/delete', null, 'registration:resource:delete', 'DeleteOutlined', 'F', 0, 76, '2023-09-06 08:57:30', '2023-09-26 15:07:54', null);
-insert into dinky_sys_menu values (85, 19, '创建文件夹', '/registration/resource/addFolder', null, 'registration:resource:addFolder', 'PlusOutlined', 'F', 0, 74, '2023-09-06 08:57:30', '2023-09-26 15:07:37', null);
-insert into dinky_sys_menu values (86, 4, 'Token 令牌', '/auth/token', './AuthCenter/Token', 'auth:token', 'SecurityScanFilled', 'C', 0, 111, '2023-09-05 23:14:23', '2023-09-26 15:15:22', null);
-insert into dinky_sys_menu values (87, 21, '添加', '/auth/user/add', null, 'auth:user:add', 'PlusOutlined', 'F', 0, 81, '2023-09-22 22:06:52', '2023-09-26 15:09:49', null);
-insert into dinky_sys_menu values (88, 21, '重置密码', '/auth/user/reset', null, 'auth:user:reset', 'RollbackOutlined', 'F', 0, 84, '2023-09-22 22:08:17', '2023-09-26 15:09:49', null);
-insert into dinky_sys_menu values (89, 21, '恢复用户', '/auth/user/recovery', null, 'auth:user:recovery', 'RadiusSettingOutlined', 'F', 0, 85, '2023-09-22 22:08:53', '2023-09-26 15:09:49', null);
-insert into dinky_sys_menu values (90, 21, '删除', '/auth/user/delete', null, 'auth:user:delete', 'DeleteOutlined', 'F', 0, 83, '2023-09-22 22:09:29', '2023-09-26 15:09:49', null);
-insert into dinky_sys_menu values (91, 21, '修改密码', '/auth/user/changePassword', null, 'auth:user:changePassword', 'EditOutlined', 'F', 0, 86, '2023-09-22 22:10:01', '2023-09-26 15:09:49', null);
-insert into dinky_sys_menu values (92, 21, '分配角色', '/auth/user/assignRole', null, 'auth:user:assignRole', 'ForwardOutlined', 'F', 0, 87, '2023-09-22 22:10:31', '2023-09-26 15:09:49', null);
-insert into dinky_sys_menu values (93, 21, '编辑', '/auth/user/edit', null, 'auth:user:edit', 'EditOutlined', 'F', 0, 82, '2023-09-22 22:11:41', '2023-09-26 15:09:49', null);
-insert into dinky_sys_menu values (94, 20, '添加', '/auth/role/add', null, 'auth:role:add', 'PlusOutlined', 'F', 0, 89, '2023-09-22 22:06:52', '2023-09-26 15:11:10', null);
-insert into dinky_sys_menu values (95, 20, '删除', '/auth/role/delete', null, 'auth:role:delete', 'DeleteOutlined', 'F', 0, 91, '2023-09-22 22:09:29', '2023-09-26 15:11:10', null);
-insert into dinky_sys_menu values (96, 20, '分配菜单', '/auth/role/assignMenu', null, 'auth:role:assignMenu', 'AntDesignOutlined', 'F', 0, 92, '2023-09-22 22:10:31', '2023-09-26 15:11:10', null);
-insert into dinky_sys_menu values (97, 20, '编辑', '/auth/role/edit', null, 'auth:role:edit', 'EditOutlined', 'F', 0, 90, '2023-09-22 22:11:41', '2023-09-26 15:11:10', null);
-insert into dinky_sys_menu values (98, 20, '查看用户列表', '/auth/role/viewUser', null, 'auth:role:viewUser', 'FundViewOutlined', 'F', 0, 93, '2023-09-22 22:11:41', '2023-09-26 15:11:10', null);
-insert into dinky_sys_menu values (99, 86, '添加 Token', '/auth/token/add', null, 'auth:token:add', 'PlusOutlined', 'F', 0, 112, '2023-09-22 22:11:41', '2023-09-26 15:15:46', null);
-insert into dinky_sys_menu values (100, 86, '删除 Token', '/auth/token/delete', null, 'auth:token:delete', 'DeleteOutlined', 'F', 0, 114, '2023-09-22 22:11:41', '2023-09-26 15:15:46', null);
-insert into dinky_sys_menu values (101, 86, '修改 Token', '/auth/token/edit', null, 'auth:token:edit', 'EditOutlined', 'F', 0, 113, '2023-09-22 22:11:41', '2023-09-26 15:15:46', null);
-insert into dinky_sys_menu values (102, 27, '添加', '/auth/rowPermissions/add', null, 'auth:rowPermissions:add', 'PlusOutlined', 'F', 0, 101, '2023-09-22 22:11:41', '2023-09-26 15:13:12', null);
-insert into dinky_sys_menu values (103, 27, '编辑', '/auth/rowPermissions/edit', null, 'auth:rowPermissions:edit', 'EditOutlined', 'F', 0, 102, '2023-09-22 22:11:41', '2023-09-26 15:13:12', null);
-insert into dinky_sys_menu values (104, 27, '删除', '/auth/rowPermissions/delete', null, 'auth:rowPermissions:delete', 'DeleteOutlined', 'F', 0, 103, '2023-09-22 22:11:41', '2023-09-26 15:13:12', null);
-insert into dinky_sys_menu values (105, 23, '添加', '/auth/tenant/add', null, 'auth:tenant:add', 'PlusOutlined', 'F', 0, 105, '2023-09-22 22:11:41', '2023-09-26 15:15:02', null);
-insert into dinky_sys_menu values (106, 23, '编辑', '/auth/tenant/edit', null, 'auth:tenant:edit', 'EditOutlined', 'F', 0, 106, '2023-09-22 22:11:41', '2023-09-26 15:15:02', null);
-insert into dinky_sys_menu values (107, 23, '删除', '/auth/tenant/delete', null, 'auth:tenant:delete', 'DeleteOutlined', 'F', 0, 107, '2023-09-22 22:11:41', '2023-09-26 15:15:02', null);
-insert into dinky_sys_menu values (108, 23, '分配用户', '/auth/tenant/assignUser', null, 'auth:tenant:assignUser', 'EuroOutlined', 'F', 0, 108, '2023-09-22 22:11:41', '2023-09-26 15:15:02', null);
-insert into dinky_sys_menu values (109, 23, '查看用户', '/auth/tenant/viewUser', null, 'auth:tenant:viewUser', 'FundViewOutlined', 'F', 0, 109, '2023-09-22 22:11:41', '2023-09-26 15:15:02', null);
-insert into dinky_sys_menu values (110, 23, '设置/取消租户管理员', '/auth/tenant/modifyTenantManager', null, 'auth:tenant:modifyTenantManager', 'ExclamationCircleOutlined', 'F', 0, 110, '2023-09-22 22:11:41', '2023-09-26 15:15:02', null);
-insert into dinky_sys_menu values (111, 22, '创建根菜单', '/auth/menu/createRoot', null, 'auth:menu:createRoot', 'FolderAddOutlined', 'F', 0, 95, '2023-09-22 22:11:41', '2023-09-26 15:12:26', null);
-insert into dinky_sys_menu values (112, 22, '刷新', '/auth/menu/refresh', null, 'auth:menu:refresh', 'ReloadOutlined', 'F', 0, 97, '2023-09-22 22:11:41', '2023-09-26 15:12:26', null);
-insert into dinky_sys_menu values (113, 22, '编辑', '/auth/menu/edit', null, 'auth:menu:edit', 'EditOutlined', 'F', 0, 98, '2023-09-22 22:11:41', '2023-09-26 15:12:26', null);
-insert into dinky_sys_menu values (114, 22, '添加子项', '/auth/menu/addSub', null, 'auth:menu:addSub', 'PlusOutlined', 'F', 0, 96, '2023-09-22 22:11:41', '2023-09-26 15:12:26', null);
-insert into dinky_sys_menu values (115, 22, '删除', '/auth/menu/delete', null, 'auth:menu:delete', 'DeleteOutlined', 'F', 0, 99, '2023-09-22 22:11:41', '2023-09-26 15:12:26', null);
-insert into dinky_sys_menu values (116, 6, '告警策略', '/settings/alertrule', './SettingCenter/AlertRule', 'settings:alertrule', 'AndroidOutlined', 'C', 0, 136, '2023-09-22 23:31:10', '2023-09-26 15:19:52', null);
-insert into dinky_sys_menu values (117, 116, '添加', '/settings/alertrule/add', null, 'settings:alertrule:add', 'PlusOutlined', 'F', 0, 137, '2023-09-22 23:34:51', '2023-09-26 15:20:03', null);
-insert into dinky_sys_menu values (118, 116, '删除', '/settings/alertrule/delete', null, 'settings:alertrule:delete', 'DeleteOutlined', 'F', 0, 139, '2023-09-22 23:35:20', '2023-09-26 15:20:21', null);
-insert into dinky_sys_menu values (119, 116, '编辑', '/settings/alertrule/edit', null, 'settings:alertrule:edit', 'EditOutlined', 'F', 0, 138, '2023-09-22 23:36:32', '2023-09-26 15:20:13', null);
-insert into dinky_sys_menu values (120, 8, 'Dinky 服务监控', '/metrics/server', './Metrics/Server', 'metrics:server', 'DashboardOutlined', 'F', 0, 141, '2023-09-22 23:37:43', '2023-09-26 15:21:00', null);
-insert into dinky_sys_menu values (121, 8, 'Flink 任务监控', '/metrics/job', './Metrics/Job', 'metrics:job', 'DashboardTwoTone', 'C', 0, 142, '2023-09-22 23:38:34', '2023-09-26 15:21:08', null);
-insert into dinky_sys_menu values (122, 24, 'Dinky 环境配置', '/settings/globalsetting/dinky', null, 'settings:globalsetting:dinky', 'SettingOutlined', 'F', 0, 117, '2023-09-22 23:40:30', '2023-09-26 15:16:20', null);
-insert into dinky_sys_menu values (123, 24, 'Flink 环境配置', '/settings/globalsetting/flink', null, 'settings:globalsetting:flink', 'SettingOutlined', 'F', 0, 119, '2023-09-22 23:40:30', '2023-09-26 15:16:40', null);
-insert into dinky_sys_menu values (124, 24, 'Maven 配置', '/settings/globalsetting/maven', null, 'settings:globalsetting:maven', 'SettingOutlined', 'F', 0, 121, '2023-09-22 23:40:30', '2023-09-26 15:17:04', null);
-insert into dinky_sys_menu values (125, 24, 'DolphinScheduler 配置', '/settings/globalsetting/ds', null, 'settings:globalsetting:ds', 'SettingOutlined', 'F', 0, 123, '2023-09-22 23:40:30', '2023-09-26 15:17:23', null);
-insert into dinky_sys_menu values (126, 24, 'LDAP 配置', '/settings/globalsetting/ldap', null, 'settings:globalsetting:ldap', 'SettingOutlined', 'F', 0, 125, '2023-09-22 23:40:30', '2023-09-26 15:17:41', null);
-insert into dinky_sys_menu values (127, 24, 'Metrics 配置', '/settings/globalsetting/metrics', null, 'settings:globalsetting:metrics', 'SettingOutlined', 'F', 0, 127, '2023-09-22 23:40:30', '2023-09-26 15:18:06', null);
-insert into dinky_sys_menu values (128, 24, 'Resource 配置', '/settings/globalsetting/resource', null, 'settings:globalsetting:resource', 'SettingOutlined', 'F', 0, 129, '2023-09-22 23:40:30', '2023-09-26 15:18:27', null);
-insert into dinky_sys_menu values (129, 122, '编辑', '/settings/globalsetting/dinky/edit', null, 'settings:globalsetting:dinky:edit', 'EditOutlined', 'F', 0, 118, '2023-09-22 23:44:18', '2023-09-26 15:16:29', null);
-insert into dinky_sys_menu values (130, 123, '编辑', '/settings/globalsetting/flink/edit', null, 'settings:globalsetting:flink:edit', 'EditOutlined', 'F', 0, 120, '2023-09-22 23:44:18', '2023-09-26 15:16:50', null);
-insert into dinky_sys_menu values (131, 124, '编辑', '/settings/globalsetting/maven/edit', null, 'settings:globalsetting:maven:edit', 'EditOutlined', 'F', 0, 122, '2023-09-22 23:44:18', '2023-09-26 15:17:13', null);
-insert into dinky_sys_menu values (132, 125, '编辑', '/settings/globalsetting/ds/edit', null, 'settings:globalsetting:ds:edit', 'EditOutlined', 'F', 0, 124, '2023-09-22 23:44:18', '2023-09-26 15:17:32', null);
-insert into dinky_sys_menu values (133, 126, '编辑', '/settings/globalsetting/ldap/edit', null, 'settings:globalsetting:ldap:edit', 'EditOutlined', 'F', 0, 126, '2023-09-22 23:44:18', '2023-09-26 15:17:51', null);
-insert into dinky_sys_menu values (134, 127, '编辑', '/settings/globalsetting/metrics/edit', null, 'settings:globalsetting:metrics:edit', 'EditOutlined', 'F', 0, 128, '2023-09-22 23:44:18', '2023-09-26 15:18:16', null);
-insert into dinky_sys_menu values (135, 128, '编辑', '/settings/globalsetting/resource/edit', null, 'settings:globalsetting:resource:edit', 'EditOutlined', 'F', 0, 130, '2023-09-22 23:44:18', '2023-09-26 15:18:39', null);
-insert into dinky_sys_menu values (136, 12, '告警模版', '/registration/alert/template', './RegCenter/Alert/AlertTemplate', 'registration:alert:template', 'AlertOutlined', 'C', 0, 51, '2023-09-23 21:34:43', '2023-09-26 15:03:14', null);
-insert into dinky_sys_menu values (137, 136, '添加', '/registration/alert/template/add', null, 'registration:alert:template:add', 'PlusOutlined', 'F', 0, 52, '2023-09-23 21:36:37', '2023-09-26 15:03:22', null);
-insert into dinky_sys_menu values (138, 136, '编辑', '/registration/alert/template/edit', null, 'registration:alert:template:edit', 'EditOutlined', 'F', 0, 53, '2023-09-23 21:37:00', '2023-09-26 15:03:30', null);
-insert into dinky_sys_menu values (139, 136, '删除', '/registration/alert/template/delete', null, 'registration:alert:template:delete', 'DeleteOutlined', 'F', 0, 54, '2023-09-23 21:37:43', '2023-09-26 15:03:37', null);
-insert into dinky_sys_menu values (140, 25, '系统日志', '/settings/systemlog/rootlog', null, 'settings:systemlog:rootlog', 'BankOutlined', 'F', 0, 133, '2023-09-23 21:43:57', '2023-09-26 15:19:14', null);
-insert into dinky_sys_menu values (141, 25, '日志列表', '/settings/systemlog/loglist', null, 'settings:systemlog:loglist', 'BankOutlined', 'F', 0, 134, '2023-09-23 21:45:05', '2023-09-26 15:19:23', null);
-insert into dinky_sys_menu values (142, 30, '部署 Session 集群', '/registration/cluster/config/deploy', null, 'registration:cluster:config:deploy', 'PlayCircleOutlined', 'F', 0, 35, '2023-09-26 13:42:55', '2023-09-26 14:58:50', null);
-insert into dinky_sys_menu values (143, 30, ' 心跳检测', '/registration/cluster/config/heartbeat', null, 'registration:cluster:config:heartbeat', 'HeartOutlined', 'F', 0, 36, '2023-09-26 13:44:23', '2023-09-26 14:58:50', null);
-insert into dinky_sys_menu values (144, 28, '心跳检测', '/registration/cluster/instance/heartbeat', null, 'registration:cluster:instance:heartbeat', 'HeartOutlined', 'F', 0, 30, '2023-09-26 13:51:04', '2023-09-26 14:57:42', null);
-insert into dinky_sys_menu values (145, 149, '心跳检测', '/registration/datasource/list/heartbeat', null, 'registration:datasource:list:heartbeat', 'HeartOutlined', 'F', 0, 41, '2023-09-26 14:00:06', '2024-01-18 22:09:26', null);
-insert into dinky_sys_menu values (146, 149, ' 拷贝', '/registration/datasource/list/copy', null, 'registration:datasource:list:copy', 'CopyOutlined', 'F', 0, 42, '2023-09-26 14:02:28', '2024-01-18 22:09:41', null);
-insert into dinky_sys_menu values (147, 28, '停止 Flink 实例', '/registration/cluster/instance/kill', null, 'registration:cluster:instance:kill', 'StopTwoTone', 'F', 0, 145, '2024-01-03 11:08:39', '2024-01-03 11:08:39', null);
-insert into dinky_sys_menu values (148, 5, '全局变量', '/datastudio/left/globalVariable', '', 'datastudio:left:globalVariable', 'CloudServerOutlined', 'F', 0, 146, '2024-01-12 21:58:35', '2024-01-12 21:58:35', null);
-insert into dinky_sys_menu values (149, 10, '数据源列表', '/registration/datasource/list', './RegCenter/DataSource', 'registration:datasource:list', 'OrderedListOutlined', 'C', 0, 147, '2024-01-18 21:41:04', '2024-01-18 21:42:37', null);
-insert into dinky_sys_menu values (150, 10, '数据源详情', '/registration/datasource/detail', './RegCenter/DataSource/components/DataSourceDetail', 'registration:datasource:detail', 'InfoCircleOutlined', 'C', 0, 148, '2024-01-18 21:43:35', '2024-01-18 21:43:35', null);
-insert into dinky_sys_menu values (151, 150, '数据源详情列表树', '/registration/datasource/detail/tree', null, 'registration:datasource:detail:tree', 'ControlOutlined', 'F', 0, 149, '2024-01-18 21:50:06', '2024-01-18 21:50:06', null);
-insert into dinky_sys_menu values (152, 150, '描述', '/registration/datasource/detail/desc', null, 'registration:datasource:detail:desc', 'SortDescendingOutlined', 'F', 0, 150, '2024-01-18 21:51:02', '2024-01-18 22:10:11', null);
-insert into dinky_sys_menu values (153, 150, '查询', '/registration/datasource/detail/query', null, 'registration:datasource:detail:query', 'SearchOutlined', 'F', 0, 151, '2024-01-18 21:51:41', '2024-01-18 22:10:21', null);
-insert into dinky_sys_menu values (154, 150, '生成 SQL', '/registration/datasource/detail/gensql', null, 'registration:datasource:detail:gensql', 'ConsoleSqlOutlined', 'F', 0, 152, '2024-01-18 21:52:06', '2024-01-18 22:10:29', null);
-insert into dinky_sys_menu values (155, 150, ' 控制台', '/registration/datasource/detail/console', null, 'registration:datasource:detail:console', 'ConsoleSqlOutlined', 'F', 0, 153, '2024-01-18 21:52:47', '2024-01-18 22:10:37', null);
-insert into dinky_sys_menu values (156, 150, ' 刷新', '/registration/datasource/detail/refresh', null, 'registration:datasource:detail:refresh', 'ReloadOutlined', 'F', 0, 154, '2024-01-18 22:13:47', '2024-01-18 22:13:47', null);
-insert into dinky_sys_menu values (157, 6, '类加载器 Jars', '/settings/classloaderjars', './SettingCenter/ClassLoaderJars', 'settings:classloaderjars', 'CodeSandboxOutlined', 'C', 0, 155, '2024-01-29 16:51:51', '2024-01-29 16:51:51', null);
-
--- ----------------------------
--- Records of dinky_alert_rule
--- ----------------------------
-INSERT INTO dinky_alert_rules
-VALUES (3, 'alert.rule.jobFail',
- '[{"ruleKey":"jobStatus","ruleOperator":"EQ","ruleValue":"''FAILED''","rulePriority":"1"}]', 1, 'SYSTEM',
- ' or ', '', 1, '1970-01-01 00:00:00', '2023-11-22 17:03:44', null, null);
-INSERT INTO dinky_alert_rules
-VALUES (4, 'alert.rule.getJobInfoFail',
- '[{"ruleKey":"jobStatus","ruleOperator":"EQ","ruleValue":"''UNKNOWN''","rulePriority":"1"}]', 1, 'SYSTEM',
- ' or ', '', 1, '1970-01-01 00:00:00', '2023-11-22 17:03:44', null, null);
-INSERT INTO dinky_alert_rules
-VALUES (5, 'alert.rule.jobRestart',
- '[{"ruleKey":"jobStatus","ruleOperator":"EQ","ruleValue":"''RESTARTING''","rulePriority":"1"}]', 1, 'SYSTEM',
- ' or ', '', 1, '1970-01-01 00:00:00', '2023-11-22 17:03:44', null, null);
-INSERT INTO dinky_alert_rules
-VALUES (6, 'alert.rule.checkpointFail', '[{"ruleKey":"isCheckpointFailed","ruleOperator":"EQ","ruleValue":"true"}]', 1,
- 'SYSTEM', ' or ', '', 1, '1970-01-01 00:00:00', '2023-11-22 17:03:44', null, null);
-INSERT INTO dinky_alert_rules
-VALUES (7, 'alert.rule.jobRunException', '[{"ruleKey":"isException","ruleOperator":"EQ","ruleValue":"true"}]', 1,
- 'SYSTEM', ' or ', '', 1, '1970-01-01 00:00:00', '2023-11-22 17:03:44', null, null);
-
-
-INSERT INTO dinky_alert_template
-VALUES (1, 'Default', '
-- **Job Name :** ${jobName}
-- **Job Status :** ${jobStatus}
-- **Alert Time :** ${alertTime}
-- **Start Time :** ${jobStartTime}
-- **End Time :** ${jobEndTime}
-- **${errorMsg}**
-[Go toTask Web](http://${taskUrl})
-', 1, '2023-11-24 20:41:23', '2023-11-24 20:41:23', null, null);
-
-
-
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 1, 'Variable', 'FLINK_OPTIONS', '', 'set table.exec.async-lookup.buffer-capacity'
- , '异步查找连接可以触发的最大异步操作的操作数。
-The max number of async i/o operation that the async lookup join can trigger.'
- , 'Set ''table.exec.async-lookup.buffer-capacity''=''100'';', '1.14', 0, 1
- , '2022-01-20 15:00:00', '2023-12-27 23:58:09', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 2, 'Variable', 'FLINK_OPTIONS', '', 'set table.exec.async-lookup.timeout'
- , '异步操作完成的超时时间。
-The async timeout for the asynchronous operation to complete.', 'Set ''table.exec.async-lookup.timeout''=''3 min'';'
- , '1.14', 0, 1
- , '2022-01-20 15:00:00', '2023-12-27 23:58:09', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 3, 'Variable', 'FLINK_OPTIONS', '', 'set table.exec.disabled-operators'
- , '禁用指定operators,用逗号分隔
-Mainly for testing. A comma-separated list of operator names, each name represents a kind of disabled operator. Operators that can be disabled include "NestedLoopJoin", "ShuffleHashJoin", "BroadcastHashJoin", "SortMergeJoin", "HashAgg", "SortAgg". By default no operator is disabled.'
- , 'Set ''table.exec.disabled-operators''=''SortMergeJoin'';', '1.14', 0, 1
- , '2022-01-20 15:00:00', '2023-12-27 23:58:09', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 4, 'Variable', 'FLINK_OPTIONS', '', 'set table.exec.mini-batch.allow-latency'
- , '最大等待时间可用于MiniBatch缓冲输入记录。 MiniBatch是用于缓冲输入记录以减少状态访问的优化。MiniBatch以允许的等待时间间隔以及达到最大缓冲记录数触发。注意:如果将table.exec.mini-batch.enabled设置为true,则其值必须大于零.'
- , 'Set ''table.exec.mini-batch.allow-latency''=''-1 ms'';', '1.14', 0, 1
- , '2022-01-20 15:00:00', '2023-12-27 23:58:09', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 5, 'Variable', 'FLINK_OPTIONS', '', 'set table.exec.mini-batch.enabled'
- , '指定是否启用MiniBatch优化。 MiniBatch是用于缓冲输入记录以减少状态访问的优化。默认情况下禁用此功能。 要启用此功能,用户应将此配置设置为true。注意:如果启用了mini batch 处理,则必须设置“ table.exec.mini-batch.allow-latency”和“ table.exec.mini-batch.size”.'
- , 'Set ''table.exec.mini-batch.enabled''=''false'';', '1.14', 0, 1
- , '2022-01-20 15:00:00', '2023-12-27 23:58:09', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 6, 'Variable', 'FLINK_OPTIONS', '', 'set table.exec.mini-batch.size'
- , '可以为MiniBatch缓冲最大输入记录数。 MiniBatch是用于缓冲输入记录以减少状态访问的优化。MiniBatch以允许的等待时间间隔以及达到最大缓冲记录数触发。 注意:MiniBatch当前仅适用于非窗口聚合。如果将table.exec.mini-batch.enabled设置为true,则其值必须为正.'
- , 'Set ''table.exec.mini-batch.size''=''-1'';', '1.14', 0, 1
- , '2022-01-20 15:00:00', '2023-12-27 23:58:09', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 7, 'Variable', 'FLINK_OPTIONS', '', 'set table.exec.resource.default-parallelism'
- , '设置所有Operator的默认并行度。
-Sets default parallelism for all operators (such as aggregate, join, filter) to run with parallel instances. This config has a higher priority than parallelism of StreamExecutionEnvironment (actually, this config overrides the parallelism of StreamExecutionEnvironment). A value of -1 indicates that no default parallelism is set, then it will fallback to use the parallelism of StreamExecutionEnvironment.'
- , 'Set ''table.exec.resource.default-parallelism''=''1'';', '1.14', 0, 1
- , '2022-01-20 15:00:00', '2023-12-27 23:58:09', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 8, 'Variable', 'FLINK_OPTIONS', '', 'set table.exec.sink.not-null-enforcer'
- , '对表的NOT NULL列约束强制执行不能将空值插入到表中。Flink支持“error”(默认)和“drop”强制行为
-The NOT NULL column constraint on a table enforces that null values can''t be inserted into the table. Flink supports ''error'' (default) and ''drop'' enforcement behavior. By default, Flink will check values and throw runtime exception when null values writing into NOT NULL columns. Users can change the behavior to ''drop'' to silently drop such records without throwing exception.
-Possible values:
-"ERROR"
-"DROP"', 'Set ''table.exec.sink.not-null-enforcer''=''ERROR'';', '1.14', 0, 1
- , '2022-01-20 15:00:00', '2023-12-27 23:58:09', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 9, 'Variable', 'FLINK_OPTIONS', '', 'set table.exec.sink.upsert-materialize'
- , '由于分布式系统中 Shuffle 导致 ChangeLog 数据混乱,Sink 接收到的数据可能不是全局 upsert 的顺序。因此,在 upsert sink 之前添加 upsert materialize 运算符。它接收上游的变更日志记录并为下游生成一个 upsert 视图。默认情况下,当唯一键出现分布式无序时,会添加具体化操作符。您也可以选择不实现(NONE)或强制实现(FORCE)。
-Possible values:
-"NONE"
-"FORCE"
-"AUTO"', 'Set ''table.exec.sink.upsert-materialize''=''AUTO'';', '1.14', 0, 1
- , '2022-01-20 15:00:00', '2023-12-27 23:58:09', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES (10, 'Module', 'SQL_TEMPLATE', 'FlinkSql', 'create.table.kafka'
- , 'kafka快速建表格式',
- 'CREATE TABLE Kafka_Table (
- `event_time` TIMESTAMP(3) METADATA FROM ''timestamp'',
- `partition` BIGINT METADATA VIRTUAL,
- `offset` BIGINT METADATA VIRTUAL,
- `user_id` BIGINT,
- `item_id` BIGINT,
- `behavior` STRING
- ) WITH (
- ''connector'' = ''kafka'',
- ''topic'' = ''user_behavior'',
- ''properties.bootstrap.servers'' = ''localhost:9092'',
- ''properties.group.id'' = ''testGroup'',
- ''scan.startup.mode'' = ''earliest-offset'',
- ''format'' = ''csv''
- --可选: ''value.fields-include'' = ''ALL'',
- --可选: ''json.ignore-parse-errors'' = ''true'',
- --可选: ''key.fields-prefix'' = ''k_'',''
- );
-',
- '1.14', 0, 1
- , '2022-01-20 16:59:18', '2023-12-28 00:02:57', NULL, NULL);
-
-
-
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 11, 'Module', 'SQL_TEMPLATE', 'FlinkSql', 'create.table.doris'
- , 'Doris快速建表', 'CREATE TABLE doris_table (
- cid INT,
- sid INT,
- name STRING,
- cls STRING,
- score INT,
- PRIMARY KEY (cid) NOT ENFORCED
-) WITH (
-''connector'' = ''doris'',
-''fenodes'' = ''127.0.0.1:8030'' ,
-''table.identifier'' = ''test.scoreinfo'',
-''username'' = ''root'',
-''password''=''''
-);', '1.14', 0, 1
- , '2022-01-20 17:08:00', '2023-12-28 00:02:57', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 12, 'Module', 'SQL_TEMPLATE', 'FlinkSql', 'create.table.jdbc'
- , 'JDBC建表语句', 'CREATE TABLE JDBC_table (
- id BIGINT,
- name STRING,
- age INT,
- status BOOLEAN,
- PRIMARY KEY (id) NOT ENFORCED
- ) WITH (
- ''connector'' = ''jdbc'',
- ''url'' = ''jdbc:mysql://localhost:3306/mydatabase'',
- ''table-name'' = ''users'',
- ''username'' = ''root'',
- ''password'' = ''123456''
- --可选: ''sink.parallelism''=''1'',
- --可选: ''lookup.cache.ttl''=''1000s'',
- );
-', '1.14', 0, 1
- , '2022-01-20 17:15:26', '2023-12-28 00:02:57', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 13, 'Module', 'SQL_TEMPLATE', 'FlinkSql', 'create.catalog.hive'
- , '创建HIVE的catalog',
- '
- CREATE CATALOG hive WITH (
- ''type'' = ''hive'',
- ''default-database'' = ''default'',
- ''hive-conf-dir'' = ''/app/wwwroot/MBDC/hive/conf/'', -- hive配置文件
- ''hadoop-conf-dir''=''/app/wwwroot/MBDC/hadoop/etc/hadoop/'' -- hadoop配置文件,配了环境变量则不需要。
- );
- ', '1.14', 0, 1
- , '2022-01-20 17:18:54', '2023-12-28 00:03:53', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 14, 'Operator', 'SQL_TEMPLATE', 'FlinkSql', 'use.catalog.hive'
- , '使用hive的catalog', 'USE CATALOG hive;', '1.14', 0, 1
- , '2022-01-20 17:22:53', '2023-12-28 00:03:53', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 15, 'Operator', 'SQL_TEMPLATE', 'FlinkSql', 'use.catalog.default'
- , '使用default的catalog', 'USE CATALOG default_catalog;', '1.14', 0, 1
- , '2022-01-20 17:23:48', '2023-12-28 00:03:53', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 16, 'Variable', 'FLINK_OPTIONS', '', 'set dialect.hive'
- , '使用hive方言', 'Set table.sql-dialect=hive;', '1.14', 0, 1
- , '2022-01-20 17:25:37', '2023-12-28 00:04:44', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 17, 'Variable', 'FLINK_OPTIONS', '', 'set dialect.default'
- , '使用default方言', 'Set table.sql-dialect=default;', '1.14', 0, 1
- , '2022-01-20 17:26:19', '2023-12-28 00:04:44', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 18, 'Module', 'SQL_TEMPLATE', 'FlinkSql', 'create.stream.table.hive'
- , '创建流式HIVE表', 'CREATE CATALOG hive WITH ( --创建hive的catalog
- ''type'' = ''hive'',
- ''hive-conf-dir'' = ''/app/wwwroot/MBDC/hive/conf/'',
- ''hadoop-conf-dir''=''/app/wwwroot/MBDC/hadoop/etc/hadoop/''
-);
-
-USE CATALOG hive;
-USE offline_db; --选择库
-set table.sql-dialect=hive; --设置方言
-
-CREATE TABLE hive_stream_table (
- user_id STRING,
- order_amount DOUBLE
-) PARTITIONED BY (dt STRING, hr STRING) STORED AS parquet TBLPROPERTIES (
- ''partition.time-extractor.timestamp-pattern''=''$dt $hr:00:00'',
- ''sink.partition-commit.trigger''=''partition-time'',
- ''sink.partition-commit.delay''=''1min'',
- ''sink.semantic'' = ''exactly-once'',
- ''sink.rolling-policy.rollover-interval'' =''1min'',
- ''sink.rolling-policy.check-interval''=''1min'',
- ''sink.partition-commit.policy.kind''=''metastore,success-file''
-);', '1.14', 0, 1
- , '2022-01-20 17:34:06', '2023-12-28 00:02:57', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 19, 'Module', 'SQL_TEMPLATE', 'FlinkSql', 'create.table.mysql_cdc'
- , '创建Mysql_CDC表', 'CREATE TABLE mysql_cdc_table(
- cid INT,
- sid INT,
- cls STRING,
- score INT,
- PRIMARY KEY (cid) NOT ENFORCED
-) WITH (
-''connector'' = ''mysql-cdc'',
-''hostname'' = ''127.0.0.1'',
-''port'' = ''3306'',
-''username'' = ''test'',
-''password'' = ''123456'',
-''database-name'' = ''test'',
-''server-time-zone'' = ''UTC'',
-''scan.incremental.snapshot.enabled'' = ''true'',
-''debezium.snapshot.mode''=''latest-offset'' ,-- 或者key是scan.startup.mode,initial表示要历史数据,latest-offset表示不要历史数据
-''debezium.datetime.format.date''=''yyyy-MM-dd'',
-''debezium.datetime.format.time''=''HH-mm-ss'',
-''debezium.datetime.format.datetime''=''yyyy-MM-dd HH-mm-ss'',
-''debezium.datetime.format.timestamp''=''yyyy-MM-dd HH-mm-ss'',
-''debezium.datetime.format.timestamp.zone''=''UTC+8'',
-''table-name'' = ''mysql_cdc_table'');', '1.14', 0, 1
- , '2022-01-20 17:49:14', '2023-12-28 00:02:57', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 20, 'Module', 'SQL_TEMPLATE', 'FlinkSql', 'create.table.hudi'
- , '创建hudi表', 'CREATE TABLE hudi_table
-(
- `goods_order_id` bigint COMMENT ''自增主键id'',
- `goods_order_uid` string COMMENT ''订单uid'',
- `customer_uid` string COMMENT ''客户uid'',
- `customer_name` string COMMENT ''客户name'',
- `create_time` timestamp(3) COMMENT ''创建时间'',
- `update_time` timestamp(3) COMMENT ''更新时间'',
- `create_by` string COMMENT ''创建人uid(唯一标识)'',
- `update_by` string COMMENT ''更新人uid(唯一标识)'',
- PRIMARY KEY (goods_order_id) NOT ENFORCED
-) COMMENT ''hudi_table''
-WITH (
-''connector'' = ''hudi'',
-''path'' = ''hdfs://cluster1/data/bizdata/cdc/mysql/order/goods_order'', -- 路径会自动创建
-''hoodie.datasource.write.recordkey.field'' = ''goods_order_id'', -- 主键
-''write.precombine.field'' = ''update_time'', -- 相同的键值时,取此字段最大值,默认ts字段
-''read.streaming.skip_compaction'' = ''true'', -- 避免重复消费问题
-''write.bucket_assign.tasks'' = ''2'', -- 并发写的 bucekt 数
-''write.tasks'' = ''2'',
-''compaction.tasks'' = ''1'',
-''write.operation'' = ''upsert'', -- UPSERT(插入更新)\\INSERT(插入)\\BULK_INSERT(批插入)(upsert性能会低些,不适合埋点上报)
-''write.rate.limit'' = ''20000'', -- 限制每秒多少条
-''table.type'' = ''COPY_ON_WRITE'', -- 默认COPY_ON_WRITE ,
-''compaction.async.enabled'' = ''true'', -- 在线压缩
-''compaction.trigger.strategy'' = ''num_or_time'', -- 按次数压缩
-''compaction.delta_commits'' = ''20'', -- 默认为5
-''compaction.delta_seconds'' = ''60'', -- 默认为1小时
-''hive_sync.enable'' = ''true'', -- 启用hive同步
-''hive_sync.mode'' = ''hms'', -- 启用hive hms同步,默认jdbc
-''hive_sync.metastore.uris'' = ''thrift://cdh2.vision.com:9083'', -- required, metastore的端口
-''hive_sync.jdbc_url'' = ''jdbc:hive2://cdh1.vision.com:10000'', -- required, hiveServer地址
-''hive_sync.table'' = ''order_mysql_goods_order'', -- required, hive 新建的表名 会自动同步hudi的表结构和数据到hive
-''hive_sync.db'' = ''cdc_ods'', -- required, hive 新建的数据库名
-''hive_sync.username'' = ''hive'', -- required, HMS 用户名
-''hive_sync.password'' = ''123456'', -- required, HMS 密码
-''hive_sync.skip_ro_suffix'' = ''true'' -- 去除ro后缀
-);', '1.14', 0, 1
- , '2022-01-20 17:56:50', '2023-12-28 00:02:57', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 21, 'Function', 'FUN_UDF', 'COMPARE_FUNCTION', 'value1 <> value2'
- , '如果value1不等于value2 返回true; 如果value1或value2为NULL,则返回UNKNOWN 。', '${1:} <> ${2:}', '1.12', 4, 1
- , '2021-02-22 10:05:38', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 22, 'Function', 'FUN_UDF', 'COMPARE_FUNCTION', 'value1 > value2'
- , '如果value1大于value2 返回true; 如果value1或value2为NULL,则返回UNKNOWN 。', '${1:} > ${2:}', '1.12', 2, 1
- , '2021-02-22 14:37:58', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 23, 'Function', 'FUN_UDF', 'COMPARE_FUNCTION', 'value1 >= value2'
- , '如果value1大于或等于value2 返回true; 如果value1或value2为NULL,则返回UNKNOWN 。', '${1:} >= ${2:}', '1.12', 2, 1
- , '2021-02-22 14:38:52', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 24, 'Function', 'FUN_UDF', 'COMPARE_FUNCTION', 'value1 < value2'
- , '如果value1小于value2 返回true; 如果value1或value2为NULL,则返回UNKNOWN 。', '${1:} < ${2:}', '1.12', 0, 1
- , '2021-02-22 14:39:15', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 25, 'Function', 'FUN_UDF', 'COMPARE_FUNCTION', 'value1 <= value2'
- , '如果value1小于或等于value2 返回true; 如果value1或value2为NULL,则返回UNKNOWN 。', '${1:} <= ${2:}', '1.12', 0
- , 1
- , '2021-02-22 14:39:40', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 26, 'Function', 'FUN_UDF', 'COMPARE_FUNCTION', 'value IS NULL'
- , '如果value为NULL,则返回TRUE 。', '${1:} IS NULL', '1.12', 2, 1
- , '2021-02-22 14:40:39', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 27, 'Function', 'FUN_UDF', 'COMPARE_FUNCTION', 'value IS NOT NULL'
- , '如果value不为NULL,则返回TRUE 。', '${1:} IS NOT NULL', '1.12', 0, 1
- , '2021-02-22 14:41:26', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 28, 'Function', 'FUN_UDF', 'COMPARE_FUNCTION', 'value1 IS DISTINCT FROM value2'
- , '如果两个值不相等则返回TRUE。NULL值在这里被视为相同的值。', '${1:} IS DISTINCT FROM ${2:}', '1.12', 0, 1
- , '2021-02-22 14:42:39', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 29, 'Function', 'FUN_UDF', 'COMPARE_FUNCTION', 'value1 IS NOT DISTINCT FROM value2'
- , '如果两个值相等则返回TRUE。NULL值在这里被视为相同的值。', '${1:} IS NOT DISTINCT FROM ${2:}', '1.12', 0, 1
- , '2021-02-22 14:43:23', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 30, 'Function', 'FUN_UDF', 'COMPARE_FUNCTION', 'value1 BETWEEN [ ASYMMETRIC | SYMMETRIC ] value2 AND value3'
- , '如果value1大于或等于value2和小于或等于value3 返回true', '${1:} BETWEEN ${2:} AND ${3:}', '1.12', 0, 1
- , '2021-02-22 14:44:26', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 31, 'Function', 'FUN_UDF', 'COMPARE_FUNCTION'
- , 'value1 NOT BETWEEN [ ASYMMETRIC | SYMMETRIC ] value2 AND value3'
- , '如果value1小于value2或大于value3 返回true', '${1:} NOT BETWEEN ${2:} AND ${3:}', '1.12', 0, 1
- , '2021-02-22 14:44:26', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 32, 'Function', 'FUN_UDF', 'COMPARE_FUNCTION', 'string1 LIKE string2 [ ESCAPE char ]'
- , '如果STRING1匹配模式STRING2,则返回TRUE ;如果STRING1或STRING2为NULL,则返回UNKNOWN 。', '${1:} LIKE ${2:}', '1.12'
- , 0, 1
- , '2021-02-22 14:44:26', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 33, 'Function', 'FUN_UDF', 'COMPARE_FUNCTION', 'string1 NOT LIKE string2 [ ESCAPE char ]'
- , '如果STRING1不匹配模式STRING2,则返回TRUE ;如果STRING1或STRING2为NULL,则返回UNKNOWN 。', '${1:} NOT LIKE ${2:}'
- , '1.12', 0, 1
- , '2021-02-22 14:44:26', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 34, 'Function', 'FUN_UDF', 'COMPARE_FUNCTION', 'string1 SIMILAR TO string2 [ ESCAPE char ]'
- , '如果STRING1与SQL正则表达式STRING2匹配,则返回TRUE ;如果STRING1或STRING2为NULL,则返回UNKNOWN 。'
- , '${1:} SIMILAR TO ${2:}', '1.12', 0, 1
- , '2021-02-22 14:44:26', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 35, 'Function', 'FUN_UDF', 'COMPARE_FUNCTION', 'string1 NOT SIMILAR TO string2 [ ESCAPE char ]'
- , '如果STRING1与SQL正则表达式STRING2不匹配,则返回TRUE ;如果STRING1或STRING2为NULL,则返回UNKNOWN 。'
- , '${1:} NOT SIMILAR TO ${2:}', '1.12', 0, 1
- , '2021-02-22 14:44:26', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 36, 'Function', 'FUN_UDF', 'COMPARE_FUNCTION', 'value1 IN (value2 [, value3]* )'
- , '如果value1存在于给定列表(value2,value3,...)中,则返回TRUE 。
-
-当(value2,value3,...)包含NULL,如果可以找到该元素,则返回TRUE,否则返回UNKNOWN。
-
-如果value1为NULL,则始终返回UNKNOWN 。', '${1:} IN (${2:} )', '1.12', 0, 1
- , '2021-02-22 14:44:26', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 37, 'Function', 'FUN_UDF', 'COMPARE_FUNCTION', 'value1 NOT IN (value2 [, value3]* )'
- , '如果value1不存在于给定列表(value2,value3,...)中,则返回TRUE 。
-
-当(value2,value3,...)包含NULL,如果可以找到该元素,则返回TRUE,否则返回UNKNOWN。
-
-如果value1为NULL,则始终返回UNKNOWN 。', '${1:} NOT IN (${2:})', '1.12', 0, 1
- , '2021-02-22 14:44:26', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 38, 'Function', 'FUN_UDF', 'COMPARE_FUNCTION', 'EXISTS (sub-query)'
- , '如果value存在于子查询中,则返回TRUE。', 'EXISTS (${1:})', '1.12', 0, 1
- , '2021-02-22 14:44:26', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 39, 'Function', 'FUN_UDF', 'COMPARE_FUNCTION', 'value IN (sub-query)'
- , '如果value存在于子查询中,则返回TRUE。', '${1:} IN (${2:})', '1.12', 0, 1
- , '2021-02-22 14:44:26', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 40, 'Function', 'FUN_UDF', 'COMPARE_FUNCTION', 'value NOT IN (sub-query)'
- , '如果value不存在于子查询中,则返回TRUE。', '${1:} NOT IN (${2:})', '1.12', 0, 1
- , '2021-02-22 14:44:26', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 41, 'Function', 'FUN_UDF', 'LOGICAL_FUNCTION', 'boolean1 OR boolean2'
- , '如果BOOLEAN1为TRUE或BOOLEAN2为TRUE,则返回TRUE。支持三值逻辑。
-
-例如,true || Null(Types.BOOLEAN)返回TRUE。', '${1:} OR ${2:}', '1.12', 0, 1
- , '2021-02-22 14:44:26', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 42, 'Function', 'FUN_UDF', 'LOGICAL_FUNCTION', 'boolean1 AND boolean2'
- , '如果BOOLEAN1和BOOLEAN2均为TRUE,则返回TRUE。支持三值逻辑。
-
-例如,true && Null(Types.BOOLEAN)返回未知。', '${1:} AND ${2:}', '1.12', 0, 1
- , '2021-02-22 14:44:26', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 43, 'Function', 'FUN_UDF', 'LOGICAL_FUNCTION', 'NOT boolean'
- , '如果BOOLEAN为FALSE,则返回TRUE ;如果BOOLEAN为TRUE,则返回FALSE 。
-
-如果BOOLEAN为UNKNOWN,则返回UNKNOWN。', 'NOT ${1:} ', '1.12', 0, 1
- , '2021-02-22 14:44:26', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 44, 'Function', 'FUN_UDF', 'LOGICAL_FUNCTION', 'boolean IS FALSE'
- , '如果BOOLEAN为FALSE,则返回TRUE ;如果BOOLEAN为TRUE或UNKNOWN,则返回FALSE 。', '${1:} IS FALSE', '1.12', 0, 1
- , '2021-02-22 14:44:26', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 45, 'Function', 'FUN_UDF', 'LOGICAL_FUNCTION', 'boolean IS NOT FALSE'
- , '如果BOOLEAN为TRUE或UNKNOWN,则返回TRUE ;如果BOOLEAN为FALSE,则返回FALSE。', '${1:} IS NOT FALSE', '1.12', 0, 1
- , '2021-02-22 14:44:26', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 46, 'Function', 'FUN_UDF', 'LOGICAL_FUNCTION', 'boolean IS TRUE'
- , '如果BOOLEAN为TRUE,则返回TRUE;如果BOOLEAN为FALSE或UNKNOWN,则返回FALSE 。', '${1:} IS TRUE', '1.12', 0, 1
- , '2021-02-22 14:44:26', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 47, 'Function', 'FUN_UDF', 'LOGICAL_FUNCTION', 'boolean IS NOT TRUE'
- , '如果BOOLEAN为FALSE或UNKNOWN,则返回TRUE ;如果BOOLEAN为TRUE,则返回FALSE 。', '${1:} IS NOT TRUE', '1.12', 0, 1
- , '2021-02-22 14:44:26', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 48, 'Function', 'FUN_UDF', 'LOGICAL_FUNCTION', 'boolean IS UNKNOWN'
- , '如果BOOLEAN为UNKNOWN,则返回TRUE ;如果BOOLEAN为TRUE或FALSE,则返回FALSE 。', '${1:} IS UNKNOWN', '1.12', 0, 1
- , '2021-02-22 14:44:26', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 49, 'Function', 'FUN_UDF', 'LOGICAL_FUNCTION', 'boolean IS NOT UNKNOWN'
- , '如果BOOLEAN为TRUE或FALSE,则返回TRUE ;如果BOOLEAN为UNKNOWN,则返回FALSE 。', '${1:} IS NOT UNKNOWN', '1.12', 0
- , 1
- , '2021-02-22 14:44:26', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 50, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', '+ numeric'
- , '返回NUMERIC。', '+ ${1:} ', '1.12', 0, 1
- , '2021-02-22 14:44:26', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 51, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', '- numeric'
- , '返回负数NUMERIC。', '- ${1:} ', '1.12', 0, 1
- , '2021-02-22 14:44:26', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 52, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'numeric1 + numeric2'
- , '返回NUMERIC1加NUMERIC2。', '${1:} + ${2:} ', '1.12', 0, 1
- , '2021-02-22 14:44:26', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 53, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'numeric1 - numeric2'
- , '返回NUMERIC1减去NUMERIC2。', '${1:} - ${2:} ', '1.12', 0, 1
- , '2021-02-22 14:44:26', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 54, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'numeric1 * numeric2'
- , '返回NUMERIC1乘以NUMERIC2。', '${1:} * ${2:} ', '1.12', 0, 1
- , '2021-02-22 14:44:26', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 55, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'numeric1 / numeric2'
- , '返回NUMERIC1除以NUMERIC2。', '${1:} / ${2:} ', '1.12', 0, 1
- , '2021-02-22 14:44:26', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 56, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'numeric1 % numeric2'
- , '返回NUMERIC1除以NUMERIC2的余数(模)。仅当numeric1为负数时,结果为负数。', '${1:} % ${2:} ', '1.12', 0, 1
- , '2021-02-22 14:44:26', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 57, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'POWER(numeric1, numeric2)'
- , '返回NUMERIC1的NUMERIC2 次幂。', 'POWER(${1:} , ${2:})', '1.12', 0, 1
- , '2021-02-22 14:44:26', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 58, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'ABS(numeric)'
- , '返回NUMERIC的绝对值。', 'ABS(${1:})', '1.12', 0, 1
- , '2021-02-22 14:44:26', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 59, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'MOD(numeric1, numeric2)'
- , '返回numeric1除以numeric2的余数(模)。只有当numeric1为负数时,结果才为负数', 'MOD(${1:} , ${2:} )', '1.12', 0, 1
- , '2021-02-22 14:44:26', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 60, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'SQRT(numeric)'
- , '返回NUMERIC的平方根。', 'SQRT(${1:})', '1.12', 0, 1
- , '2021-02-22 14:44:26', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 61, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'LN(numeric)'
- , '返回NUMERIC的自然对数(以e为底)。', 'LN(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 62, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'LOG10(numeric)'
- , '返回NUMERIC的以10为底的对数。', 'LOG10(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 63, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'LOG2(numeric)'
- , '返回NUMERIC的以2为底的对数。', 'LOG2(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 64, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'EXP(numeric)'
- , '返回e 的 NUMERIC 次幂。', 'EXP(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 65, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'FLOOR(numeric)'
- , '向下舍入NUMERIC,并返回小于或等于NUMERIC的最大整数。', 'FLOOR(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 66, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'SIN(numeric)'
- , '返回NUMERIC的正弦值。', 'SIN(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 67, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'SINH(numeric)'
- , '返回NUMERIC的双曲正弦值。
-
-返回类型为DOUBLE。', 'SINH(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 68, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'COS(numeric)'
- , '返回NUMERIC的余弦值。', 'COS(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 69, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'TAN(numeric)'
- , '返回NUMERIC的正切。', 'TAN(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 70, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'TANH(numeric)'
- , '返回NUMERIC的双曲正切值。
-
-返回类型为DOUBLE。', 'TANH(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 71, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'COT(numeric)'
- , '返回NUMERIC的余切。', 'COT(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 72, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'ASIN(numeric)'
- , '返回NUMERIC的反正弦值。', 'ASIN(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 73, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'ACOS(numeric)'
- , '返回NUMERIC的反余弦值。', 'ACOS(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 74, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'ATAN(numeric)'
- , '返回NUMERIC的反正切。', 'ATAN(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 75, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'ATAN2(numeric1, numeric2)'
- , '返回坐标的反正切(NUMERIC1,NUMERIC2)。', 'ATAN2(${1:}, ${2:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 76, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'COSH(numeric)'
- , '返回NUMERIC的双曲余弦值。
-
-返回值类型为DOUBLE。', 'COSH(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 77, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'DEGREES(numeric)'
- , '返回弧度NUMERIC的度数表示形式', 'DEGREES(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 78, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'RADIANS(numeric)'
- , '返回度数NUMERIC的弧度表示。', 'RADIANS(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 79, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'SIGN(numeric)'
- , '返回NUMERIC的符号。', 'SIGN(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 80, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'ROUND(numeric, integer)'
- , '返回一个数字,四舍五入为NUMERIC的INT小数位。', 'ROUND(${1:} , ${2:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 81, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'PI'
- , '返回一个比任何其他值都更接近圆周率的值。', 'PI', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 82, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'E()'
- , '返回一个比任何其他值都更接近e的值。', 'E()', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 83, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'RAND()'
- , '返回介于0.0(含)和1.0(不含)之间的伪随机双精度值。', 'RAND()', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 84, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'RAND(integer)'
- , '返回带有初始种子INTEGER的介于0.0(含)和1.0(不含)之间的伪随机双精度值。
-
-如果两个RAND函数具有相同的初始种子,它们将返回相同的数字序列。', 'RAND(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 85, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'RAND_INTEGER(integer)'
- , '返回介于0(含)和INTEGER(不含)之间的伪随机整数值。', 'RAND_INTEGER(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 86, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'RAND_INTEGER(integer1, integer2)'
- , '返回介于0(含)和INTEGER2(不含)之间的伪随机整数值,其初始种子为INTEGER1。
-
-如果两个randInteger函数具有相同的初始种子和边界,它们将返回相同的数字序列。', 'RAND_INTEGER(${1:} , ${2:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 87, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'UUID()'
- , '根据RFC 4122 type 4(伪随机生成)UUID返回UUID(通用唯一标识符)字符串
-
-(例如,“ 3d3c68f7-f608-473f-b60c-b0c44ad4cc4e”)。使用加密强度高的伪随机数生成器生成UUID。', 'UUID()', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 88, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'BIN(integer)'
- , '以二进制格式返回INTEGER的字符串表示形式。如果INTEGER为NULL,则返回NULL。
-
-例如,4.bin()返回“ 100”并12.bin()返回“ 1100”。', 'BIN(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 89, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'HEX(numeric)
-HEX(string)'
- , '以十六进制格式返回整数NUMERIC值或STRING的字符串表示形式。如果参数为NULL,则返回NULL。
-
-例如,数字20导致“ 14”,数字100导致“ 64”,字符串“ hello,world”导致“ 68656C6C6F2C776F726C64”。', 'HEX(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 90, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'TRUNCATE(numeric1, integer2)'
- , '返回一个小数点后被截断为integer2位的数字。', 'TRUNCATE(${1:}, ${2:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 91, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'PI()'
- , '返回π (pi)的值。仅在blink planner中支持。', 'PI()', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 92, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'LOG(numeric1)'
- , '如果不带参数调用,则返回NUMERIC1的自然对数。当使用参数调用时,将NUMERIC1的对数返回到基数NUMERIC2。
-
-注意:当前,NUMERIC1必须大于0,而NUMERIC2必须大于1。', 'LOG(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 93, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'LOG(numeric1, numeric2)'
- , '如果不带参数调用,则返回NUMERIC1的自然对数。当使用参数调用时,将NUMERIC1的对数返回到基数NUMERIC2。
-
-注意:当前,NUMERIC1必须大于0,而NUMERIC2必须大于1。', 'LOG(${1:}, ${2:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 94, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'CEIL(numeric)'
- , '将NUMERIC向上舍入,并返回大于或等于NUMERIC的最小整数。', 'CEIL(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 95, 'Function', 'FUN_UDF', 'ARITHMETIC_FUNCTIONS', 'CEILING(numeric)'
- , '将NUMERIC向上舍入,并返回大于或等于NUMERIC的最小整数。', 'CEILING(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 96, 'Function', 'FUN_UDF', 'STRING_FUNCTIONS', 'string1 || string2'
- , '返回string1和string2的连接。', '${1:} || ${2:}', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 97, 'Function', 'FUN_UDF', 'STRING_FUNCTIONS', 'UPPER(string)'
- , '以大写形式返回STRING。', 'UPPER(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 98, 'Function', 'FUN_UDF', 'STRING_FUNCTIONS', 'LOWER(string)'
- , '以小写形式返回STRING。', 'LOWER(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 99, 'Function', 'FUN_UDF', 'STRING_FUNCTIONS', 'POSITION(string1 IN string2)'
- , '返回STRING1在STRING2中第一次出现的位置(从1开始);
-
-如果在STRING2中找不到STRING1,则返回0 。', 'POSITION(${1:} IN ${2:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 100, 'Function', 'FUN_UDF', 'STRING_FUNCTIONS', 'TRIM([ BOTH | LEADING | TRAILING ] string1 FROM string2)'
- , '返回一个字符串,该字符串从STRING中删除前导和/或结尾字符。', 'TRIM(${1:} FROM ${2:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 101, 'Function', 'FUN_UDF', 'STRING_FUNCTIONS', 'LTRIM(string)'
- , '返回一个字符串,该字符串从STRING除去左空格。
-
-例如," This is a test String.".ltrim()返回“This is a test String.”。', 'LTRIM(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 102, 'Function', 'FUN_UDF', 'STRING_FUNCTIONS', 'RTRIM(string)'
- , '返回一个字符串,该字符串从STRING中删除正确的空格。
-
-例如,"This is a test String. ".rtrim()返回“This is a test String.”。', 'RTRIM(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 103, 'Function', 'FUN_UDF', 'STRING_FUNCTIONS', 'REPEAT(string, integer)'
- , '返回一个字符串,该字符串重复基本STRING INT次。
-
-例如,"This is a test String.".repeat(2)返回“This is a test String.This is a test String.”。', 'REPEAT(${1:}, ${2:})'
- , '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 104, 'Function', 'FUN_UDF', 'STRING_FUNCTIONS', 'REGEXP_REPLACE(string1, string2, string3)'
- , '返回字符串STRING1所有匹配正则表达式的子串STRING2连续被替换STRING3。
-
-例如,"foobar".regexpReplace("oo|ar", "")返回“ fb”。', 'REGEXP_REPLACE(${1:} , ${2:} , ${3:} )', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 105, 'Function', 'FUN_UDF', 'STRING_FUNCTIONS'
- , 'OVERLAY(string1 PLACING string2 FROM integer1 [ FOR integer2 ])'
- , '从位置INT1返回一个字符串,该字符串将STRING1的INT2(默认为STRING2的长度)字符替换为STRING2'
- , 'OVERLAY(${1:} PLACING ${2:} FROM ${3:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 106, 'Function', 'FUN_UDF', 'STRING_FUNCTIONS', 'SUBSTRING(string FROM integer1 [ FOR integer2 ])'
- , '返回字符串STRING的子字符串,从位置INT1开始,长度为INT2(默认为结尾)。', 'SUBSTRING${1:} FROM ${2:} )', '1.12', 0
- , 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 107, 'Function', 'FUN_UDF', 'STRING_FUNCTIONS', 'REPLACE(string1, string2, string3)'
- , '返回一个新字符串替换其中出现的所有STRING2与STRING3(非重叠)从STRING1。', 'REPLACE(${1:} , ${2:} , ${3:} )'
- , '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 108, 'Function', 'FUN_UDF', 'STRING_FUNCTIONS', 'REGEXP_EXTRACT(string1, string2[, integer])'
- , '从STRING1返回一个字符串,该字符串使用指定的正则表达式STRING2和正则表达式匹配组索引INTEGER1提取。'
- , 'REGEXP_EXTRACT(${1:}, ${2:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 109, 'Function', 'FUN_UDF', 'STRING_FUNCTIONS', 'INITCAP(string)'
- , '返回一种新形式的STRING,其中每个单词的第一个字符转换为大写,其余字符转换为小写。', 'INITCAP(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 110, 'Function', 'FUN_UDF', 'STRING_FUNCTIONS', 'CONCAT(string1, string2,...)'
- , '返回连接STRING1,STRING2,...的字符串。如果任何参数为NULL,则返回NULL。', 'CONCAT(${1:} , ${2:} , ${3:} )', '1.12'
- , 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 111, 'Function', 'FUN_UDF', 'STRING_FUNCTIONS', 'CONCAT_WS(string1, string2, string3,...)'
- , '返回一个字符串,会连接STRING2,STRING3,......与分离STRING1。', 'CONCAT_WS(${1:} , ${2:} , ${3:} )', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 112, 'Function', 'FUN_UDF', 'STRING_FUNCTIONS', 'LPAD(string1, integer, string2)'
- , '返回一个新字符串,该字符串从STRING1的左侧填充STRING2,长度为INT个字符。', 'LPAD(${1:} , ${2:} , ${3:} )', '1.12'
- , 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 113, 'Function', 'FUN_UDF', 'STRING_FUNCTIONS', 'RPAD(string1, integer, string2)'
- , '返回一个新字符串,该字符串从STRING1右侧填充STRING2,长度为INT个字符。', 'RPAD(${1:} , ${2:} , ${3:} )', '1.12', 0
- , 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 114, 'Function', 'FUN_UDF', 'STRING_FUNCTIONS', 'FROM_BASE64(string)'
- , '返回来自STRING的base64解码结果;如果STRING为NULL,则返回null 。', 'FROM_BASE64(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 115, 'Function', 'FUN_UDF', 'STRING_FUNCTIONS', 'TO_BASE64(string)'
- , '从STRING返回base64编码的结果;如果STRING为NULL,则返回NULL。', 'TO_BASE64(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 116, 'Function', 'FUN_UDF', 'STRING_FUNCTIONS', 'ASCII(string)'
- , '返回字符串的第一个字符的数值。如果字符串为NULL,则返回NULL。仅在blink planner中支持。', 'ASCII(${1:})', '1.12', 0
- , 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 117, 'Function', 'FUN_UDF', 'STRING_FUNCTIONS', 'CHR(integer)'
- , '返回与integer在二进制上等价的ASCII字符。如果integer大于255,我们将首先得到integer的模数除以255,并返回模数的CHR。如果integer为NULL,则返回NULL。仅在blink planner中支持。'
- , 'CHR(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 118, 'Function', 'FUN_UDF', 'STRING_FUNCTIONS', 'DECODE(binary, string)'
- , '使用提供的字符集(''US-ASCII'', ''ISO-8859-1'', ''UTF-8'', ''UTF-16BE'', ''UTF-16LE'', ''UTF-16''之一)将第一个参数解码为字符串。如果任意一个参数为空,结果也将为空。仅在blink planner中支持。'
- , 'DECODE(${1:}, ${2:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 119, 'Function', 'FUN_UDF', 'STRING_FUNCTIONS', 'ENCODE(string1, string2)'
- , '使用提供的string2字符集(''US-ASCII'', ''ISO-8859-1'', ''UTF-8'', ''UTF-16BE'', ''UTF-16LE'', ''UTF-16''之一)将string1编码为二进制。如果任意一个参数为空,结果也将为空。仅在blink planner中支持。'
- , 'ENCODE(${1:}, ${2:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 120, 'Function', 'FUN_UDF', 'STRING_FUNCTIONS', 'INSTR(string1, string2)'
- , '返回string2在string1中第一次出现的位置。如果任何参数为空,则返回NULL。仅在blink planner中支持。'
- , 'INSTR(${1:}, ${2:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 121, 'Function', 'FUN_UDF', 'STRING_FUNCTIONS', 'LEFT(string, integer)'
- , '返回字符串中最左边的整数字符。如果整数为负,则返回空字符串。如果任何参数为NULL,则返回NULL。仅在blink planner中支持。'
- , 'LEFT(${1:}, ${2:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 122, 'Function', 'FUN_UDF', 'STRING_FUNCTIONS', 'RIGHT(string, integer)'
- , '返回字符串中最右边的整数字符。如果整数为负,则返回空字符串。如果任何参数为NULL,则返回NULL。仅在blink planner中支持。'
- , 'RIGHT(${1:}, ${2:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 123, 'Function', 'FUN_UDF', 'STRING_FUNCTIONS', 'LOCATE(string1, string2[, integer])'
- , '返回string1在string2中的位置整数之后第一次出现的位置。如果没有找到,返回0。如果任何参数为NULL,则返回NULL仅在blink planner中支持。'
- , 'LOCATE(${1:}, ${2:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 124, 'Function', 'FUN_UDF', 'STRING_FUNCTIONS', 'PARSE_URL(string1, string2[, string3])'
- , '从URL返回指定的部分。string2的有效值包括''HOST'', ''PATH'', ''QUERY'', ''REF'', ''PROTOCOL'', ''AUTHORITY'', ''FILE''和''USERINFO''。如果任何参数为NULL,则返回NULL。仅在blink planner中支持。'
- , 'PARSE_URL(${1:} , ${2:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 125, 'Function', 'FUN_UDF', 'STRING_FUNCTIONS', 'REGEXP(string1, string2)'
- , '如果string1的任何子字符串(可能为空)与Java正则表达式string2匹配,则返回TRUE,否则返回FALSE。如果任何参数为NULL,则返回NULL。仅在blink planner中支持。'
- , 'REGEXP(${1:}, ${2:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 126, 'Function', 'FUN_UDF', 'STRING_FUNCTIONS', 'REVERSE(string)'
- , '返回反向字符串。如果字符串为NULL,则返回NULL仅在blink planner中支持。', 'REVERSE(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 127, 'Function', 'FUN_UDF', 'STRING_FUNCTIONS', 'SPLIT_INDEX(string1, string2, integer1)'
- , '通过分隔符string2拆分string1,返回拆分字符串的整数(从零开始)字符串。如果整数为负,返回NULL。如果任何参数为NULL,则返回NULL。仅在blink planner中支持。'
- , 'SPLIT_INDEX(${1:}, ${2:} , ${3:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 128, 'Function', 'FUN_UDF', 'STRING_FUNCTIONS', 'STR_TO_MAP(string1[, string2, string3]])'
- , '使用分隔符将string1分割成键/值对后返回一个映射。string2是pair分隔符,默认为'',''。string3是键值分隔符,默认为''=''。仅在blink planner中支持。'
- , 'STR_TO_MAP(${1:})', '1.12', 4, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 129, 'Function', 'FUN_UDF', 'STRING_FUNCTIONS', 'SUBSTR(string[, integer1[, integer2]])'
- , '返回一个字符串的子字符串,从位置integer1开始,长度为integer2(默认到末尾)。仅在blink planner中支持。'
- , 'SUBSTR(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 130, 'Function', 'FUN_UDF', 'STRING_FUNCTIONS', 'CHAR_LENGTH(string)'
- , '返回STRING中的字符数。', 'CHAR_LENGTH(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 131, 'Function', 'FUN_UDF', 'STRING_FUNCTIONS', 'CHARACTER_LENGTH(string)'
- , '返回STRING中的字符数。', 'CHARACTER_LENGTH(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 132, 'Function', 'FUN_UDF', 'TIME_FUNCTION', 'DATE string'
- , '返回以“ yyyy-MM-dd”形式从STRING解析的SQL日期。', 'DATE(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 133, 'Function', 'FUN_UDF', 'TIME_FUNCTION', 'TIME string'
- , '返回以“ HH:mm:ss”的形式从STRING解析的SQL时间。', 'TIME(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 134, 'Function', 'FUN_UDF', 'TIME_FUNCTION', 'TIMESTAMP string'
- , '返回从STRING解析的SQL时间戳,格式为“ yyyy-MM-dd HH:mm:ss [.SSS]”', 'TIMESTAMP(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 135, 'Function', 'FUN_UDF', 'TIME_FUNCTION', 'INTERVAL string range'
- , '解析“dd hh:mm:ss”形式的区间字符串。fff表示毫秒间隔,yyyy-mm表示月间隔。间隔范围可以是天、分钟、天到小时或天到秒,以毫秒为间隔;年或年到月的间隔。'
- , 'INTERVAL ${1:} range', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 136, 'Function', 'FUN_UDF', 'TIME_FUNCTION', 'CURRENT_DATE'
- , '返回UTC时区中的当前SQL日期。', 'CURRENT_DATE', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 137, 'Function', 'FUN_UDF', 'TIME_FUNCTION', 'CURRENT_TIME'
- , '返回UTC时区的当前SQL时间。', 'CURRENT_TIME', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 138, 'Function', 'FUN_UDF', 'TIME_FUNCTION', 'CURRENT_TIMESTAMP'
- , '返回UTC时区内的当前SQL时间戳。', 'CURRENT_TIMESTAMP', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 139, 'Function', 'FUN_UDF', 'TIME_FUNCTION', 'LOCALTIME'
- , '返回本地时区的当前SQL时间。', 'LOCALTIME', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 140, 'Function', 'FUN_UDF', 'TIME_FUNCTION', 'LOCALTIMESTAMP'
- , '返回本地时区的当前SQL时间戳。', 'LOCALTIMESTAMP', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 141, 'Function', 'FUN_UDF', 'TIME_FUNCTION', 'EXTRACT(timeintervalunit FROM temporal)'
- , '返回从时域的timeintervalunit部分提取的长值。', 'EXTRACT(${1:} FROM ${2:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 142, 'Function', 'FUN_UDF', 'TIME_FUNCTION', 'YEAR(date)'
- , '返回SQL date日期的年份。等价于EXTRACT(YEAR FROM date)。', 'YEAR(${1:})', '1.12', 0, 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 143, 'Function', 'FUN_UDF', 'TIME_FUNCTION', 'QUARTER(date)'
- , '从SQL date date返回一年中的季度(1到4之间的整数)。相当于EXTRACT(从日期起四分之一)。', 'QUARTER(${1:})', '1.12', 0
- , 1
- , '2021-02-22 15:29:35', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 144, 'Function', 'FUN_UDF', 'TIME_FUNCTION', 'MONTH(date)'
- , '返回SQL date date中的某月(1到12之间的整数)。等价于EXTRACT(MONTH FROM date)。', 'MONTH(${1:})', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 145, 'Function', 'FUN_UDF', 'TIME_FUNCTION', 'WEEK(date)'
- , '从SQL date date返回一年中的某个星期(1到53之间的整数)。相当于EXTRACT(从日期开始的星期)。', 'WEEK(${1:})', '1.12'
- , 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 146, 'Function', 'FUN_UDF', 'TIME_FUNCTION', 'DAYOFYEAR(date)'
- , '返回SQL date date中的某一天(1到366之间的整数)。相当于EXTRACT(DOY FROM date)。', 'DAYOFYEAR(${1:})', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 147, 'Function', 'FUN_UDF', 'TIME_FUNCTION', 'DAYOFMONTH(date)'
- , '从SQL date date返回一个月的哪一天(1到31之间的整数)。相当于EXTRACT(DAY FROM date)。', 'DAYOFMONTH(${1:})', '1.12'
- , 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 148, 'Function', 'FUN_UDF', 'TIME_FUNCTION', 'DAYOFWEEK(date)'
- , '返回星期几(1到7之间的整数;星期日= 1)从SQL日期日期。相当于提取(道指从日期)。', 'DAYOFWEEK(${1:})', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 149, 'Function', 'FUN_UDF', 'TIME_FUNCTION', 'HOUR(timestamp)'
- , '从SQL timestamp timestamp返回一天中的小时(0到23之间的整数)。相当于EXTRACT(HOUR FROM timestamp)。', 'HOUR(${1:})'
- , '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 150, 'Function', 'FUN_UDF', 'TIME_FUNCTION', 'MINUTE(timestamp)'
- , '从SQL timestamp timestamp返回一小时的分钟(0到59之间的整数)。相当于EXTRACT(分钟从时间戳)。', 'MINUTE(${1:})'
- , '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 151, 'Function', 'FUN_UDF', 'TIME_FUNCTION', 'SECOND(timestamp)'
- , '从SQL时间戳返回一分钟中的秒(0到59之间的整数)。等价于EXTRACT(从时间戳开始倒数第二)。', 'SECOND(${1:})', '1.12', 0
- , 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 152, 'Function', 'FUN_UDF', 'TIME_FUNCTION', 'FLOOR(timepoint TO timeintervalunit)'
- , '返回一个将timepoint舍入到时间单位timeintervalunit的值。', 'FLOOR(${1:} TO ${2:})', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 153, 'Function', 'FUN_UDF', 'TIME_FUNCTION', 'CEIL(timepoint TO timeintervalunit)'
- , '返回一个将timepoint舍入到时间单位timeintervalunit的值。', 'CEIL(${1:} TO ${2:})', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 154, 'Function', 'FUN_UDF', 'TIME_FUNCTION', '(timepoint1, temporal1) OVERLAPS (timepoint2, temporal2)'
- , '如果(timepoint1, temporal1)和(timepoint2, temporal2)定义的两个时间间隔重叠,则返回TRUE。时间值可以是时间点或时间间隔。'
- , '(${1:} , ${1:}) OVERLAPS (${2:} , ${2:})', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 155, 'Function', 'FUN_UDF', 'TIME_FUNCTION', 'DATE_FORMAT(timestamp, string)'
- , '注意这个功能有严重的错误,现在不应该使用。请实现一个自定义的UDF,或者使用EXTRACT作为解决方案。'
- , 'DATE_FORMAT(${1:}, ''yyyy-MM-dd'')', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 156, 'Function', 'FUN_UDF', 'TIME_FUNCTION', 'TIMESTAMPADD(timeintervalunit, interval, timepoint)'
- , '返回一个新的时间值,该值将一个(带符号的)整数间隔添加到时间点。间隔的单位由unit参数给出,它应该是以下值之一:秒、分、小时、日、周、月、季度或年。'
- , 'TIMESTAMPADD(${1:} , ${2:} , ${3:})', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 157, 'Function', 'FUN_UDF', 'TIME_FUNCTION', 'TIMESTAMPDIFF(timepointunit, timepoint1, timepoint2)'
- , '返回timepointunit在timepoint1和timepoint2之间的(带符号)数。间隔的单位由第一个参数给出,它应该是以下值之一:秒、分、小时、日、月或年。'
- , 'TIMESTAMPDIFF(${1:} , ${2:} , ${3:})', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 158, 'Function', 'FUN_UDF', 'TIME_FUNCTION', 'CONVERT_TZ(string1, string2, string3)'
- , '将时区string2中的datetime string1(默认ISO时间戳格式''yyyy-MM-dd HH:mm:ss'')转换为时区string3。时区的格式可以是缩写,如“PST”;可以是全名,如“America/Los_Angeles”;或者是自定义ID,如“GMT-8:00”。仅在blink planner中支持。'
- , 'CONVERT_TZ(${1:} , ${2:} , ${3:})', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 159, 'Function', 'FUN_UDF', 'TIME_FUNCTION', 'FROM_UNIXTIME(numeric[, string])'
- , '以字符串格式返回数值参数的表示形式(默认为''yyyy-MM-dd HH:mm:ss'')。numeric是一个内部时间戳值,表示从UTC ''1970-01-01 00:00:00''开始的秒数,例如UNIX_TIMESTAMP()函数生成的时间戳。返回值用会话时区表示(在TableConfig中指定)。仅在blink planner中支持。'
- , 'FROM_UNIXTIME(${1:} )', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 160, 'Function', 'FUN_UDF', 'TIME_FUNCTION', 'UNIX_TIMESTAMP()'
- , '获取当前Unix时间戳(以秒为单位)。仅在blink planner中支持。', 'UNIX_TIMESTAMP()', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 161, 'Function', 'FUN_UDF', 'TIME_FUNCTION', 'UNIX_TIMESTAMP(string1[, string2])'
- , '转换日期时间字符串string1,格式为string2(缺省为yyyy-MM-dd HH:mm:ss,如果没有指定)为Unix时间戳(以秒为单位),使用表配置中指定的时区。仅在blink planner中支持。'
- , 'UNIX_TIMESTAMP(${1:})', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 162, 'Function', 'FUN_UDF', 'TIME_FUNCTION', 'TO_DATE(string1[, string2])'
- , '将格式为string2的日期字符串string1(默认为''yyyy-MM-dd'')转换为日期。仅在blink planner中支持。', 'TO_DATE(${1:})'
- , '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 163, 'Function', 'FUN_UDF', 'TIME_FUNCTION', 'TO_TIMESTAMP(string1[, string2])'
- , '将会话时区(由TableConfig指定)下的日期时间字符串string1转换为时间戳,格式为string2(默认为''yyyy-MM-dd HH:mm:ss'')。仅在blink planner中支持。'
- , 'TO_TIMESTAMP(${1:})', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 164, 'Function', 'FUN_UDF', 'TIME_FUNCTION', 'NOW()'
- , '返回UTC时区内的当前SQL时间戳。仅在blink planner中支持。', 'NOW()', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 165, 'Function', 'FUN_UDF', 'CONDITIONAL_FUNCTION', 'CASE value
-WHEN value1_1 [, value1_2 ]* THEN result1
-[ WHEN value2_1 [, value2_2 ]* THEN result2 ]*
-[ ELSE resultZ ]
-END'
- , '当第一个时间值包含在(valueX_1, valueX_2,…)中时,返回resultX。如果没有匹配的值,则返回resultZ,否则返回NULL。', 'CASE ${1:}
- WHEN ${2:} THEN ${3:}
- ELSE ${4:}
-END AS ${5:}', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 166, 'Function', 'FUN_UDF', 'CONDITIONAL_FUNCTION', 'CASE
-WHEN condition1 THEN result1
-[ WHEN condition2 THEN result2 ]*
-[ ELSE resultZ ]
-END'
- , '当第一个条件满足时返回resultX。当不满足任何条件时,如果提供了resultZ则返回resultZ,否则返回NULL。', 'CASE WHEN ${1:} THEN ${2:}
- ELSE ${3:}
-END AS ${4:}', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 167, 'Function', 'FUN_UDF', 'CONDITIONAL_FUNCTION', 'NULLIF(value1, value2)'
- , '如果value1等于value2,则返回NULL;否则返回value1。', 'NULLIF(${1:}, ${2:})', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 168, 'Function', 'FUN_UDF', 'CONDITIONAL_FUNCTION', 'COALESCE(value1, value2 [, value3 ]* )'
- , '返回value1, value2, ....中的第一个非空值', 'COALESCE(${1:} )', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 169, 'Function', 'FUN_UDF', 'CONDITIONAL_FUNCTION', 'IF(condition, true_value, false_value)'
- , '如果条件满足则返回true值,否则返回false值。仅在blink planner中支持。', 'IF((${1:}, ${2:}, ${3:})', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 170, 'Function', 'FUN_UDF', 'CONDITIONAL_FUNCTION', 'IS_ALPHA(string)'
- , '如果字符串中所有字符都是字母则返回true,否则返回false。仅在blink planner中支持。', 'IS_ALPHA(${1:})', '1.12', 0
- , 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 171, 'Function', 'FUN_UDF', 'CONDITIONAL_FUNCTION', 'IS_DECIMAL(string)'
- , '如果字符串可以被解析为有效的数字则返回true,否则返回false。仅在blink planner中支持。', 'IS_DECIMAL(${1:})'
- , '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 172, 'Function', 'FUN_UDF', 'CONDITIONAL_FUNCTION', 'IS_DIGIT(string)'
- , '如果字符串中所有字符都是数字则返回true,否则返回false。仅在blink planner中支持。', 'IS_DIGIT(${1:})', '1.12', 0
- , 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 173, 'Function', 'FUN_UDF', 'TYPE_CONVER_FUNCTION', 'CAST(value AS type)'
- , '返回一个要转换为type类型的新值。', 'CAST(${1:} AS ${2:})', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 174, 'Function', 'FUN_UDF', 'COLLECTION_FUNCTION', 'CARDINALITY(array)'
- , '返回数组中元素的数量。', 'CARDINALITY(${1:})', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 175, 'Function', 'FUN_UDF', 'COLLECTION_FUNCTION', 'array ‘[’ integer ‘]’'
- , '返回数组中位于整数位置的元素。索引从1开始。', 'array[${1:}]', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 176, 'Function', 'FUN_UDF', 'COLLECTION_FUNCTION', 'ELEMENT(array)'
- , '返回数组的唯一元素(其基数应为1);如果数组为空,则返回NULL。如果数组有多个元素,则抛出异常。', 'ELEMENT(${1:})'
- , '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 177, 'Function', 'FUN_UDF', 'COLLECTION_FUNCTION', 'CARDINALITY(map)'
- , '返回map中的条目数。', 'CARDINALITY(${1:})', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 178, 'Function', 'FUN_UDF', 'COLLECTION_FUNCTION', 'map ‘[’ value ‘]’'
- , '返回map中key value指定的值。', 'map[${1:}]', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 179, 'Function', 'FUN_UDF', 'VALUE_CONSTRUCTION_FUNCTION', 'ARRAY ‘[’ value1 [, value2 ]* ‘]’'
- , '返回一个由一系列值(value1, value2,…)创建的数组。', 'ARRAY[ ${1:} ]', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 180, 'Function', 'FUN_UDF', 'VALUE_CONSTRUCTION_FUNCTION', 'MAP ‘[’ value1, value2 [, value3, value4 ]* ‘]’'
- , '返回一个从键值对列表((value1, value2), (value3, value4),…)创建的映射。', 'MAP[ ${1:} ]', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 181, 'Function', 'FUN_UDF', 'VALUE_CONSTRUCTION_FUNCTION', 'implicit constructor with parenthesis
-(value1 [, value2]*)'
- , '返回从值列表(value1, value2,…)创建的行。', '(${1:})', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 182, 'Function', 'FUN_UDF', 'VALUE_CONSTRUCTION_FUNCTION', 'explicit ROW constructor
-ROW(value1 [, value2]*)'
- , '返回从值列表(value1, value2,…)创建的行。', 'ROW(${1:}) ', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 183, 'Function', 'FUN_UDF', 'VALUE_ACCESS_FUNCTION', 'tableName.compositeType.field'
- , '按名称从Flink复合类型(例如,Tuple, POJO)中返回一个字段的值。', 'tableName.compositeType.field', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 184, 'Function', 'FUN_UDF', 'VALUE_ACCESS_FUNCTION', 'tableName.compositeType.*'
- , '返回Flink复合类型(例如,Tuple, POJO)的平面表示,它将每个直接子类型转换为一个单独的字段。在大多数情况下,平面表示的字段的名称与原始字段类似,但使用了$分隔符(例如,mypojo$mytuple$f0)。'
- , 'tableName.compositeType.*', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:08:59', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 185, 'Function', 'FUN_UDF', 'GROUP_FUNCTION', 'GROUP_ID()'
- , '返回唯一标识分组键组合的整数', 'GROUP_ID()', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:09:00', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 186, 'Function', 'FUN_UDF', 'GROUP_FUNCTION', 'GROUPING(expression1 [, expression2]* )
-GROUPING_ID(expression1 [, expression2]* )'
- , '返回给定分组表达式的位向量。', 'GROUPING(${1:})', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:09:00', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 187, 'Function', 'FUN_UDF', 'HASH_FUNCTION', 'MD5(string)'
- , '以32位十六进制数字的字符串形式返回string的MD5哈希值;如果字符串为NULL,则返回NULL。', 'MD5(${1:})', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:09:00', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 188, 'Function', 'FUN_UDF', 'HASH_FUNCTION', 'SHA1(string)'
- , '返回字符串的SHA-1散列,作为一个由40个十六进制数字组成的字符串;如果字符串为NULL,则返回NULL', 'SHA1(${1:})'
- , '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:09:00', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 189, 'Function', 'FUN_UDF', 'HASH_FUNCTION', 'SHA224(string)'
- , '以56位十六进制数字的字符串形式返回字符串的SHA-224散列;如果字符串为NULL,则返回NULL。', 'SHA224(${1:})', '1.12'
- , 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:09:00', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 190, 'Function', 'FUN_UDF', 'HASH_FUNCTION', 'SHA256(string)'
- , '以64位十六进制数字的字符串形式返回字符串的SHA-256散列;如果字符串为NULL,则返回NULL。', 'SHA256(${1:})', '1.12'
- , 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:09:00', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 191, 'Function', 'FUN_UDF', 'HASH_FUNCTION', 'SHA384(string)'
- , '以96个十六进制数字的字符串形式返回string的SHA-384散列;如果字符串为NULL,则返回NULL。', 'SHA384(${1:})', '1.12'
- , 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:09:00', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 192, 'Function', 'FUN_UDF', 'HASH_FUNCTION', 'SHA512(string)'
- , '以128位十六进制数字的字符串形式返回字符串的SHA-512散列;如果字符串为NULL,则返回NULL。', 'SHA512(${1:})', '1.12'
- , 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:09:00', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 193, 'Function', 'FUN_UDF', 'HASH_FUNCTION', 'SHA2(string, hashLength)'
- , '使用SHA-2哈希函数族(SHA-224、SHA-256、SHA-384或SHA-512)返回哈希值。第一个参数string是要散列的字符串,第二个参数hashLength是结果的位长度(224、256、384或512)。如果string或hashLength为NULL,则返回NULL。'
- , 'SHA2(${1:}, ${2:})', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:09:00', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 194, 'Function', 'FUN_UDF', 'AGGREGATE_FUNCTION'
- , 'COUNT([ ALL ] expression | DISTINCT expression1 [, expression2]*)'
- , '默认情况下或使用ALL时,返回表达式不为空的输入行数。对每个值的唯一实例使用DISTINCT。', 'COUNT( DISTINCT ${1:})'
- , '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:09:00', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 195, 'Function', 'FUN_UDF', 'AGGREGATE_FUNCTION', 'COUNT(*)
-COUNT(1)'
- , '返回输入行数。', 'COUNT(${1:})', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:09:00', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 196, 'Function', 'FUN_UDF', 'AGGREGATE_FUNCTION', 'AVG([ ALL | DISTINCT ] expression)'
- , '默认情况下,或使用关键字ALL,返回表达式在所有输入行中的平均值(算术平均值)。对每个值的唯一实例使用DISTINCT。'
- , 'AVG(${1:})', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:09:00', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 197, 'Function', 'FUN_UDF', 'AGGREGATE_FUNCTION', 'SUM([ ALL | DISTINCT ] expression)'
- , '默认情况下,或使用关键字ALL,返回所有输入行表达式的和。对每个值的唯一实例使用DISTINCT。', 'SUM(${1:})', '1.12', 0
- , 1
- , '2021-02-22 15:46:48', '2023-12-28 00:09:00', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 198, 'Function', 'FUN_UDF', 'AGGREGATE_FUNCTION', 'MAX([ ALL | DISTINCT ] expression)'
- , '默认情况下或使用关键字ALL,返回表达式在所有输入行中的最大值。对每个值的唯一实例使用DISTINCT。', 'MAX(${1:})'
- , '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:09:00', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 199, 'Function', 'FUN_UDF', 'AGGREGATE_FUNCTION', 'MIN([ ALL | DISTINCT ] expression)'
- , '默认情况下,或使用关键字ALL,返回表达式在所有输入行中的最小值。对每个值的唯一实例使用DISTINCT。', 'MIN(${1:})'
- , '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:09:00', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 200, 'Function', 'FUN_UDF', 'AGGREGATE_FUNCTION', 'STDDEV_POP([ ALL | DISTINCT ] expression)'
- , '默认情况下,或使用关键字ALL,返回表达式在所有输入行中的总体标准差。对每个值的唯一实例使用DISTINCT。'
- , 'STDDEV_POP(${1:})', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:09:00', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 201, 'Function', 'FUN_UDF', 'AGGREGATE_FUNCTION', 'STDDEV_SAMP([ ALL | DISTINCT ] expression)'
- , '默认情况下或使用关键字ALL时,返回表达式在所有输入行中的样本标准差。对每个值的唯一实例使用DISTINCT。'
- , 'STDDEV_SAMP(${1:})', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:09:00', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 202, 'Function', 'FUN_UDF', 'AGGREGATE_FUNCTION', 'VAR_POP([ ALL | DISTINCT ] expression)'
- , '默认情况下,或使用关键字ALL,返回表达式在所有输入行中的总体方差(总体标准差的平方)。对每个值的唯一实例使用DISTINCT。'
- , 'VAR_POP(${1:})', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:09:00', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 203, 'Function', 'FUN_UDF', 'AGGREGATE_FUNCTION', 'VAR_SAMP([ ALL | DISTINCT ] expression)'
- , '默认情况下,或使用关键字ALL,返回表达式在所有输入行中的样本方差(样本标准差的平方)。对每个值的唯一实例使用DISTINCT。'
- , 'VAR_SAMP(${1:})', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:09:00', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 204, 'Function', 'FUN_UDF', 'AGGREGATE_FUNCTION', 'COLLECT([ ALL | DISTINCT ] expression)'
- , '默认情况下,或使用关键字ALL,跨所有输入行返回表达式的多集。空值将被忽略。对每个值的唯一实例使用DISTINCT。'
- , 'COLLECT(${1:})', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:09:00', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 205, 'Function', 'FUN_UDF', 'AGGREGATE_FUNCTION', 'VARIANCE([ ALL | DISTINCT ] expression)'
- , 'VAR_SAMP的同义词。仅在blink planner中支持。', 'VARIANCE(${1:})', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:09:00', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 206, 'Function', 'FUN_UDF', 'AGGREGATE_FUNCTION', 'RANK()'
- , '返回值在一组值中的秩。结果是1加上分区顺序中位于当前行之前或等于当前行的行数。这些值将在序列中产生空白。仅在blink planner中支持。'
- , 'RANK()', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:09:00', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 207, 'Function', 'FUN_UDF', 'AGGREGATE_FUNCTION', 'DENSE_RANK()'
- , '返回值在一组值中的秩。结果是1加上前面分配的秩值。与函数rank不同,dense_rank不会在排序序列中产生空隙。仅在blink planner中支持。'
- , 'DENSE_RANK()', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:09:00', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 208, 'Function', 'FUN_UDF', 'AGGREGATE_FUNCTION', 'ROW_NUMBER()'
- , '根据窗口分区中的行顺序,为每一行分配一个惟一的连续数字,从1开始。仅在blink planner中支持。', 'ROW_NUMBER()'
- , '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:09:00', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 209, 'Function', 'FUN_UDF', 'AGGREGATE_FUNCTION', 'LEAD(expression [, offset] [, default] )'
- , '返回表达式在窗口中当前行之前的偏移行上的值。offset的默认值是1,default的默认值是NULL。仅在blink planner中支持。'
- , 'LEAD(${1:})', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:09:00', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 210, 'Function', 'FUN_UDF', 'AGGREGATE_FUNCTION', 'LAG(expression [, offset] [, default])'
- , '返回表达式的值,该值位于窗口中当前行之后的偏移行。offset的默认值是1,default的默认值是NULL。仅在blink planner中支持。'
- , 'LAG(${1:})', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:09:00', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 211, 'Function', 'FUN_UDF', 'AGGREGATE_FUNCTION', 'FIRST_VALUE(expression)'
- , '返回一组有序值中的第一个值。仅在blink planner中支持。', 'FIRST_VALUE(${1:})', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:09:00', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 212, 'Function', 'FUN_UDF', 'AGGREGATE_FUNCTION', 'LAST_VALUE(expression)'
- , '返回一组有序值中的最后一个值。仅在blink planner中支持。', 'LAST_VALUE(${1:})', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:09:00', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 213, 'Function', 'FUN_UDF', 'AGGREGATE_FUNCTION', 'LISTAGG(expression [, separator])'
- , '连接字符串表达式的值,并在它们之间放置分隔符值。分隔符没有添加在字符串的末尾。分隔符的默认值是'',''。仅在blink planner中支持。'
- , 'LISTAGG(${1:})', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:09:00', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 214, 'Function', 'FUN_UDF', 'COLUMN_FUNCTION', 'withColumns(…)'
- , '选择的列', 'withColumns(${1:})', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:09:00', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 215, 'Function', 'FUN_UDF', 'COLUMN_FUNCTION', 'withoutColumns(…)'
- , '不选择的列', 'withoutColumns(${1:})', '1.12', 0, 1
- , '2021-02-22 15:46:48', '2023-12-28 00:09:00', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 216, 'Function', 'FUN_UDF', 'COMPARE_FUNCTION', 'value1 = value2'
- , '如果value1等于value2 返回true; 如果value1或value2为NULL,则返回UNKNOWN 。', '${1:} =${2:}', '1.12', 9, 1
- , '2021-02-22 10:06:49', '2023-12-28 00:08:58', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 217, 'Function', 'FUN_UDF', 'TABLE_AGGREGATE_FUNCTION', 'TO_MAP(string1,object2[, string3])'
- , '将非规则一维表转化为规则二维表,string1是key。string2是value。string3为非必填项,表示key的值域(维度),用英文逗号分割。'
- , 'TO_MAP(${1:})', '1.12', 8, 1
- , '2021-05-20 19:59:22', '2023-12-28 00:10:10', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 218, 'Reference', 'SQL_TEMPLATE', 'FlinkCDC', 'EXECUTE CDCSOURCE print'
- , 'Whole library synchronization print', 'EXECUTE CDCSOURCE demo_print WITH (
- ''connector'' = ''mysql-cdc'',
- ''hostname'' = ''127.0.0.1'',
- ''port'' = ''3306'',
- ''username'' = ''root'',
- ''password'' = ''123456'',
- ''checkpoint'' = ''10000'',
- ''scan.startup.mode'' = ''initial'',
- ''parallelism'' = ''1'',
- ''table-name'' = ''test\\.student,test\\.score'',
- ''sink.connector'' = ''print''
-);', 'All Versions', 0, 1
- , '2023-10-31 16:01:45', '2023-12-28 00:02:57', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 219, 'Reference', 'SQL_TEMPLATE', 'FlinkCDC', 'EXECUTE CDCSOURCE doris'
- , 'Whole library synchronization doris', 'EXECUTE CDCSOURCE demo_print WITH (
- ''connector'' = ''mysql-cdc'',
- ''hostname'' = ''127.0.0.1'',
- ''port'' = ''3306'',
- ''username'' = ''root'',
- ''password'' = ''123456'',
- ''checkpoint'' = ''10000'',
- ''scan.startup.mode'' = ''initial'',
- ''parallelism'' = ''1'',
- ''table-name'' = ''test\\.student,test\\.score'',
- ''sink.connector'' = ''print''
-);', 'All Versions', 0, 1
- , '2023-10-31 16:02:21', '2023-12-28 00:02:57', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 220, 'Reference', 'SQL_TEMPLATE', 'FlinkCDC', 'EXECUTE CDCSOURCE demo_doris_schema_evolution'
- , 'The entire library is synchronized to doris tape mode evolution', 'EXECUTE CDCSOURCE demo_doris_schema_evolution WITH (
- ''connector'' = ''mysql-cdc'',
- ''hostname'' = ''127.0.0.1'',
- ''port'' = ''3306'',
- ''username'' = ''root'',
- ''password'' = ''123456'',
- ''checkpoint'' = ''10000'',
- ''scan.startup.mode'' = ''initial'',
- ''parallelism'' = ''1'',
- ''table-name'' = ''test\\.student,test\\.score'',
- ''sink.connector'' = ''datastream-doris-schema-evolution'',
- ''sink.fenodes'' = ''127.0.0.1:8030'',
- ''sink.username'' = ''root'',
- ''sink.password'' = ''123456'',
- ''sink.doris.batch.size'' = ''1000'',
- ''sink.sink.max-retries'' = ''1'',
- ''sink.sink.batch.interval'' = ''60000'',
- ''sink.sink.db'' = ''test'',
- ''sink.table.identifier'' = ''${schemaName}.${tableName}''
-);', 'All Versions', 0, 1
- , '2023-10-31 16:04:53', '2023-12-28 00:02:57', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 221, 'Reference', 'SQL_TEMPLATE', 'FlinkCDC', 'EXECUTE CDCSOURCE StarRocks '
- , 'The entire library is synchronized to StarRocks
-', 'EXECUTE CDCSOURCE demo_hudi WITH (
- ''connector'' = ''mysql-cdc'',
- ''hostname'' = ''127.0.0.1'',
- ''port'' = ''3306'',
- ''username'' = ''root'',
- ''password'' = ''123456'',
- ''checkpoint'' = ''10000'',
- ''scan.startup.mode'' = ''initial'',
- ''parallelism'' = ''1'',
- ''database-name''=''bigdata'',
- ''table-name''=''bigdata\\.products,bigdata\\.orders'',
- ''sink.connector''=''hudi'',
- ''sink.path''=''hdfs://nameservice1/data/hudi/${tableName}'',
- ''sink.hoodie.datasource.write.recordkey.field''=''${pkList}'',
- ''sink.hoodie.parquet.max.file.size''=''268435456'',
- ''sink.write.tasks''=''1'',
- ''sink.write.bucket_assign.tasks''=''2'',
- ''sink.write.precombine''=''true'',
- ''sink.compaction.async.enabled''=''true'',
- ''sink.write.task.max.size''=''1024'',
- ''sink.write.rate.limit''=''3000'',
- ''sink.write.operation''=''upsert'',
- ''sink.table.type''=''COPY_ON_WRITE'',
- ''sink.compaction.tasks''=''1'',
- ''sink.compaction.delta_seconds''=''20'',
- ''sink.compaction.async.enabled''=''true'',
- ''sink.read.streaming.skip_compaction''=''true'',
- ''sink.compaction.delta_commits''=''20'',
- ''sink.compaction.trigger.strategy''=''num_or_time'',
- ''sink.compaction.max_memory''=''500'',
- ''sink.changelog.enabled''=''true'',
- ''sink.read.streaming.enabled''=''true'',
- ''sink.read.streaming.check.interval''=''3'',
- ''sink.hive_sync.skip_ro_suffix'' = ''true'',
- ''sink.hive_sync.enable''=''true'',
- ''sink.hive_sync.mode''=''hms'',
- ''sink.hive_sync.metastore.uris''=''thrift://bigdata1:9083'',
- ''sink.hive_sync.db''=''qhc_hudi_ods'',
- ''sink.hive_sync.table''=''${tableName}'',
- ''sink.table.prefix.schema''=''true''
-);', 'All Versions', 0, 1
- , '2023-10-31 16:05:50', '2023-12-28 00:02:57', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 222, 'Reference', 'SQL_TEMPLATE', 'FlinkCDC', 'EXECUTE CDCSOURCE cdc_mysql'
- , 'The entire library is synchronized to mysql', 'EXECUTE CDCSOURCE demo_startrocks WITH (
- ''connector'' = ''mysql-cdc'',
- ''hostname'' = ''127.0.0.1'',
- ''port'' = ''3306'',
- ''username'' = ''root'',
- ''password'' = ''123456'',
- ''checkpoint'' = ''3000'',
- ''scan.startup.mode'' = ''initial'',
- ''parallelism'' = ''1'',
- ''table-name'' = ''bigdata\\.products,bigdata\\.orders'',
- ''sink.connector'' = ''starrocks'',
- ''sink.jdbc-url'' = ''jdbc:mysql://127.0.0.1:19035'',
- ''sink.load-url'' = ''127.0.0.1:18035'',
- ''sink.username'' = ''root'',
- ''sink.password'' = ''123456'',
- ''sink.sink.db'' = ''ods'',
- ''sink.table.prefix'' = ''ods_'',
- ''sink.table.lower'' = ''true'',
- ''sink.database-name'' = ''ods'',
- ''sink.table-name'' = ''${tableName}'',
- ''sink.sink.properties.format'' = ''json'',
- ''sink.sink.properties.strip_outer_array'' = ''true'',
- ''sink.sink.max-retries'' = ''10'',
- ''sink.sink.buffer-flush.interval-ms'' = ''15000'',
- ''sink.sink.parallelism'' = ''1''
-);', 'All Versions', 0, 1
- , '2023-10-31 16:07:08', '2023-12-28 00:02:57', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 223, 'Reference', 'SQL_TEMPLATE', 'FlinkCDC', 'EXECUTE CDCSOURCE demo_doris'
- , 'The entire library is synchronized to mysql', 'EXECUTE CDCSOURCE cdc_mysql WITH (
- ''connector'' = ''mysql-cdc'',
- ''hostname'' = ''127.0.0.1'',
- ''port'' = ''3306'',
- ''username'' = ''root'',
- ''password'' = ''123456'',
- ''checkpoint'' = ''3000'',
- ''scan.startup.mode'' = ''initial'',
- ''parallelism'' = ''1'',
- ''table-name'' = ''bigdata\\.products,bigdata\\.orders'',
- ''sink.connector'' = ''jdbc'',
- ''sink.url'' = ''jdbc:mysql://127.0.0.1:3306/test?characterEncoding=utf-8&useSSL=false'',
- ''sink.username'' = ''root'',
- ''sink.password'' = ''123456'',
- ''sink.sink.db'' = ''test'',
- ''sink.table.prefix'' = ''test_'',
- ''sink.table.lower'' = ''true'',
- ''sink.table-name'' = ''${tableName}'',
- ''sink.driver'' = ''com.mysql.jdbc.Driver'',
- ''sink.sink.buffer-flush.interval'' = ''2s'',
- ''sink.sink.buffer-flush.max-rows'' = ''100'',
- ''sink.sink.max-retries'' = ''5'',
- ''sink.auto.create'' = ''true''
-);', 'All Versions', 0, 1
- , '2023-10-31 16:07:47', '2023-12-28 00:02:57', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 224, 'Reference', 'SQL_TEMPLATE', 'FlinkCDC', 'EXECUTE CDCSOURCE cdc_oracle'
- , 'The entire library is synchronized to cdc_oracle', 'EXECUTE CDCSOURCE cdc_oracle WITH (
- ''connector'' = ''oracle-cdc'',
- ''hostname'' = ''127.0.0.1'',
- ''port'' = ''1521'',
- ''username''=''root'',
- ''password''=''123456'',
- ''database-name''=''ORCL'',
- ''checkpoint'' = ''3000'',
- ''scan.startup.mode'' = ''initial'',
- ''parallelism'' = ''1'',
- ''table-name'' = ''TEST\\..*'',
- ''connector'' = ''jdbc'',
- ''url'' = ''jdbc:oracle:thin:@127.0.0.1:1521:orcl'',
- ''username'' = ''root'',
- ''password'' = ''123456'',
- ''table-name'' = ''TEST2.${tableName}''
-);', 'All Versions', 0, 1
- , '2023-10-31 16:08:30', '2023-12-28 00:02:57', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 225, 'Reference', 'SQL_TEMPLATE', 'FlinkCDC', 'EXECUTE CDCSOURCE cdc_kafka_one'
- , 'The entire library is synchronized to a topic in kafka', 'EXECUTE CDCSOURCE cdc_kafka_one WITH (
- ''connector'' = ''mysql-cdc'',
- ''hostname'' = ''127.0.0.1'',
- ''port'' = ''3306'',
- ''username'' = ''root'',
- ''password'' = ''123456'',
- ''checkpoint'' = ''3000'',
- ''scan.startup.mode'' = ''initial'',
- ''parallelism'' = ''1'',
- ''table-name'' = ''bigdata\\.products,bigdata\\.orders'',
- ''sink.connector''=''datastream-kafka'',
- ''sink.topic''=''cdctest'',
- ''sink.brokers''=''bigdata2:9092,bigdata3:9092,bigdata4:9092''
-);', 'All Versions', 0, 1
- , '2023-10-31 16:10:13', '2023-12-28 00:02:57', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 226, 'Reference', 'SQL_TEMPLATE', 'FlinkCDC', 'EXECUTE CDCSOURCE cdc_kafka_mul'
- , 'The entire library is synchronized to a single topic in kafka', 'EXECUTE CDCSOURCE cdc_kafka_mul WITH (
- ''connector'' = ''mysql-cdc'',
- ''hostname'' = ''127.0.0.1'',
- ''port'' = ''3306'',
- ''username'' = ''root'',
- ''password'' = ''123456'',
- ''checkpoint'' = ''3000'',
- ''scan.startup.mode'' = ''initial'',
- ''parallelism'' = ''1'',
- ''table-name'' = ''bigdata\\.products,bigdata\\.orders'',
- ''sink.connector''=''datastream-kafka'',
- ''sink.brokers''=''bigdata2:9092,bigdata3:9092,bigdata4:9092''
-)', 'All Versions', 0, 1
- , '2023-10-31 16:10:59', '2023-12-28 00:02:57', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 227, 'Reference', 'SQL_TEMPLATE', 'FlinkCDC', 'EXECUTE CDCSOURCE cdc_upsert_kafka'
- , 'The entire library is synchronized to kafka primary key mode', 'EXECUTE CDCSOURCE cdc_upsert_kafka WITH (
- ''connector'' = ''mysql-cdc'',
- ''hostname'' = ''127.0.0.1'',
- ''port'' = ''3306'',
- ''username'' = ''root'',
- ''password'' = ''123456'',
- ''checkpoint'' = ''3000'',
- ''scan.startup.mode'' = ''initial'',
- ''parallelism'' = ''1'',
- ''table-name'' = ''bigdata\\.products,bigdata\\.orders'',
- ''sink.connector'' = ''upsert-kafka'',
- ''sink.topic'' = ''${tableName}'',
- ''sink.properties.bootstrap.servers'' = ''bigdata2:9092,bigdata3:9092,bigdata4:9092'',
- ''sink.key.format'' = ''json'',
- ''sink.value.format'' = ''json''
-);', 'All Versions', 0, 1
- , '2023-10-31 16:12:14', '2023-12-28 00:02:57', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 228, 'Reference', 'SQL_TEMPLATE', 'FlinkCDC', 'EXECUTE CDCSOURCE cdc_postgresql '
- , 'The entire library is synchronized to postgresql', 'EXECUTE CDCSOURCE cdc_postgresql WITH (
- ''connector'' = ''mysql-cdc'',
- ''hostname'' = ''127.0.0.1'',
- ''port'' = ''3306'',
- ''username'' = ''root'',
- ''password'' = ''123456'',
- ''checkpoint'' = ''3000'',
- ''scan.startup.mode'' = ''initial'',
- ''parallelism'' = ''1'',
- ''table-name'' = ''bigdata\\.products,bigdata\\.orders'',
- ''sink.connector'' = ''jdbc'',
- ''sink.url'' = ''jdbc:postgresql://127.0.0.1:5432/test'',
- ''sink.username'' = ''test'',
- ''sink.password'' = ''123456'',
- ''sink.sink.db'' = ''test'',
- ''sink.table.prefix'' = ''test_'',
- ''sink.table.lower'' = ''true'',
- ''sink.table-name'' = ''${tableName}'',
- ''sink.driver'' = ''org.postgresql.Driver'',
- ''sink.sink.buffer-flush.interval'' = ''2s'',
- ''sink.sink.buffer-flush.max-rows'' = ''100'',
- ''sink.sink.max-retries'' = ''5''
-)', 'All Versions', 0, 1
- , '2023-10-31 16:12:54', '2023-12-28 00:02:57', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 229, 'Reference', 'SQL_TEMPLATE', 'FlinkCDC', 'EXECUTE CDCSOURCE cdc_clickhouse'
- , 'Sync the entire library to clickhouse', 'EXECUTE CDCSOURCE cdc_clickhouse WITH (
- ''connector'' = ''mysql-cdc'',
- ''hostname'' = ''127.0.0.1'',
- ''port'' = ''3306'',
- ''username'' = ''root'',
- ''password'' = ''123456'',
- ''checkpoint'' = ''3000'',
- ''scan.startup.mode'' = ''initial'',
- ''parallelism'' = ''1'',
- ''table-name'' = ''bigdata\\.products,bigdata\\.orders'',
- ''sink.connector'' = ''clickhouse'',
- ''sink.url'' = ''clickhouse://127.0.0.1:8123'',
- ''sink.username'' = ''default'',
- ''sink.password'' = ''123456'',
- ''sink.sink.db'' = ''test'',
- ''sink.table.prefix'' = ''test_'',
- ''sink.table.lower'' = ''true'',
- ''sink.database-name'' = ''test'',
- ''sink.table-name'' = ''${tableName}'',
- ''sink.sink.batch-size'' = ''500'',
- ''sink.sink.flush-interval'' = ''1000'',
- ''sink.sink.max-retries'' = ''3''
-);', 'All Versions', 0, 1
- , '2023-10-31 16:13:33', '2023-12-28 00:02:57', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 230, 'Reference', 'SQL_TEMPLATE', 'FlinkCDC', 'EXECUTE CDCSOURCE mysql2hive'
- , 'The entire library is synchronized to the sql-catalog of hive', 'EXECUTE CDCSOURCE mysql2hive WITH (
- ''connector'' = ''mysql-cdc'',
- ''hostname'' = ''127.0.0.1'',
- ''port'' = ''3306'',
- ''username'' = ''root'',
- ''password'' = ''123456'',
- ''checkpoint'' = ''10000'',
- ''scan.startup.mode'' = ''initial'',
- ''parallelism'' = ''1'',
- ''table-name'' = ''test\\..*'',
- ''sink.connector'' = ''sql-catalog'',
- ''sink.catalog.name'' = ''hive'',
- ''sink.catalog.type'' = ''hive'',
- ''sink.default-database'' = ''hdb'',
- ''sink.hive-conf-dir'' = ''/usr/local/dlink/hive-conf''
-);', 'All Versions', 0, 1
- , '2023-10-31 16:14:31', '2023-12-28 00:02:57', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 231, 'Reference', 'SQL_TEMPLATE', 'FlinkCDC', 'EXECUTE CDCSOURCE mysql2paimon'
- , 'The entire library is synchronized to paimon', 'EXECUTE CDCSOURCE mysql2paimon WITH (
- ''connector'' = ''mysql-cdc'',
- ''hostname'' = ''127.0.0.1'',
- ''port'' = ''3306'',
- ''username'' = ''root'',
- ''password'' = ''123456'',
- ''checkpoint'' = ''10000'',
- ''scan.startup.mode'' = ''initial'',
- ''parallelism'' = ''1'',
- ''table-name'' = ''test\\..*'',
- ''sink.connector'' = ''sql-catalog'',
- ''sink.catalog.name'' = ''fts'',
- ''sink.catalog.type'' = ''table-store'',
- ''sink.catalog.warehouse''=''file:/tmp/table_store''
-);', 'All Versions', 0, 1
- , '2023-10-31 16:15:22', '2023-12-28 00:02:57', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 232, 'Reference', 'SQL_TEMPLATE', 'FlinkCDC', 'EXECUTE CDCSOURCE mysql2dinky_catalog'
- , 'The entire library is synchronized to dinky''s built-in catalog', 'EXECUTE CDCSOURCE mysql2dinky_catalog WITH (
- ''connector'' = ''mysql-cdc'',
- ''hostname'' = ''127.0.0.1'',
- ''port'' = ''3306'',
- ''username'' = ''root'',
- ''password'' = ''123456'',
- ''checkpoint'' = ''10000'',
- ''scan.startup.mode'' = ''initial'',
- ''parallelism'' = ''1'',
- ''table-name'' = ''test\\..*'',
- ''sink.connector'' = ''sql-catalog'',
- ''sink.catalog.name'' = ''dlinkmysql'',
- ''sink.catalog.type'' = ''dlink_mysql'',
- ''sink.catalog.username'' = ''dlink'',
- ''sink.catalog.password'' = ''dlink'',
- ''sink.catalog.url'' = ''jdbc:mysql://127.0.0.1:3306/dlink?useUnicode=true&characterEncoding=utf8&serverTimezone=UTC'',
- ''sink.sink.db'' = ''default_database''
-);', 'All Versions', 0, 1
- , '2023-10-31 16:16:22', '2023-12-28 00:02:57', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 233, 'Reference', 'SQL_TEMPLATE', 'FlinkCDC', 'EXECUTE CDCSOURCE mysql2multiple_sink'
- , 'Synchronization of the entire library to multiple data sources (sink)', 'EXECUTE CDCSOURCE mysql2multiple_sink WITH (
- ''connector'' = ''mysql-cdc'',
- ''hostname'' = ''127.0.0.1'',
- ''port'' = ''3306'',
- ''username'' = ''root'',
- ''password'' = ''123456'',
- ''checkpoint'' = ''3000'',
- ''scan.startup.mode'' = ''initial'',
- ''parallelism'' = ''1'',
- ''table-name'' = ''test\\.student,test\\.score'',
- ''sink[0].connector'' = ''doris'',
- ''sink[0].fenodes'' = ''127.0.0.1:8030'',
- ''sink[0].username'' = ''root'',
- ''sink[0].password'' = ''dw123456'',
- ''sink[0].sink.batch.size'' = ''1'',
- ''sink[0].sink.max-retries'' = ''1'',
- ''sink[0].sink.batch.interval'' = ''60000'',
- ''sink[0].sink.db'' = ''test'',
- ''sink[0].table.prefix'' = ''ODS_'',
- ''sink[0].table.upper'' = ''true'',
- ''sink[0].table.identifier'' = ''${schemaName}.${tableName}'',
- ''sink[0].sink.label-prefix'' = ''${schemaName}_${tableName}_1'',
- ''sink[0].sink.enable-delete'' = ''true'',
- ''sink[1].connector''=''datastream-kafka'',
- ''sink[1].topic''=''cdc'',
- ''sink[1].brokers''=''127.0.0.1:9092''
-)', 'All Versions', 0, 1
- , '2023-10-31 16:17:27', '2023-12-28 00:02:57', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 235, 'Function', 'Other', 'Other', 'SHOW FRAGMENTS'
- , 'SHOW FRAGMENTS', 'SHOW FRAGMENTS;', 'All Versions', 0, 1
- , '2023-10-31 16:20:30', '2023-12-28 09:57:55', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 236, 'Function', 'Other', 'Other', 'SHOW FRAGMENT var1'
- , 'SHOW FRAGMENT var1', 'SHOW FRAGMENT ${1:};', 'All Versions', 0, 1
- , '2023-10-31 16:21:23', '2023-12-28 09:57:54', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 237, 'Reference', 'SQL_TEMPLATE', 'FlinkCDC', 'EXECUTE CDCSOURCE demo_hudi'
- , 'The entire library is synchronized to hudi', 'EXECUTE CDCSOURCE demo_hudi WITH (
- ''connector'' = ''mysql-cdc'',
- ''hostname'' = ''127.0.0.1'',
- ''port'' = ''3306'',
- ''username'' = ''root'',
- ''password'' = ''123456'',
- ''checkpoint'' = ''10000'',
- ''scan.startup.mode'' = ''initial'',
- ''parallelism'' = ''1'',
- ''database-name''=''bigdata'',
- ''table-name''=''bigdata\\.products,bigdata\\.orders'',
- ''sink.connector''=''hudi'',
- ''sink.path''=''hdfs://nameservice1/data/hudi/${tableName}'',
- ''sink.hoodie.datasource.write.recordkey.field''=''${pkList}'',
- ''sink.hoodie.parquet.max.file.size''=''268435456'',
- ''sink.write.tasks''=''1'',
- ''sink.write.bucket_assign.tasks''=''2'',
- ''sink.write.precombine''=''true'',
- ''sink.compaction.async.enabled''=''true'',
- ''sink.write.task.max.size''=''1024'',
- ''sink.write.rate.limit''=''3000'',
- ''sink.write.operation''=''upsert'',
- ''sink.table.type''=''COPY_ON_WRITE'',
- ''sink.compaction.tasks''=''1'',
- ''sink.compaction.delta_seconds''=''20'',
- ''sink.compaction.async.enabled''=''true'',
- ''sink.read.streaming.skip_compaction''=''true'',
- ''sink.compaction.delta_commits''=''20'',
- ''sink.compaction.trigger.strategy''=''num_or_time'',
- ''sink.compaction.max_memory''=''500'',
- ''sink.changelog.enabled''=''true'',
- ''sink.read.streaming.enabled''=''true'',
- ''sink.read.streaming.check.interval''=''3'',
- ''sink.hive_sync.skip_ro_suffix'' = ''true'',
- ''sink.hive_sync.enable''=''true'',
- ''sink.hive_sync.mode''=''hms'',
- ''sink.hive_sync.metastore.uris''=''thrift://bigdata1:9083'',
- ''sink.hive_sync.db''=''qhc_hudi_ods'',
- ''sink.hive_sync.table''=''${tableName}'',
- ''sink.table.prefix.schema''=''true''
-);', 'All Versions', 0, 1
- , '2023-10-31 16:24:47', '2023-12-28 00:02:57', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 238, 'Reference', 'SQL_TEMPLATE', 'FlinkJar', 'EXECUTE JAR '
- , 'EXECUTE JAR use sql', 'EXECUTE JAR WITH (
-''uri''=''rs:///jar/flink/demo/SocketWindowWordCount.jar'',
-''main-class''=''org.apache.flink.streaming.examples.socket'',
-''args''='' --hostname localhost '',
-''parallelism''='''',
-''savepoint-path''=''''
-);', 'All Versions', 0, 1
- , '2023-10-31 16:27:53', '2023-12-28 09:57:54', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 239, 'Reference', 'FUN_UDF', 'OTHER_FUNCTION', 'PRINT tablename'
- , 'PRINT table data', 'PRINT ${1:}', 'All Versions', 0, 1
- , '2023-10-31 16:30:22', '2023-12-28 00:09:39', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 240, 'Reference', 'SQL_TEMPLATE', 'FlinkSql', 'CREATE TABLE Like'
- , 'CREATE TABLE Like source table', 'DROP TABLE IF EXISTS sink_table;
-CREATE TABLE IF not EXISTS sink_table
-WITH (
- ''topic'' = ''motor_vehicle_error''
-)
-LIKE source_table;', 'All Versions', 0, 1
- , '2023-10-31 16:33:38', '2023-12-28 00:02:57', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 241, 'Reference', 'SQL_TEMPLATE', 'FlinkSql', 'CREATE TABLE like source_table EXCLUDING'
- , 'CREATE TABLE like source_table EXCLUDING', 'DROP TABLE IF EXISTS sink_table;
-CREATE TABLE IF not EXISTS sink_table(
- -- Add watermark definition
- WATERMARK FOR order_time AS order_time - INTERVAL ''5'' SECOND
-)
-WITH (
- ''topic'' = ''motor_vehicle_error''
-)
-LIKE source_table (
- -- Exclude everything besides the computed columns which we need to generate the watermark for.
- -- We do not want to have the partitions or filesystem options as those do not apply to kafka.
- EXCLUDING ALL
- INCLUDING GENERATED
-);', 'All Versions', 0, 1
- , '2023-10-31 16:36:13', '2023-12-28 00:02:57', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 242, 'Reference', 'SQL_TEMPLATE', 'FlinkSql', 'CREATE TABLE ctas_kafka'
- , 'CREATE TABLE ctas_kafka', 'CREATE TABLE my_ctas_table
-WITH (
- ''connector'' = ''kafka''
-)
-AS SELECT id, name, age FROM source_table WHERE mod(id, 10) = 0;', 'All Versions', 0, 1
- , '2023-10-31 16:37:33', '2023-12-28 00:02:57', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 243, 'Reference', 'SQL_TEMPLATE', 'FlinkSql', 'CREATE TABLE rtas_kafka'
- , 'CREATE TABLE rtas_kafka', 'CREATE OR REPLACE TABLE my_ctas_table
-WITH (
- ''connector'' = ''kafka''
-)
-AS SELECT id, name, age FROM source_table WHERE mod(id, 10) = 0;', 'All Versions', 0, 1
- , '2023-10-31 16:41:46', '2023-12-28 00:02:57', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 244, 'Reference', 'SQL_TEMPLATE', 'FlinkSql', 'datagen job demo'
- , 'datagen job demo', 'DROP TABLE IF EXISTS source_table3;
-CREATE TABLE IF NOT EXISTS source_table3(
---订单id
-`order_id` BIGINT,
---产品
-
-`product` BIGINT,
---金额
-`amount` BIGINT,
-
---支付时间
-`order_time` as CAST(CURRENT_TIMESTAMP AS TIMESTAMP(3)), -- `在这里插入代码片`
---WATERMARK
-WATERMARK FOR order_time AS order_time - INTERVAL ''2'' SECOND
-) WITH(
-''connector'' = ''datagen'',
- ''rows-per-second'' = ''1'',
- ''fields.order_id.min'' = ''1'',
- ''fields.order_id.max'' = ''2'',
- ''fields.amount.min'' = ''1'',
- ''fields.amount.max'' = ''10'',
- ''fields.product.min'' = ''1'',
- ''fields.product.max'' = ''2''
-);
-
--- SELECT * FROM source_table3 LIMIT 10;
-
-DROP TABLE IF EXISTS sink_table5;
-CREATE TABLE IF NOT EXISTS sink_table5(
---产品
-`product` BIGINT,
---金额
-`amount` BIGINT,
---支付时间
-`order_time` TIMESTAMP(3),
---1分钟时间聚合总数
-`one_minute_sum` BIGINT
-) WITH(
-''connector''=''print''
-);
-
-INSERT INTO sink_table5
-SELECT
-product,
-amount,
-order_time,
-SUM(amount) OVER(
-PARTITION BY product
-ORDER BY order_time
--- 标识统计范围是1个 product 的最近 1 分钟的数据
-RANGE BETWEEN INTERVAL ''1'' MINUTE PRECEDING AND CURRENT ROW
-) as one_minute_sum
-FROM source_table3;', 'All Versions', 0, 1
- , '2023-11-15 15:42:16', '2023-12-28 00:02:57', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 245, 'Reference', 'SQL_TEMPLATE', 'FlinkSql', 'checkpoint config'
- , 'checkpoint config', '-- 声明一些调优参数 (checkpoint 等相关配置)
-set ''execution.checkpointing.checkpoints-after-tasks-finish.enabled'' =''true'';
-SET ''pipeline.operator-chaining'' = ''false'';
-set ''state.savepoints.dir''=''file:///opt/data/flink_cluster/savepoints''; -- 目录自行修改
-set ''state.checkpoints.dir''= ''file:///opt/data/flink_cluster/checkpoints''; -- 目录自行修改
--- set state.checkpoint-storage=''filesystem'';
-set ''state.backend.type''=''rocksdb'';
-set ''execution.checkpointing.interval''=''60 s'';
-set ''state.checkpoints.num-retained''=''100'';
--- 使 solt 均匀分布在 各个 TM 上
-set ''cluster.evenly-spread-out-slots''=''true'';', 'All Versions', 0, 1
- , '2023-11-15 15:57:42', '2023-12-28 15:49:20', NULL, NULL);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 246, 'Reference', 'SQL_TEMPLATE', 'FlinkSql', 'note template'
- , 'note template', '
--- -----------------------------------------------------------------
--- @Description(作业描述): ${1:}
--- @Creator(创建人): ${2:}
--- @Create DateTime(创建时间): ${3:}
--- -----------------------------------------------------------------
-${4:}
-', 'All Versions', 0, 1
- , '2023-11-17 17:03:24', '2023-12-28 12:05:20', 1, 1);
-INSERT INTO dinky_flink_document ( id, category, type, subtype, name
- , description, fill_value, version, like_num, enabled
- , create_time, update_time, creator, updater)
-VALUES ( 247, 'Reference', 'SQL_TEMPLATE', 'FlinkSql', 'dinky_paimon_auto_create_table'
- , 'dinky paimon auto create table', '-- -----------------------------------------------------------------
--- 该 demo 用于创建 mysql-cdc 到 paimon 的整库同步案例 并使用自动建表,注意 #{schemaName} 和 #{tableName} 为固定写法,不要修改,用于动态获取库名和表名
--- -----------------------------------------------------------------
-
-
-EXECUTE CDCSOURCE dinky_paimon_auto_create_table
-WITH
- (
- ''connector'' = ''mysql-cdc'',
- ''hostname'' = '''',
- ''port'' = '''',
- ''username'' = '''',
- ''password'' = '''',
- ''checkpoint'' = ''10000'',
- ''parallelism'' = ''1'',
- ''scan.startup.mode'' = ''initial'',
- ''database-name'' = ''dinky'',
- ''sink.connector'' = ''paimon'',
- ''sink.path'' = ''hdfs:/tmp/paimon/#{schemaName}.db/#{tableName}'',
- ''sink.auto-create'' = ''true'',
- );', 'All Versions', 0, 1
- , '2023-12-27 16:53:37', '2023-12-28 12:05:20', 1, 1);
-insert into dinky_flink_document (id, category, type, subtype, name, description, fill_value, version, like_num, enabled, create_time, update_time, creator, updater) values (248, 'Variable', 'FUN_UDF', 'OTHER_FUNCTION', 'ADD-CUSTOMJAR', 'add CUSTOMJAR 为 Dinky 扩展语法 功能实现和 add jar 类似 , 推荐使用此方式', '-- add CUSTOMJAR 为 Dinky 扩展语法 功能实现和 add jar 类似 , 推荐使用此方式
-ADD CUSTOMJAR ''${1:}'';', 'All Versions', 0, 1, '2023-12-28 10:50:17', '2024-03-01 17:15:44', 1, 1);
-insert into dinky_flink_document (id, category, type, subtype, name, description, fill_value, version, like_num, enabled, create_time, update_time, creator, updater) values (249, 'Variable', 'FUN_UDF', 'OTHER_FUNCTION', 'ADD-FILE', 'ADD FILE 为 Dinky 扩展语法 可以向环境中添加依赖jar(与ADD CUSTOMJAR 一致) 还可以添加其他类型的文件
-', '-- ADD FILE 为 Dinky 扩展语法 可以向环境中添加依赖jar(与add customjar 一致) 还可以添加其他类型的文件
-ADD FILE ''${1:}''; -- str path ', 'All Versions', 0, 1, '2024-03-01 17:13:05', '2024-03-01 17:15:55', 1, 1);
-
-
-
-
-INSERT INTO `dinky_udf_template`
-VALUES ( 1, 'java_udf', 'Java', 'UDF', '${(package=='''')?string('''',''package ''+package+'';'')}
-
-import org.apache.flink.table.functions.ScalarFunction;
-
-public class ${className} extends ScalarFunction {
- public String eval(String s) {
- return null;
- }
-}'
- , 1, '2022-10-19 09:17:37', '2022-10-25 17:45:57', null, null);
-INSERT INTO `dinky_udf_template`
-VALUES ( 2, 'java_udtf', 'Java', 'UDTF', '${(package=='''')?string('''',''package ''+package+'';'')}
-
-import org.apache.flink.table.functions.ScalarFunction;
-
-@FunctionHint(output = @DataTypeHint("ROW