-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
AMBARI-22999 : Ambari Hive View 2.0 'Upload Table' does not support UTF8 files with BOM (nitirajrathore) #510
AMBARI-22999 : Ambari Hive View 2.0 'Upload Table' does not support UTF8 files with BOM (nitirajrathore) #510
Conversation
…TF8 files with BOM (nitirajrathore)
Refer to this link for build results (access rights to CI server needed): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there any unit tests to update for this?
@rlevas : No there aren't any test case to update. But surprisingly one unrelated old test case is failing. Actually let me correct that and add some test case for this as well. Thanks for comment. |
@rlevas : Added test cases. Please review. |
Refer to this link for build results (access rights to CI server needed): |
…TF8 files with BOM (nitirajrathore) (apache#510) * AMBARI-22999 : Ambari Hive View 2.0 'Upload Table' does not support UTF8 files with BOM (nitirajrathore) * AMBARI-22999 : Added relevant test cases (nitirajrathore)
…TF8 files with BOM (nitirajrathore) (apache#510) * AMBARI-22999 : Ambari Hive View 2.0 'Upload Table' does not support UTF8 files with BOM (nitirajrathore) * AMBARI-22999 : Added relevant test cases (nitirajrathore)
…TF8 files with BOM (nitirajrathore) (#510) (#527) * AMBARI-22999 : Ambari Hive View 2.0 'Upload Table' does not support UTF8 files with BOM (nitirajrathore) * AMBARI-22999 : Added relevant test cases (nitirajrathore)
…TF8 files with BOM (nitirajrathore) (#526) * AMBARI-22833 : change commons-collections-3.2.1.jar being used by ambari views to commons-collections-3.2.2.jar (nitirajrathore) * AMBARI-22999 : Ambari Hive View 2.0 'Upload Table' does not support UTF8 files with BOM (nitirajrathore) (#510) * AMBARI-22999 : Ambari Hive View 2.0 'Upload Table' does not support UTF8 files with BOM (nitirajrathore) * AMBARI-22999 : Added relevant test cases (nitirajrathore)
…TF8 files with BOM (nitirajrathore) (apache#510) * AMBARI-22999 : Ambari Hive View 2.0 'Upload Table' does not support UTF8 files with BOM (nitirajrathore) * AMBARI-22999 : Added relevant test cases (nitirajrathore) (cherry picked from commit 541de7f) Change-Id: I58d04d819cc02fd3eb48a9e3aa96e4e22a6332bc
What changes were proposed in this pull request?
Using BomInputStream to filterout BOM characters from the file before reading it.
How was this patch tested?
Manual testing done buy uploading the file in hive view 2.0 with BOM characters and checking if files is uploaded and given first row (which contains BOM) is treated as the list of columns for the created table.
Unit test cases added.