Astralidea opened a new issue #4331:
URL: https://github.com/apache/incubator-doris/issues/4331


   **Is your feature request related to a problem? Please describe.**
   DataGrip是JetBrain用来操作各种数据库,例如Mysql客户端的一个图形化软件。
   这个软件在连Mysql的时候能显示出来有哪些数据库,有哪些表,如图:
   
![image](https://user-images.githubusercontent.com/4392280/89907507-58cabd00-dc1f-11ea-821f-bfea917dd373.png)
   
   **Describe the solution you'd like**
   但是在连Doris的时候则显示不出来,这边儿希望达到类似的效果。
   
   **Describe alternatives you've considered**
   另一种方案就是让DataGrip支持Doris这种数据库,DataGrip现在都支持ClickHouse。
   但是这个方案个人觉得应该不太好推。
   
   **Additional context**
   这边儿简单的分析了一下原因。DataGrip在探查数据库的时候会执行这样一句SQL。
   select schema_name as name
     from information_schema.schemata
    order by if(schema() = schema_name, 1, 2),
             schema_name
   而Doris仅支持select database(),而不支持select schema()。
   这块看了下代码做了一下简单的支持。并且本地测试了没问题。
   但是如果想看具体database里有什么表的话,DataGrip会查询这样一个SQL。
   select
   collation_name,
   character_set_name,
   is_default collate utf8_general_ci = 'Yes' as is_default
   from information_schema.collations
   这样的SQL在Mysql能work,但是在Doris里不能跑,主要的原因应该是collate
   想问一下Doris官方是否想支持这样的SQL呢?看起来不像是一个简单的改动。


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to