๐๐ฎ๐๐ฎ, ๐๐ป๐ฎ๐น๐๐๐ถ๐ฐ๐ & ๐๐. Modern alternative to Snowflake. Cost-effective and simple for massive-scale analytics. https://databend.com
This pull request introduces support for accessing Mysql data from dictionaries using the dict_getfunction.Other source like PostgreSQL will be introduced in the future PRs.Besides, this pull request can only support bool,string,int and float, other types will be supported later.
Dictionary Creation with Mysql Source:
CREATE OR REPLACE DICTIONARY dd3(id int, name string, age int, address string, salary float, b bool) PRIMARY KEY id SOURCE(mysql(host='localhost' port='3306' username='root' password='123456' db='test' table='user3'));
Options are used to provide the Mysql connection URL, host, port, username, password, db and table are all required options to identify specific table.
Connect to Mysql, create a table and insert some records.
I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/
Summary
This pull request introduces support for accessing Mysql data from dictionaries using the
dict_get
function.Other source like PostgreSQL will be introduced in the future PRs.Besides, this pull request can only supportbool
,string
,int
andfloat
, other types will be supported later.Options are used to provide the Mysql connection URL,
host
,port
,username
,password
,db
andtable
are all required options to identify specific table.Connect to Mysql, create a table and insert some records.
dict_get
Function:NULL
:part of https://github.com/datafuselabs/databend/issues/15901
Tests
Type of change
This change isโ