Commit f8b06df
do ProtocolEvents fixing only when there is required fields missing in the requested schema
https://issues.apache.org/jira/browse/PARQUET-61
This PR is trying to redo the https://github.com/apache/incubator-parquet-mr/pull/7
In this PR, it fixes the protocol event in a more precise condition:
Only when the requested schema missing some required fields that are present in the full schema
So even if there a projection, as long as the projection is not getting rid of the required field, the protocol events amender will not be called.
Could you take a look at this ? @dvryaboy @yan-qi
Author: Tianshuo Deng <[email protected]>
Closes apache#28 from tsdeng/fix_protocol_when_required_field_missing and squashes the following commits:
ba778b9 [Tianshuo Deng] add continue for readability
d5639df [Tianshuo Deng] fix unused import
090e894 [Tianshuo Deng] format
13a609d [Tianshuo Deng] comment format
ef1fe58 [Tianshuo Deng] little refactor, remove the hasMissingRequiredFieldFromProjection method
7c2c158 [Tianshuo Deng] format
83a5655 [Tianshuo Deng] do ProtocolEvents fixing only when there is required fields missing in the requested schema1 parent 7a10506 commit f8b06df
File tree
1 file changed
+35
-2
lines changed- parquet-thrift/src/main/java/parquet/thrift
1 file changed
+35
-2
lines changedLines changed: 35 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
778 | 778 | | |
779 | 779 | | |
780 | 780 | | |
| 781 | + | |
781 | 782 | | |
782 | 783 | | |
783 | 784 | | |
| |||
791 | 792 | | |
792 | 793 | | |
793 | 794 | | |
| 795 | + | |
| 796 | + | |
794 | 797 | | |
795 | 798 | | |
796 | 799 | | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
797 | 825 | | |
798 | 826 | | |
799 | 827 | | |
| |||
802 | 830 | | |
803 | 831 | | |
804 | 832 | | |
805 | | - | |
806 | | - | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
807 | 840 | | |
808 | 841 | | |
809 | 842 | | |
| |||
0 commit comments