You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Hive QA (JIRA)" <ji...@apache.org> on 2015/02/04 17:43:34 UTC

[jira] [Commented] (HIVE-9567) JSON SerDe not escaping special chars when writing char/varchar data

    [ https://issues.apache.org/jira/browse/HIVE-9567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14305470#comment-14305470 ] 

Hive QA commented on HIVE-9567:
-------------------------------



{color:red}Overall{color}: -1 at least one tests failed

Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12696288/HIVE-9567.1.patch

{color:red}ERROR:{color} -1 due to 2 failed/errored test(s), 7424 tests executed
*Failed tests:*
{noformat}
org.apache.hive.jdbc.TestSSL.testSSLFetchHttp
org.apache.hive.spark.client.TestSparkClient.testSyncRpc
{noformat}

Test results: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/2651/testReport
Console output: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/2651/console
Test logs: http://ec2-174-129-184-35.compute-1.amazonaws.com/logs/PreCommit-HIVE-TRUNK-Build-2651/

Messages:
{noformat}
Executing org.apache.hive.ptest.execution.PrepPhase
Executing org.apache.hive.ptest.execution.ExecutionPhase
Executing org.apache.hive.ptest.execution.ReportingPhase
Tests exited with: TestsFailedException: 2 tests failed
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12696288 - PreCommit-HIVE-TRUNK-Build

> JSON SerDe not escaping special chars when writing char/varchar data
> --------------------------------------------------------------------
>
>                 Key: HIVE-9567
>                 URL: https://issues.apache.org/jira/browse/HIVE-9567
>             Project: Hive
>          Issue Type: Bug
>          Components: Serializers/Deserializers
>    Affects Versions: 0.13.0, 0.14.0
>            Reporter: Jason Dere
>            Assignee: Jason Dere
>         Attachments: HIVE-9567.1.patch
>
>
> When writing string data to fields designated as char/varchar fields, JsonSerDe does not escape special characters, which can invalidate the JSON.
> Looks like string columns use SerDeUtils.escapeString() when building the JSON string. Char/varchar need to do the same.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)