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-3995] Support presto querying older complex type stores #3937

Closed
wants to merge 1 commit into from

Conversation

ajantha-bhat
Copy link
Member

Why is this PR needed?

Before carbon 2.0, complex child length is stored as SHORT for string, varchar, binary, date, decimal types.
So, In 2.0 as it is stored as INT, presto complex query code always assumes it as INT
and goes to out of bound exception when old store is queried.

What changes were proposed in this PR?

If INT_LENGTH_COMPLEX_CHILD_BYTE_ARRAY encoding is present, parse as INT, else parse as SHORT.
so, that both stores can be queried.

Does this PR introduce any user interface change?

  • No

Is any new testcase added?

  • No [upgrade scenario]

@ajantha-bhat
Copy link
Member Author

@kumarvishal09 , @kunal642 , @akashrn5 : please check and merge

@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/2381/

@CarbonDataQA1
Copy link

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

@ajantha-bhat
Copy link
Member 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/4125/

@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/2384/

@ajantha-bhat
Copy link
Member Author

verified in the cluster also. Tested ok.

@akashrn5
Copy link
Contributor

LGTM

1 similar comment
@kunal642
Copy link
Contributor

LGTM

@asfgit asfgit closed this in a4bd3df Sep 18, 2020
ksmatharoo added a commit to ksmatharoo/incubator-carbondata that referenced this pull request Jan 12, 2021
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

4 participants