Is there some more detail doc about Analytics database , I have config a demo, found only structure table be moved to doris. no data move to ?
Hi @linxd
Please did you try to run the Analytics Tables Export (from the Data Administration app) after you have configured DHIS2 to use Doris for analytics? Thanks!
certainly I have done ,if not ,how the structure table be generated?
Sharing the documentation and a video about how to set up Doris, in case it was not used. In principle running analytics should populate the data if set up is properly configured.
How to Set Up a Dedicated Analytics Database for DHIS2 using Apache Doris and ClickHouse
I am runing version 2.42.6-snapshot.
根本原因:DHIS2 2.42 Doris 支持有 Bug
错误日志
ERROR: StatementCallback; bad SQL grammar [analyze “analytics_te_j8jctt1xmpf”;]
java.lang.UnsupportedOperationException
at org.hisp.dhis.db.sql.AbstractSqlBuilder.analyzeTable(AbstractSqlBuilder.java:161)
at org.hisp.dhis.analytics.table.AbstractJdbcTableManager.analyzeTable
问题分析
资源表已生成 — analytics_rs_* 表在 Doris 中创建成功
ANALYZE 命令失败 — DHIS2 在生成表后尝试执行 PostgreSQL 的 ANALYZE 命令
Doris 不支持 ANALYZE — Doris 使用 MySQL 协议,不支持 PostgreSQL 的 ANALYZE
代码 Bug — AbstractSqlBuilder.analyzeTable() 方法对 Doris 抛出 UnsupportedOperationException
当前状态
Doris dhis2_analytics 数据库:有 19 张旧表(之前的运行)
Doris analytics 数据库:空(新配置指向这里)
PostgreSQL:160 张分析表(旧的)
任务状态:DISABLED(因错误被禁用)
bad SQL grammar [select 1 from “event” limit 1;]
Using Doris Analysis database, The Map app can’t work??
Dear @linxd
The Maps app should work, but event layers are not currently supported.
I’m sorry that the documentation is a bit sparse on this new feature at the moment. In response to this thread we’ve started to add a little more information to the documentation to include some of the current limitations: Analytics database - DHIS2 Documentation
I hope that helps a little, but if you continue to have difficulties don’t hesitate to reach out and/or raise a bug report on Jira so that we can look into it. There are relatively few implementations using this at the moment so feedback and bug reports from the early adopters are very welcome!
Kind regards,
Phil

