hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thejas M Nair (JIRA)" <>
Subject [jira] [Commented] (HIVE-2482) Convenience UDFs for binary data type
Date Thu, 01 Aug 2013 06:55:49 GMT


Thejas M Nair commented on HIVE-2482:

[~appodictic] Should we try changing the practice of using .q files everywhere (at least when
alternatives are easy enough/possible)?
The use of .q file gives good test coverage when we do things like change the query plan,
as they are more a 'end-to-end' test rather than a 'unit' test. Writing the .q file based
test is also often the easier thing to do.
But there are few reasons why I think we should avoid them when if it does not provide additional
test coverage -
1. It takes lot longer to run compared to real unit tests
2. They are harder to debug
3. There are high chances that benchmark (q.out) with wrong results get checked in, as they
are generated with '-Doverwrite=true', and the contributor just eyeballs the results to verify
the correctness. With real unit test, expected results come first (you write them first),
before running the tests to verify.

Also, I feel that one is likely to cover more corner cases in the test with real unit tests.
> Convenience UDFs for binary data type
> -------------------------------------
>                 Key: HIVE-2482
>                 URL:
>             Project: Hive
>          Issue Type: New Feature
>    Affects Versions: 0.9.0
>            Reporter: Ashutosh Chauhan
>            Assignee: Mark Wagner
>         Attachments: HIVE-2482.1.patch
> HIVE-2380 introduced binary data type in Hive. It will be good to have following udfs
to make it more useful:
> * UDF's to convert to/from hex string
> * UDF's to convert to/from string using a specific encoding
> * UDF's to convert to/from base64 string
> * UDF's to convert to/from non-string types using a particular serde

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message