@Test
  public void testValidations() throws Exception {
    runStatementOnDriver("drop table if exists t");
    runStatementOnDriver("drop table if exists tstage");
    runStatementOnDriver("create table t (a int, b int) clustered by (a) into 2 buckets stored as orc tblproperties('transactional'='true')");
    File createdFile= folder.newFile("myfile.txt");
    FileUtils.writeStringToFile(createdFile, "hello world");
    runStatementOnDriver("create table tstage (a int, b int) stored as orc tblproperties('transactional'='false')");
    //this creates an ORC data file with correct schema under table root
    runStatementOnDriver("insert into tstage values(1,2),(3,4)");
    // This will work with the new support of rewriting load into IAS.
    runStatementOnDriver("load data local inpath '" + getWarehouseDir() + "/tstage' into table t");
  }
By default you can't load into bucketed tables.  Things will break badly in acid (data loss, etc)
if loaded data is not bucketed properly.  This test is to capture that this is still the default.
If the default is changed, Load Data should probably do more validation to ensure data is
properly distributed into files and files are named correctly.
With the availability of new feature to rewrite such "load data" commands into insert-as-select,
the test should let the load data pass.
ql/src/test/org/apache/hadoop/hive/ql/TestTxnLoadData.java