RE: Hive Unit Tests: Read-Only Table

2012-06-12 Thread Shefali Vohra
Yep we solved our problem. Thank you so much!! Shefali -Original Message- From: Namit Jain [mailto:nj...@fb.com] Sent: Tuesday, June 12, 2012 2:26 PM To: dev@hive.apache.org Subject: Re: Hive Unit Tests: Read-Only Table You can create new tables in .q files and then modify them. The .q

Re: Hive Unit Tests: Read-Only Table

2012-06-12 Thread Namit Jain
est, I should do so within the .q file itself? >> >>Thanks so much for your help!! >>Shefali >> >>-Original Message- >>From: Edward Capriolo [mailto:edlinuxg...@gmail.com] >>Sent: Tuesday, June 12, 2012 12:30 PM >>To: dev@hive.apache.org >

RE: Hive Unit Tests: Read-Only Table

2012-06-12 Thread Kanna Karanam
- From: Namit Jain [mailto:nj...@fb.com] Sent: Tuesday, June 12, 2012 2:13 PM To: dev@hive.apache.org Subject: Re: Hive Unit Tests: Read-Only Table You cannot change tables which are created by QTestUtil (like src). On 6/12/12 12:34 PM, "Shefali Vohra" wrote: >Fair enough. So

Re: Hive Unit Tests: Read-Only Table

2012-06-12 Thread Namit Jain
;Shefali > >-Original Message- >From: Edward Capriolo [mailto:edlinuxg...@gmail.com] >Sent: Tuesday, June 12, 2012 12:30 PM >To: dev@hive.apache.org >Subject: Re: Hive Unit Tests: Read-Only Table > >As mentioned we normally do not touch the QTestUtil.java and instead

RE: Hive Unit Tests: Read-Only Table

2012-06-12 Thread Shefali Vohra
@hive.apache.org Subject: Re: Hive Unit Tests: Read-Only Table As mentioned we normally do not touch the QTestUtil.java and instead do all the work in q files. The only thing I can thing of is that the table name is bad or that you are overwriting and already existing table. It is hard to tell without

Re: Hive Unit Tests: Read-Only Table

2012-06-12 Thread Edward Capriolo
o: dev@hive.apache.org > Subject: Re: Hive Unit Tests: Read-Only Table > > 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 di

RE: Hive Unit Tests: Read-Only Table

2012-06-12 Thread Shefali Vohra
gt;getting the read-only error I described earlier. Do you know how to solve this >problem? Thank you! Shefali -Original Message- From: Edward Capriolo [mailto:edlinuxg...@gmail.com] Sent: Tuesday, June 12, 2012 12:01 PM To: dev@hive.apache.org Subject: Re: Hive Unit Tests: Read-Onl

Re: Hive Unit Tests: Read-Only Table

2012-06-12 Thread Edward Capriolo
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.

Hive Unit Tests: Read-Only Table

2012-06-12 Thread Shefali Vohra
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 h