-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show load statement support offset #1531
Conversation
such as `show load order by createtime desc limit 1,2`
long offset = showStmt.getOffset() == -1L ? 0 : showStmt.getOffset(); | ||
if (offset >= rows.size()) { | ||
rows = Lists.newArrayList(); | ||
} else if(limit != -1L) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} else if(limit != -1L) { | |
} else if (limit != -1L) { |
There was a problem hiding this 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
…to show_load_offset
…ubator-doris into show_load_offset
OK |
Such as `show load order by createtime desc limit 1,2`
…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.
add show load statement support offset
such as
show load order by createtime desc limit 1,2
#1509