前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >The next goal of MLSQL Stack

The next goal of MLSQL Stack

作者头像
用户2936994
发布2019-05-24 09:40:43
4260
发布2019-05-24 09:40:43
举报
文章被收录于专栏:祝威廉祝威廉

MLSQL is a SQL-Based language and MLSQL Stack is a platform including many systems which provide you the ability to do OLAP, ETL, Stream, Machine Learning jobs. In MLSQL Console, you can access almost any data which MLSQL give you the column-level visiting control in most populate storages and process them in distribute. Also, you can integrate any API to make your computing more efficiency and intelligence. With the include and micro support, you can reuse your work in a more high level than normal language e.g. Python, Scala, Java.

We will try to build three systems which help people easier to resolve their problems when they work.

DataSource Repository.

Since we hope people can easy to connect any data storage(e.g. MySQL, ElasticSearch, HBase....) but we can not package all connector jars into MLSQL Engine prebuild distribution. To resolve this question, we provide a remote DataSource repository service, people can use the following command line to add Datasource connector at runtime.

代码语言:javascript
复制
!connector add mongodb;

API Market

You can use MLSQL to invoke any API with function:

代码语言:javascript
复制
select crawler_request_image(image_url) as imageBin,mdImage 
from imageUrls 
as imageBins;

function crawler_request_image will send an HTTP request to get bytes of the image from image_url.

Or you can load data from API then process them as a table:

代码语言:javascript
复制
load json.`http://api..../data` as newTable;

So we can give people an API market , and at the same time, a function / datasource to help people use the API will also be provided. For example, suppose we have API provide spark news, you can use it like this:

代码语言:javascript
复制
load market.`/category/news/spark` as sparkNews;

MLSQL Script Store

Suppose you have a hello world script like this:

代码语言:javascript
复制
set name="" where type="defaultParam";
select "hello ${name}" as echo as output;

You want to provide this script as a command, e.g echo, you can do like this:

代码语言:javascript
复制
set echo='''
select "hello {}" as echo as output
''';

Suppose you put the script in store/forfun/echo.mslql, then others can use it with include statement:

代码语言:javascript
复制
include store.`forfun/echo.mlsql`;
!echo "jack";

We hope when more and more people use MLSQL Stack, and they can share their genius script to benefit more people.

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2019.05.23 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • DataSource Repository.
  • API Market
  • MLSQL Script Store
相关产品与服务
云数据库 MySQL
腾讯云数据库 MySQL(TencentDB for MySQL)为用户提供安全可靠,性能卓越、易于维护的企业级云数据库服务。其具备6大企业级特性,包括企业级定制内核、企业级高可用、企业级高可靠、企业级安全、企业级扩展以及企业级智能运维。通过使用腾讯云数据库 MySQL,可实现分钟级别的数据库部署、弹性扩展以及全自动化的运维管理,不仅经济实惠,而且稳定可靠,易于运维。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档