[ 
https://issues.apache.org/jira/browse/CALCITE-5725?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17726582#comment-17726582
 ] 

Benchao Li commented on CALCITE-5725:
-------------------------------------

I see. Then there will be two things to consider:

1. Calcite could parse Doris SQL, such as 'CLUSTER BY', 'SORT BY' you 
mentioned. These extentions require us to change the Parser, some may need 
touch more such as abstract syntax tree, even the algebra. The good place is 
the babel parser, you can start from there, add these support one by one.

2. Calcite could translate a RelNode tree to Doris dialect (if there are 
differences from mysql). A new SqlDialect can be implemented, takes care of 
special things about Doris.

> Support Doris Dialect
> ---------------------
>
>                 Key: CALCITE-5725
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5725
>             Project: Calcite
>          Issue Type: New Feature
>          Components: core
>            Reporter: xingyuan cheng
>            Priority: Major
>
> Doris is one of the popular OLAP databases. The current version of calcite 
> does not support the dialect of Doris as input syntax, and it is also unable 
> to perform dialect conversion based on Doris. For example, doris is converted 
> to hive, doris is converted to flink, and spark is converted to doris



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to