[improvement][project] global refactor , code format , support llm , support fuzzy detect ,support query filter and so on.

This commit is contained in:
lexluo
2023-07-08 15:00:03 +08:00
parent 5ffd617431
commit 404163f391
329 changed files with 21050 additions and 5036 deletions

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>launchers</artifactId>

View File

@@ -18,6 +18,6 @@ spring:
data: classpath:db/semantic-data-h2.sql
authentication:
enable: true
enable: false
exclude:
path: /api/auth/user/register,/api/auth/user/login

View File

@@ -84,6 +84,7 @@ CREATE TABLE IF NOT EXISTS `s2_metric` (
`updated_by` varchar(100) NOT NULL ,
`data_format_type` varchar(50) DEFAULT NULL ,
`data_format` varchar(500) DEFAULT NULL,
`alias` varchar(500) DEFAULT NULL,
PRIMARY KEY (`id`)
);
COMMENT ON TABLE s2_metric IS 'metric information table';
@@ -106,6 +107,8 @@ CREATE TABLE IF NOT EXISTS `s2_dimension` (
`updated_at` TIMESTAMP NOT NULL ,
`updated_by` varchar(100) NOT NULL ,
`semantic_type` varchar(20) NOT NULL, -- semantic type: DATE, ID, CATEGORY
`alias` varchar(500) DEFAULT NULL,
`default_values` varchar(500) DEFAULT NULL,
PRIMARY KEY (`id`)
);
COMMENT ON TABLE s2_dimension IS 'dimension information table';

View File

@@ -1,22 +0,0 @@
data_source:
name: s2_stay_time_statis
sql_query: select imp_date,page,stay_hours from s2_stay_time_statis
identifiers:
- name: sys_imp_date
type: primary
expr: imp_date
- name: user_name
type: primary
dimensions:
- name: page
type: categorical
- name: imp_date
type: time
type_params:
is_primary: True
time_granularity: day
measures:
- name: stay_hours
agg: sum
expr: stay_hours
create_metric: True

View File

@@ -1,26 +0,0 @@
data_source:
name: s2_pv_uv_statis
sql_query: select imp_date,user_name from s2_pv_uv_statis
identifiers:
- name: sys_imp_date
type: primary
expr: imp_date
- name: user_name
type: primary
dimensions:
- name: page
type: categorical
- name: sys_imp_date
type: time
type_params:
is_primary: True
time_granularity: day
measures:
- name: uv
agg: count_distinct
expr: user_name
create_metric: True
- name: pv
agg: sum
expr: 1
create_metric: True