Skip to content

Conversation

@HangyuanLiu
Copy link
Contributor

add show load statement support offset
such as show load order by createtime desc limit 1,2
#1509

such as `show load order by createtime desc limit 1,2`
@HangyuanLiu HangyuanLiu changed the title add show load statement support offset Show load statement support offset Jul 23, 2019
long offset = showStmt.getOffset() == -1L ? 0 : showStmt.getOffset();
if (offset >= rows.size()) {
rows = Lists.newArrayList();
} else if(limit != -1L) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
} else if(limit != -1L) {
} else if (limit != -1L) {

imay
imay previously approved these changes Jul 23, 2019
Copy link
Contributor

@morningman morningman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add an example in SHOW LOAD help doc:
docs/help/Contents/Data Manipulation/manipulation_stmt.md

@HangyuanLiu
Copy link
Contributor Author

Please add an example in SHOW LOAD help doc:
docs/help/Contents/Data Manipulation/manipulation_stmt.md

OK

@morningman morningman merged commit 7c24bf3 into apache:master Jul 24, 2019
morningman pushed a commit to baidu-doris/incubator-doris that referenced this pull request Jul 28, 2019
Such as `show load order by createtime desc limit 1,2`
@imay imay mentioned this pull request Sep 26, 2019
luwei16 pushed a commit to luwei16/Doris that referenced this pull request Apr 7, 2023
…ache#1531)

When resize file cache size and restart, file cache will eliminate some segments for fitting the size. And it will encounter an invalid address access error. The reason is that I cache some reference and the datas are removed when eliminating. Fix that by caching key and offset and checking it is valid before used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants