GitHub user vdiravka opened a pull request:
https://github.com/apache/drill/pull/384
DRILL-4346: Handle NumberFormatException when casting empty string to int
in hbase/maprdb
- Made replacing of functions casting for nullable input varbinary and
var16char types are working (in CastFunctions.java setting
'drill.exec.functions.cast_empty_string_to_null = true' didn't work);
- Added new generated classes for casting varbinary and var16char to int
(CastEmptyStringVarTypesToNullableNumeric template and Casts.tdd data);
- Created a test (in TestHBaseQueries.java) for checking an empty string to
integer casting in maprdb/hbase table;
- Small design changes according to comments in review (import statements,
prefixes ...).
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/vdiravka/drill DRILL-4346
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/drill/pull/384.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #384
----
commit d7e0e3d45956506aae2c6a54cf39abaa1df9dc9b
Author: vataga <[email protected]>
Date: 2016-02-02T11:18:49Z
DRILL-4346: Handle NumberFormatException when casting empty string to int
in hbase/maprdb
- Made replacing of functions casting for nullable input varbinary and
var16char types are working (in CastFunctions.java setting
'drill.exec.functions.cast_empty_string_to_null = true' didn't work);
- Added new generated classes for casting varbinary and var16char to int
(CastEmptyStringVarTypesToNullableNumeric template and Casts.tdd data);
- Created a test (in TestHBaseQueries.java) for checking an empty string to
integer casting in maprdb/hbase table;
- Small design changes according to comments in review (import statements,
prefixes ...).
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---