Giter Site home page Giter Site logo

xiuminglee / mdsl Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 798 KB

✨打造一套特定的类SQL语言,通过Antlr解析,自定义生成特定的分析代码(Flink/Spark/ML.....)。🕸️

License: GNU General Public License v2.0

Java 96.36% ANTLR 3.64%

mdsl's Introduction

MDSL

✨打造一套特定的类SQL语言,通过Antlr解析,自定义生成特定的分析代码(Flink/Spark/ML.....)。🕸️

步骤

### 1、使用什么解释器
use interpreter spark;

### 2、创建数据源
creat table table_name (
	xxx int,
	xxx string,
) with (
	'connector' = 'hive',
	xxx = xxx
);

### 3、特征工程
transform into table_name_b
select xxxx,COUNT(*) as bbb from table_name_a where xxx = xxx;

### 4、创建模型(待补充antlr)
create or replace model model_name 
options(xxx=xxx) as ....;

### 5、使用模型进行预测(待补充antlr)
predict into table_name_c
select a,b,c from ml.predict(model `model_name`,select d,e,f from t1); 

### 6、保存数据
INSERT { INTO | OVERWRITE } [catalog_name.][db_name.]table_name [PARTITION part_spec] [column_list] 
select_statement

### (待定)是否需要一个查看语句?例如:
show select xxxx,COUNT(*) as bbb from table_name_a where xxx = xxx;

参考

mdsl's People

Contributors

xiuminglee avatar

Stargazers

huwei001 avatar gemo12123 avatar Mrain avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

kangzhenkang

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.