[
https://issues.apache.org/jira/browse/PHOENIX-3918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16049630#comment-16049630
]
James Taylor commented on PHOENIX-3918:
---------------------------------------
bq. Should I change the function to return null for OCTET_LENGTH(null) ?
Yes, that'd be a good idea. This is in the same category as the others you
changed.
> Ensure all function implementations handle null args correctly
> --------------------------------------------------------------
>
> Key: PHOENIX-3918
> URL: https://issues.apache.org/jira/browse/PHOENIX-3918
> Project: Phoenix
> Issue Type: Bug
> Reporter: Samarth Jain
> Assignee: Thomas D'Silva
> Fix For: 4.12.0
>
> Attachments: PHOENIX-3918.patch, PHOENIX-3918-v2.patch,
> PHOENIX-3918-v3.patch, PHOENIX-3918-v4.patch
>
>
> {code}
> testBothParametersNull(org.apache.phoenix.end2end.TimezoneOffsetFunctionIT)
> Time elapsed: 2.272 sec <<< ERROR!
> java.sql.SQLException: ERROR 201 (22000): Illegal data. Unknown timezone
> at
> org.apache.phoenix.end2end.TimezoneOffsetFunctionIT.testBothParametersNull(TimezoneOffsetFunctionIT.java:130)
> timezoneParameterNull(org.apache.phoenix.end2end.TimezoneOffsetFunctionIT)
> Time elapsed: 2.273 sec <<< ERROR!
> java.sql.SQLException: ERROR 201 (22000): Illegal data. Unknown timezone
> at
> org.apache.phoenix.end2end.TimezoneOffsetFunctionIT.timezoneParameterNull(TimezoneOffsetFunctionIT.java:151)
> dateParameterNull(org.apache.phoenix.end2end.TimezoneOffsetFunctionIT) Time
> elapsed: 2.254 sec <<< ERROR!
> java.sql.SQLException: ERROR 201 (22000): Illegal data. Expected length of at
> least 8 bytes, but had 0
> at
> org.apache.phoenix.end2end.TimezoneOffsetFunctionIT.dateParameterNull(TimezoneOffsetFunctionIT.java:172)
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)