Replies: 8 comments 1 reply
-
也就是说我们期望能定义column的顺序。那么select之后拿到response时,我们能按照这个顺序去组织输出的record。 |
Beta Was this translation helpful? Give feedback.
-
@IronsDu 你在实际使用过程中出现过字段顺序和表定义顺序不一致的情况吗? |
Beta Was this translation helpful? Give feedback.
-
因为我们无法确定influxdb的返回顺序。 所以假设当我们从influxdb迁移到MySQL,那我们就得猜测(或通过测试来得到)这个顺序。 |
Beta Was this translation helpful? Give feedback.
-
返回的字段是确保有序的,如果是 "*",则按照表的定义顺序,否则按照查询顺序,这一点是和其他RDBMS执行SQL查询是相似的。拿到的结果是一个list,组装record时,也是按照list的顺序来组织的。 |
Beta Was this translation helpful? Give feedback.
-
我说的是从influxdb里query出来的顺序。 |
Beta Was this translation helpful? Give feedback.
-
这个是有序的 |
Beta Was this translation helpful? Give feedback.
-
嗯,但那是字典序。我在想是否能直接在confi里配置输入和输出的字段映射顺序(关系)? (这样更具有确定性和方便性,也减少influxdb的实现依赖) |
Beta Was this translation helpful? Give feedback.
-
请问现在influxdb reader 的conf里配置COLUMN的作用是什么呢? |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
A clear and concise description of what the bug is.
we can't assume the column's order of response by influxdb. so we need specify the order in config.
like this:
use this config, we output record data by this column order : [user_name, time, user_id]
To Reproduce
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
Beta Was this translation helpful? Give feedback.
All reactions