File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed
src/test/java/org/apache/drill/exec/store/daffodil Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 3131 <artifactId >drill-format-daffodil</artifactId >
3232 <name >Drill : Contrib : Format : Daffodil</name >
3333
34+ <properties >
35+ <daffodil .version>3.10.0</daffodil .version>
36+ </properties >
37+
3438 <dependencies >
3539 <dependency >
3640 <groupId >org.apache.drill.exec</groupId >
4044 <dependency >
4145 <groupId >org.apache.daffodil</groupId >
4246 <artifactId >daffodil-japi_2.12</artifactId >
43- <version >3.8.0 </version >
47+ <version >${daffodil.version} </version >
4448 </dependency >
4549 <dependency >
4650 <groupId >org.apache.daffodil</groupId >
4751 <artifactId >daffodil-runtime1_2.12</artifactId >
48- <version >3.8.0 </version >
52+ <version >${daffodil.version} </version >
4953 </dependency >
5054 <!-- Test dependencies -->
5155 <dependency >
Original file line number Diff line number Diff line change 3232import org .junit .Test ;
3333import org .junit .experimental .categories .Category ;
3434
35+ import java .net .URISyntaxException ;
3536import java .nio .file .Paths ;
3637
3738import static org .junit .Assert .assertEquals ;
4041@ Category (RowSetTest .class )
4142public class TestDaffodilReader extends ClusterTest {
4243
43- String schemaURIRoot = "file:///opt/drill/contrib/format-daffodil/src/test/resources/" ;
44+ final String SCHEMA_URI_ROOT = getClass ()
45+ .getClassLoader ()
46+ .getResource ("schema/" )
47+ .toURI ()
48+ .toString ();
49+
50+ public TestDaffodilReader () throws URISyntaxException {
51+ }
4452
4553 @ BeforeClass
4654 public static void setup () throws Exception {
@@ -59,7 +67,7 @@ public static void setup() throws Exception {
5967
6068 private String selectRow (String schema , String file ) {
6169 return "SELECT * FROM table(dfs.`data/" + file + "` " + " (type => 'daffodil'," + " " +
62- "validationMode => 'true', " + " schemaURI => '" + schemaURIRoot + "schema/" + schema +
70+ "validationMode => 'true', " + " schemaURI => '" + SCHEMA_URI_ROOT + schema +
6371 ".dfdl.xsd'," + " rootName => 'row'," + " rootNamespace => null " + "))" ;
6472 }
6573
You can’t perform that action at this time.
0 commit comments