It seems like your are running unit tests in a non-standard way. It
sounds like your are trying to write stand along j-unit tests. Hive
uses velocity to turn .q scripts into test and the testing framework
diffs the output.

You should look at the .q files inside src/ql/test/clientpositive/whatever.q

Or give this a go (its a unit testing tool I wrote):

https://github.com/edwardcapriolo/hive_test


On Tue, Jun 12, 2012 at 1:47 PM, Shefali Vohra <t-sh...@microsoft.com> wrote:
> Hi!
> I'm trying to add unit tests to a UDF I developed, and used the commands 
> runCreateTableCmd and runLoadCmd to create and load the table. I'm fairly 
> certain it is loading from the correct filepath.  When I try to run it 
> though, I get the error "Cannot overwrite read-only table." Does anybody have 
> a solution for this?
>
> Thanks!
> Shefali

Reply via email to