Skip to content

Commit

Permalink
use kttm dataset stored in maven repo
Browse files Browse the repository at this point in the history
  • Loading branch information
kgyrtkirk committed Jun 26, 2024
1 parent a56c753 commit 3ff292a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
9 changes: 9 additions & 0 deletions quidem-it/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
<id>confluent</id>
<url>https://packages.confluent.io/maven/</url>
</repository>
<repository>
<id>datasets</id>
<url>https://raw.githubusercontent.com/kgyrtkirk/datasets/repo/</url>
</repository>
</repositories>

<properties>
Expand Down Expand Up @@ -488,6 +492,11 @@
<version>0.9.3</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.github.kgyrtkirk.datasets</groupId>
<artifactId>kttm-nested</artifactId>
<version>0.1</version>
</dependency>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-sts</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
package org.apache.druid.quidem;

import com.google.inject.Injector;
import org.apache.druid.data.input.ResourceInputSource;
import org.apache.druid.data.input.impl.DimensionSchema;
import org.apache.druid.data.input.impl.DimensionsSpec;
import org.apache.druid.data.input.impl.LocalInputSource;
import org.apache.druid.data.input.impl.LongDimensionSchema;
import org.apache.druid.data.input.impl.StringDimensionSchema;
import org.apache.druid.data.input.impl.TimestampSpec;
Expand Down Expand Up @@ -128,7 +128,11 @@ public static IncrementalIndex makeWikipediaIncrementalIndex()
// TestIndex.class.getClassLoader(),
// "kttm-nested-v2-2019-08-25.json"
// );
LocalInputSource inputSource = new LocalInputSource(new File("/home/dev/host/kttm"), "kttm*json");
ResourceInputSource inputSource = ResourceInputSource.of(
TestIndex.class.getClassLoader(),
"kttm-nested-v2-2019-08-25.json"
);
// LocalInputSource inputSource = new LocalInputSource(new File("/home/dev/host/kttm"), "kttm*json");
for (DimensionSchema dimensionSchema : dimensions) {

}
Expand Down

0 comments on commit 3ff292a

Please sign in to comment.