You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "zhbdesign (via GitHub)" <gi...@apache.org> on 2023/11/16 03:16:21 UTC
[I] [Bug] doris自动分析问题 [doris]
zhbdesign opened a new issue, #27084:
URL: https://github.com/apache/doris/issues/27084
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no similar issues.
### Version
2.0.3-rc03
### What's Wrong?
创建表后,执行insert进行数据插入,自动分析生效。
执行SHOW AUTO ANALYZE;state为FAILED,message里的内容为:Failed to execute internal SQL. org.apache.doris.common.AnalysisException: errCode = 2, detailMessage = Syntax error, Failed to execute internal SQL. org.apache.doris.common.AnalysisException: errCode = 2, detailMessage = Syntax error, Failed to execute internal SQL. org.apache.doris.common.AnalysisException: errCode = 2, detailMessage = Syntax error, Failed to execute internal SQL. org.apache.doris.common.AnalysisException: errCode = 2, detailMessage = Syntax error, Failed to execute internal SQL. org.apache.doris.common.AnalysisException: errCode = 2, detailMessage = Syntax error, Failed to execute internal SQL. org.apache.doris.common.AnalysisException: errCode = 2, detailMessage = Syntax error, Failed to execute internal SQL. org.apache.doris.common.AnalysisException: errCode = 2, detailMessage = Syntax error, Job has been cancelled: Failed to execute internal SQL. org.apache.doris.common.AnalysisException: er
rCode = 2, detailMessage = Syntax error, Job has been cancelled: Failed to execute internal SQL. org.apache.doris.common.AnalysisException: errCode = 2, detailMessage = Syntax error, Job has been cancelled: Failed to execute internal SQL. org.apache.doris.common.AnalysisException: errCode = 2, detailMessage = Syntax error。
SHOW ANALYZE;show analyze jobid;SHOW ANALYZE TASK STATUS jobid;无法查看自动分析任务的信息
show column stats tablename(id);统计信息已经生成,但是这个sql没数据
### What You Expected?
正常执行
### How to Reproduce?
_No response_
### Anything Else?
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
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.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [I] [Bug] doris自动分析问题 [doris]
Posted by "zhbdesign (via GitHub)" <gi...@apache.org>.
zhbdesign commented on issue #27084:
URL: https://github.com/apache/doris/issues/27084#issuecomment-1813823705
日志里发现一条关于统计信息一直执行的sql,SELECT CONCAT(10061,
'-',
-1,
'-',
'key') AS `id`,
0 AS`catalog_id`,
10059 AS`db_id`,
10061 AS`tbl_id`,
-1 AS`idx_id`,
'key' AS `col_id`,
NULL AS`part_id`,
COUNT(1) AS `row_count`,
NDV(`key`) AS `ndv`,
COUNT(1)-COUNT(`key`) AS `null_count`,
CAST(MIN(key)ASSTRING) AS `min`,
CAST(MAX(key)ASSTRING) AS `max`,
SUM(LENGTH(`key`)) AS `data_size`,
NOW() AS `update_time`
FROM tablename;
key没有加反引号,导致无法执行
--
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.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [I] [Bug] doris自动分析问题 [doris]
Posted by "Muzi999 (via GitHub)" <gi...@apache.org>.
Muzi999 commented on issue #27084:
URL: https://github.com/apache/doris/issues/27084#issuecomment-2063223609
doris2.1.1 FE警告日志中一直在执行 这样的SQL
SELECT SUBSTRING(CAST(MIN(`key`) AS STRING), 1, 1024) as min,
SUBSTRING(CAST(MAX(`key`) AS STRING), 1, 1024) as max
FROM `DB`.`Table` index null
然后每次执行都不成功
错误为
Encountered: INDEX
Expected: COMMA, INDEX is keyword, maybe `INDEX`
--
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.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [I] [Bug] doris自动分析问题 [doris]
Posted by "Muzi999 (via GitHub)" <gi...@apache.org>.
Muzi999 commented on issue #27084:
URL: https://github.com/apache/doris/issues/27084#issuecomment-2063225451
> #27321
> #27321
doris2.1.1 FE警告日志中一直在执行 这样的SQL
SELECT SUBSTRING(CAST(MIN(key) AS STRING), 1, 1024) as min,
SUBSTRING(CAST(MAX(key) AS STRING), 1, 1024) as max
FROM DB.Table index null
然后每次执行都不成功
错误为
Encountered: INDEX
Expected: COMMA, INDEX is keyword, maybe INDEX
--
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.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [I] [Bug] doris自动分析问题 [doris]
Posted by "LemonLiTree (via GitHub)" <gi...@apache.org>.
LemonLiTree commented on issue #27084:
URL: https://github.com/apache/doris/issues/27084#issuecomment-1822192106
https://github.com/apache/doris/pull/27321
--
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.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [I] [Bug] doris自动分析问题 [doris]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #27084:
URL: https://github.com/apache/doris/issues/27084#issuecomment-3287230821
We're closing this issue because it hasn't been updated in a while.
If you'd like to revive this issue, please reopen it and feel free a maintainer to remove the Stale tag!
--
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.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [I] [Bug] doris自动分析问题 [doris]
Posted by "morningman (via GitHub)" <gi...@apache.org>.
morningman closed issue #27084: [Bug] doris自动分析问题
URL: https://github.com/apache/doris/issues/27084
--
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.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org