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

[CARBONDATA-4000] Presto select query failure right after firing update query. #3943

Closed
wants to merge 1 commit into from

Conversation

akkio-97
Copy link
Contributor

Why is this PR needed?

The putObject() method implementation was missing due to which select query on struct complex data type after update queries were failing.

What changes were proposed in this PR?

Added implementation in ColumnarVectorWrapperDirectWithDeleteDelta. Earlier without this implementation control went to its parent class AbstractCarbonColumnarVector,java which was unsupported.

Does this PR introduce any user interface change?

  • No

Is any new testcase added?

  • No

@@ -58,6 +58,17 @@ public void putBoolean(int rowId, boolean value) {
}
}

@Override
Copy link
Member

Choose a reason for hiding this comment

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

please check and handle for ColumnarVectorWrapperDirectWithInvertedIndex, ColumnarVectorWrapperDirectWithDeleteDeltaAndInvertedIndex also

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. Issue is with regards to only update query so changes may not be required in ColumnarVectorWrapperDirectWithInvertedIndex.

public void putObject(int rowId, Object obj) {
if (!deletedRows.get(rowId)) {
if (nullBits.get(rowId)) {
columnVector.putNull(counter++);
Copy link
Member

Choose a reason for hiding this comment

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

can you locally test one table with inverted index, I think here should not use counter, may be need to use rowId, convert function is having counter already

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Have raised a separate jira to address this issue - CARBONDATA-4004

@CarbonDataQA1
Copy link

Build Success with Spark 2.4.5, Please check CI http://121.244.95.60:12545/job/ApacheCarbon_PR_Builder_2.4.5/2408/

@CarbonDataQA1
Copy link

Build Success with Spark 2.3.4, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.3/4149/

@ajantha-bhat
Copy link
Member

LGTM.
Will merge once build passes.

Please create jira for inverted index issue and handle in separate PR

@CarbonDataQA1
Copy link

Build Failed with Spark 2.4.5, Please check CI http://121.244.95.60:12545/job/ApacheCarbon_PR_Builder_2.4.5/2440/

@akkio-97
Copy link
Contributor Author

retest this please

@CarbonDataQA1
Copy link

Build Success with Spark 2.3.4, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.3/4176/

@akkio-97
Copy link
Contributor Author

LGTM.
Will merge once build passes.

Please create jira for inverted index issue and handle in separate PR

Done

@CarbonDataQA1
Copy link

Build Success with Spark 2.4.5, Please check CI http://121.244.95.60:12545/job/ApacheCarbon_PR_Builder_2.4.5/2442/

@CarbonDataQA1
Copy link

Build Success with Spark 2.3.4, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.3/4185/

@asfgit asfgit closed this in 0b752bb Sep 23, 2020
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.

None yet

3 participants