Skip to content
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

s3select: Limit bug json #150

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

albin-antony
Copy link

@albin-antony albin-antony commented Feb 20, 2024

fix for json parser processing more chunks than specified in the limit

https://bugzilla.redhat.com/show_bug.cgi?id=2242089

fix for json parser processing more chunks than specified in the limit

Signed-off-by: Albin Antony <albinantony20@gmail.com>
if(is_sql_limit_reached())
{
status = JSON_PROCESSING_LIMIT_REACHED;//returning number since sql_execution_on_row_cb is a callback; the caller can not access the object
m_sql_processing_status = s3selectEngine::base_s3object::Status::LIMIT_REACHED;

Choose a reason for hiding this comment

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


if(m_is_limit_on && m_row_count == m_limit) {
m_sql_processing_status = s3selectEngine::base_s3object::Status::LIMIT_REACHED;
}

Choose a reason for hiding this comment

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

reviewing getMatchRow

Status getMatchRow( std::string& result)

it handles the m_sql_processing_status

@galsalomon66
Copy link

galsalomon66 commented Feb 23, 2024

this issue may relate to the from-clause functionality (scan for the next row)

the scanner refers to keys that match the from-clause-pattern as an object or array.

it should be fixed in #129

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants