You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2019/02/14 10:27:39 UTC
[GitHub] kuangye098 opened a new issue #6876: ClickHouse --- the column type
data returned by the server is incorrect.
kuangye098 opened a new issue #6876: ClickHouse --- the column type data returned by the server is incorrect.
URL: https://github.com/apache/incubator-superset/issues/6876
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
Operation System:CentOS7.2
Python Version: 3.6+
Superset Version: 0.28.1
Database:ClickHouse
Sqlalchemy:clickhouse-sqlalchemy
`SQL Lab - SQL Editor`
**The column type data returned by the server is incorrect.**
Execute Sql :
```sql
select belonger as belonger,SUM(price * quantity) as amount from t_xx WHERE bs_flag = 'B' GROUP BY belonger HAVING amout > 1 ORDER BY amout desc LIMIT 5 ;
```
### Expected results
```json
{"query_id": 5, "status": "success", "data": [{"2357247159": "2357246961", "149820450.00000000": "36632196.54000000"}, {"2357247159": "2357246914", "149820450.00000000": "28376636.64000000"}, {"2357247159": "2357246912", "149820450.00000000": "12386333.57450800"}, {"2357247159": "2357246930", "149820450.00000000": "10821732.84000000"}, {"2357247159": "2357246913", "149820450.00000000": "4506788.40000000"}, {"2357247159": "2357246952", "149820450.00000000": "1873036.00000000"}, {"2357247159": "2357247060", "149820450.00000000": "1632000.00000000"}, {"2357247159": "2357246957", "149820450.00000000": "656846.35000000"}, {"2357247159": "2357246915", "149820450.00000000": "599148.00000000"}, {"2357247159": "2357246910", "149820450.00000000": "1007.50000000"}], "columns": [{"name": "belonger", "type": "string", "is_date": false, "is_dim": true}, {"name": "amount", "type": "decimal", "is_date": false, "is_dim": true}], "query": {"changedOn": "2019-02-14T10:19:26.939375", "changed_on": "2019-02-14T10:19:26.939375", "dbId": 2, "db": "ClickHouse", "endDttm": 1550139566938.932, "errorMessage": null, "executedSql": "select belonger as belonger,SUM(price * quantity) as amout from tb_jackpot_trade_record WHERE bs_flag = 'B' GROUP BY belonger HAVING amout > 1 ORDER BY amout desc LIMIT 100000", "id": "viA0a9Sia", "limit": 100000, "progress": 100, "rows": 10, "schema": null, "ctas": false, "serverId": 5, "sql": "select belonger as belonger,SUM(price * quantity) as amout from tb_jackpot_trade_record WHERE bs_flag = 'B' GROUP BY belonger HAVING amout > 1 ORDER BY amout desc LIMIT 5 ;\r\n", "sqlEditorId": "QFPO6mUaM3", "startDttm": 1550139565844.895996, "state": "success", "tab": "Query tb_jackpot_trade_record", "tempTable": "", "userId": 1, "user": "zi fie", "limit_reached": false, "resultsKey": null, "trackingUrl": null}}
```
### Actual results
```json
{"query_id": 5, "status": "success", "data": [{"2357247159": "2357246961", "149820450.00000000": "36632196.54000000"}, {"2357247159": "2357246914", "149820450.00000000": "28376636.64000000"}, {"2357247159": "2357246912", "149820450.00000000": "12386333.57450800"}, {"2357247159": "2357246930", "149820450.00000000": "10821732.84000000"}, {"2357247159": "2357246913", "149820450.00000000": "4506788.40000000"}, {"2357247159": "2357246952", "149820450.00000000": "1873036.00000000"}, {"2357247159": "2357247060", "149820450.00000000": "1632000.00000000"}, {"2357247159": "2357246957", "149820450.00000000": "656846.35000000"}, {"2357247159": "2357246915", "149820450.00000000": "599148.00000000"}, {"2357247159": "2357246910", "149820450.00000000": "1007.50000000"}], "columns": [{"name": "2357247159", "type": "2357246892", "is_date": false, "is_dim": true}, {"name": "149820450.00000000", "type": "58239063.08000000", "is_date": false, "is_dim": true}], "query": {"changedOn": "2019-02-14T10:19:26.939375", "changed_on": "2019-02-14T10:19:26.939375", "dbId": 2, "db": "ClickHouse", "endDttm": 1550139566938.932, "errorMessage": null, "executedSql": "select belonger as belonger,SUM(price * quantity) as amout from tb_jackpot_trade_record WHERE bs_flag = 'B' GROUP BY belonger HAVING amout > 1 ORDER BY amout desc LIMIT 100000", "id": "viA0a9Sia", "limit": 100000, "progress": 100, "rows": 10, "schema": null, "ctas": false, "serverId": 5, "sql": "select belonger as belonger,SUM(price * quantity) as amout from tb_jackpot_trade_record WHERE bs_flag = 'B' GROUP BY belonger HAVING amout > 1 ORDER BY amout desc LIMIT 5 ;\r\n", "sqlEditorId": "QFPO6mUaM3", "startDttm": 1550139565844.895996, "state": "success", "tab": "Query tb_jackpot_trade_record", "tempTable": "", "userId": 1, "user": "zi fie", "limit_reached": false, "resultsKey": null, "trackingUrl": null}}
```
### Steps to reproduce
no message.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org