Closed jackylee-ch closed 1 year ago
We didn't cover the corner case when reading duplicate fields in case-insensitive mode. If there is one more field matched, we just return the first field that matched. However in vanilla spark, it will throw RuntimeException in theses cases.
unit tests
https://github.com/oap-project/native-sql-engine/issues/1171
Thanks for your patch. All internal tests have passed. The patch looks good to me. @zhouyuan, please have a further check.
What changes were proposed in this pull request?
We didn't cover the corner case when reading duplicate fields in case-insensitive mode. If there is one more field matched, we just return the first field that matched. However in vanilla spark, it will throw RuntimeException in theses cases.
How was this patch tested?
unit tests