org.apache.hadoop.hive.ql
Class TestLocationQueries

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.hadoop.hive.ql.BaseTestQueries
              extended by org.apache.hadoop.hive.ql.TestLocationQueries
All Implemented Interfaces:
junit.framework.Test

public class TestLocationQueries
extends BaseTestQueries

Suite for testing location. e.g. if "alter table alter partition location" is run, do the partitions end up in the correct location. This is a special case of the regular queries as paths are typically ignored.


Nested Class Summary
static class TestLocationQueries.CheckResults
          Our own checker - validate the location of the partition.
 
Field Summary
 
Fields inherited from class org.apache.hadoop.hive.ql.BaseTestQueries
inpDir, logDir, resDir
 
Constructor Summary
TestLocationQueries()
           
 
Method Summary
 void testAlterTablePartitionLocation_alter5()
          Verify that the location of the partition is valid.
 
Methods inherited from class org.apache.hadoop.hive.ql.BaseTestQueries
setupQFiles
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestLocationQueries

public TestLocationQueries()
Method Detail

testAlterTablePartitionLocation_alter5

public void testAlterTablePartitionLocation_alter5()
                                            throws Exception
Verify that the location of the partition is valid. In this case the path should end in "parta" and not "dt=a" (the default).

Throws:
Exception


Copyright © 2013 The Apache Software Foundation