-
Notifications
You must be signed in to change notification settings - Fork 704
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CARBONDATA-2885] Broadcast Issue and Small file distribution Issue
Issue :- In External Table Carbon Relation sizeInByte is wrong (always 0) because of this Join Queries are identified for broadcast even Table actual size is > 10MB( default broadcast).This is making fail some of the join table ( table which should select sortmergeJoin but because of wrong calculation it gone for broadcast join) if Merge_small_file task distribution is enabled ,Join queries are failed (TPCH). carbon opens many carbon files but it not getting closed. Root Cause :- 1. Current relation size calculation is based on tablestatus file but since External Table does not have tablestatus file so always zero was returned. 2. if Merge_small_file task distribution is enabled carbon opens many carbon files but it not getting closed. Solution :- if Table is External Table then calculate size from TablePath . close the carbon files for scan is finished. This closes #2658
- Loading branch information
1 parent
f81543e
commit 1fb1f19
Showing
2 changed files
with
42 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters