[jira] Updated: (HIVE-1614) UDTF json_tuple should return null row when input is not a valid JSON string

2010-09-03 Thread Ning Zhang (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-1614?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ning Zhang updated HIVE-1614:
-

Attachment: HIVE-1614.patch

> UDTF json_tuple should return null row when input is not a valid JSON string
> 
>
> Key: HIVE-1614
> URL: https://issues.apache.org/jira/browse/HIVE-1614
> Project: Hadoop Hive
>  Issue Type: Bug
>Affects Versions: 0.7.0
>Reporter: Ning Zhang
>Assignee: Ning Zhang
> Attachments: HIVE-1614.patch
>
>
> If the input column is not a valid JSON string, json_tuple will not return 
> anything but this will prevent the downstream operators to access the 
> left-hand side table. We should output a NULL row instead, similar to when 
> the input column is a NULL value. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (HIVE-1614) UDTF json_tuple should return null row when input is not a valid JSON string

2010-09-03 Thread Ning Zhang (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-1614?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ning Zhang updated HIVE-1614:
-

   Status: Patch Available  (was: Open)
Affects Version/s: 0.7.0

> UDTF json_tuple should return null row when input is not a valid JSON string
> 
>
> Key: HIVE-1614
> URL: https://issues.apache.org/jira/browse/HIVE-1614
> Project: Hadoop Hive
>  Issue Type: Bug
>Affects Versions: 0.7.0
>Reporter: Ning Zhang
>Assignee: Ning Zhang
> Attachments: HIVE-1614.patch
>
>
> If the input column is not a valid JSON string, json_tuple will not return 
> anything but this will prevent the downstream operators to access the 
> left-hand side table. We should output a NULL row instead, similar to when 
> the input column is a NULL value. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (HIVE-1614) UDTF json_tuple should return null row when input is not a valid JSON string

2010-09-03 Thread Ning Zhang (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-1614?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ning Zhang updated HIVE-1614:
-

Attachment: HIVE-1614.2.patch

Added a catch for all throwable in the UDFT.

> UDTF json_tuple should return null row when input is not a valid JSON string
> 
>
> Key: HIVE-1614
> URL: https://issues.apache.org/jira/browse/HIVE-1614
> Project: Hadoop Hive
>  Issue Type: Bug
>Affects Versions: 0.7.0
>Reporter: Ning Zhang
>Assignee: Ning Zhang
> Attachments: HIVE-1614.2.patch, HIVE-1614.patch
>
>
> If the input column is not a valid JSON string, json_tuple will not return 
> anything but this will prevent the downstream operators to access the 
> left-hand side table. We should output a NULL row instead, similar to when 
> the input column is a NULL value. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (HIVE-1614) UDTF json_tuple should return null row when input is not a valid JSON string

2010-09-03 Thread Namit Jain (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-1614?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Namit Jain updated HIVE-1614:
-

   Status: Resolved  (was: Patch Available)
 Hadoop Flags: [Reviewed]
Fix Version/s: 0.7.0
   Resolution: Fixed

Committed. Thanks Ning

> UDTF json_tuple should return null row when input is not a valid JSON string
> 
>
> Key: HIVE-1614
> URL: https://issues.apache.org/jira/browse/HIVE-1614
> Project: Hadoop Hive
>  Issue Type: Bug
>Affects Versions: 0.7.0
>Reporter: Ning Zhang
>Assignee: Ning Zhang
> Fix For: 0.7.0
>
> Attachments: HIVE-1614.2.patch, HIVE-1614.patch
>
>
> If the input column is not a valid JSON string, json_tuple will not return 
> anything but this will prevent the downstream operators to access the 
> left-hand side table. We should output a NULL row instead, similar to when 
> the input column is a NULL value. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.