@BeforeClass
public static void setup_TestEncodedFieldPaths() throws Exception {
try (Table table = DBTests.createOrReplaceTable(TABLE_NAME, ImmutableMap.of("codes", "codes"))) {
tableCreated = true;
tablePath = table.getPath().toUri().getPath();
DBTests.createIndex(TABLE_NAME, INDEX_NAME, new String[] {"age"}, new String[] {"name.last", "data.salary"});
DBTests.admin().getTableIndexes(table.getPath(), true);
try (final InputStream in = TestEncodedFieldPaths.class.getResourceAsStream(JSON_FILE_URL);
final DocumentStream stream = Json.newDocumentStream(in);) {
table.insertOrReplace(stream);
table.flush();
}
DBTests.waitForRowCount(table.getPath(), 5, INDEX_FLUSH_TIMEOUT);
DBTests.waitForIndexFlush(table.getPath(), INDEX_FLUSH_TIMEOUT);
} finally {
test("ALTER SESSION SET `planner.disable_full_table_scan` = true");
}
}