Add ResultSet Constrction Doc#1114
Merged
qiaojialin merged 9 commits intoapache:masterfrom May 6, 2020
Merged
Conversation
qiaojialin
reviewed
Apr 28, 2020
JackieTien97
requested changes
May 6, 2020
|
|
||
| 接下来计算 `columnOrdinalMap` ,首先判断是否需要打印时间戳,如果需要则将时间戳记录为第一列。 | ||
|
|
||
| 然后遍历表头中的列名列表,并检查 `columnNameIndex` 是否被初始化,该字段来源于去重时计算的 `pathToIndex`,记录了每个时间序列路径在查询中的位置。如果被初始化,则其中的位置 + 2 即为在结果集中的位置;未被初始化则按顺序记录位置即可。 |
Contributor
There was a problem hiding this comment.
If columnNameIndex is not initialized, the logic of generating columnOrdinalMap is same as deduplicate column in the server.
qiaojialin
approved these changes
May 6, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.