[
https://issues.apache.org/jira/browse/PIG-5225?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rohini Palaniswamy updated PIG-5225:
------------------------------------
Fix Version/s: (was: 0.17.0)
0.18.0
bq. If we have a map with a byte array value for a key, and try to multiply
this value with an integer then it should fail, or result in an empty tuple?
Considering that the bytearray which is a string cannot be converted to a
integer, you would expect it to fail. But Utf8StorageConverter, just increments
PigWarning.FIELD_DISCARDED_TYPE_CONVERSION_FAILED for type conversion failures
and returns null. I believe it was done to avoid script failing for few invalid
values as that is a common scenario. So empty tuple is expected. The test seems
to have been added before the code was added to Apache svn. So couldn't find
the history of why it was added.
[~daijy],
Can you confirm the expected behavior and is it ok to remove this test?
> Several unit tests are not annotated with @Test
> -----------------------------------------------
>
> Key: PIG-5225
> URL: https://issues.apache.org/jira/browse/PIG-5225
> Project: Pig
> Issue Type: Bug
> Reporter: Nandor Kollar
> Assignee: Nandor Kollar
> Fix For: 0.18.0
>
> Attachments: PIG-5225.patch
>
>
> Several test cases are not annotated with @Test. Since we use JUnit 4, these
> test cases seems to be excluded.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)