Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions pipeline/spanner/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,15 @@
<scope>test</scope>
</dependency>
</dependencies>

<build>
<resources>
<resource>
<directory>../workflow/ingestion-helper</directory>
<includes>
<include>schema.sql</include>
</includes>
</resource>
</resources>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -231,17 +231,17 @@ public void validateOrInitializeDatabase() {
}
}

/** Reads DDL statements from the spanner_schema.sql file in the resources directory. */
/** Reads DDL statements from the schema.sql file in the resources directory. */
List<String> readDdlStatements() {
InputStream inputStream = getClass().getClassLoader().getResourceAsStream("spanner_schema.sql");
InputStream inputStream = getClass().getClassLoader().getResourceAsStream("schema.sql");
if (inputStream == null) {
throw new IllegalStateException("Could not find spanner_schema.sql in resources.");
throw new IllegalStateException("Could not find schema.sql in resources.");
}
try (BufferedReader reader =
new BufferedReader(new InputStreamReader(inputStream, StandardCharsets.UTF_8))) {
return parseDdlStatements(reader);
} catch (IOException e) {
throw new IllegalStateException("Failed to read spanner_schema.sql", e);
throw new IllegalStateException("Failed to read schema.sql", e);
}
}

Expand Down
34 changes: 0 additions & 34 deletions pipeline/spanner/src/main/resources/spanner_schema.sql

This file was deleted.

Loading