hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sta┼ćislavs Rogozins <stanislavs.rogoz...@gmail.com>
Subject Unit testing macros
Date Fri, 30 Sep 2016 09:23:41 GMT
The Unit testing wiki page
<https://cwiki.apache.org/confluence/display/Hive/Unit+Testing+Hive+SQL>
suggests
using macros to 'extract and resuse the expressions applied to columns' and
that they can be 'readily isolated for testing'. However as far as I'm
aware, right now only temporary macros can be created, that stop existing
outside of session where they were defined(
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-Create/DropMacro),
thus making it necessary to include the macro in every HQL script that uses
it. How is it possible to isolate them for testing?

Mime
View raw message