Example #1
0
 @Before
 public void setUp() throws Exception {
   // Logger.getRootLogger().setLevel(Level.TRACE);
   context.setGenWholePlan(false);
   // Use MemFMetaStore
   MemFMetaStore fmetaServices = new MemFMetaStore();
   reader = TableSchemaCacheReader.getInstance(conf, fmetaServices);
   context.setTsr(reader);
   fmetaServices.close();
   if (druidDDLParser == null) {
     druidDDLParser = new DruidDDLParser(conf);
   }
   if (druidDMLParser == null) {
     druidDMLParser = new DruidDMLParser(conf);
   }
   reader.clearCache();
   DruidParserTestUtil.loadTable(context, druidDDLParser, fmetaServices);
   // when loadData , reader will read some FTable into it
 }
Example #2
0
 @After
 public void tearDown() throws Exception {
   reader.clearCache();
   TableSchemaCacheReader.getInstance(conf, null);
 }