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

AMBARI-22999 : Ambari Hive View 2.0 'Upload Table' does not support UTF8 files with BOM (nitirajrathore) #510

Merged

Conversation

nitirajrathore
Copy link
Contributor

@nitirajrathore nitirajrathore commented Mar 1, 2018

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.

@asfgit
Copy link

asfgit commented Mar 1, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/894/
Test FAILed.
Test FAILured.

Copy link
Contributor

@rlevas rlevas left a 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?

@nitirajrathore
Copy link
Contributor Author

@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.

@nitirajrathore
Copy link
Contributor Author

@rlevas : Added test cases. Please review.

@asfgit
Copy link

asfgit commented Mar 2, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/911/
Test PASSed.

@nitirajrathore nitirajrathore merged commit 541de7f into apache:branch-2.6 Mar 2, 2018
nitirajrathore added a commit to nitirajrathore/ambari that referenced this pull request Mar 2, 2018
…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)
nitirajrathore added a commit to nitirajrathore/ambari that referenced this pull request Mar 2, 2018
…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)
nitirajrathore added a commit that referenced this pull request Mar 5, 2018
…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)
nitirajrathore added a commit that referenced this pull request Mar 5, 2018
…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)
mpapirkovskyy pushed a commit to mpapirkovskyy/ambari that referenced this pull request Apr 12, 2019
…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
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.

3 participants