SelectionQueryImpl should support buildQueryString
还没有人认领这个 Issue。
评估
调研方向
首先定位 SelectionQueryImpl 以及它使用的现有查询构建 API。确定动态聚合函数的预期查询字符串输出,然后通过覆盖所示选择模式的测试,验证 SelectionQueryImpl 能够生成该输出。
由索引模型根据 Issue 内容生成。
描述
If I want to create a query using dynamic selections, for example say from UI we received a request for aggregate function
List functions; which as max,min for columns "test1". This list of functions can be dynamic. Now I cannot use query build to build a query dynamically. SelectionQueryImpl can be used but this cannot generate a string, Is there a work around? or is there a way that i can build select query dynamically when using aggregate functions?
SelectionQueryImpl selection= select();
selection.column(searchFilter.getName().get(0)).function(searchFilter.getFunctions().get(0).toString());
selection.function("mean", searchFilter.getName().get(0));
selection.function("min", searchFilter.getName().get(0));
selection.from(bucket,(ObjectUtils.isNotEmpty(searchFilter.getType()))? searchFilter.getType().stream().toArray(String[]::new): new String[0]);
- 主要语言
- Java
- 星标
- 1.2k
- 派生
- 468
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
influxdata/influxdb-java 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 38/100
influxdata/influxdb-java#1012 ·
-
难度 5/5 一周以上 新手友好度 30/100
influxdata/influxdb-java#1006 · 1 条评论 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 25/100
influxdata/influxdb-java#1005 · 3 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
influxdata/influxdb-java#999 ·
-
难度 4/5 3-5 天 新手友好度 35/100
influxdata/influxdb-java#970 ·
查看 influxdata/influxdb-java 的全部 Issue
相似的 Issue
-
`GET /v1/event/token/{uuid}` can report a BOM upload as done before policy evaluation and metrics have finished可能已有人在做 @Zargath 今天认领。 未关闭defect in triage
难度 2/5 1-3 小时 新手友好度 72/100
DependencyTrack/dependency-track#7646 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
objectionary/eo-graphs#80 ·
-
WebMvcStreamableServerTransportProvider: idle-session eviction stops permanently after a NullPointerException when a session is deleted mid-sweep可能已有人在做 @lejuho 今天认领。 未关闭status: waiting-for-triage
难度 2/5 1-3 小时 新手友好度 72/100
spring-projects/spring-ai#7133 ·
维护者通常 6 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
objectionary/jucs#141 ·
维护者通常 1 天内回复