Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Destination Snowflake SQL compilation error #9006

Merged
Expand Up @@ -21,7 +21,7 @@ public class SnowflakeDatabase {

private static final Duration NETWORK_TIMEOUT = Duration.ofMinutes(1);
private static final Duration QUERY_TIMEOUT = Duration.ofHours(3);

private static final SnowflakeSQLNameTransformer nameTransformer = new SnowflakeSQLNameTransformer();
public static Connection getConnection(final JsonNode config) throws SQLException {
final String connectUrl = String.format("jdbc:snowflake://%s", config.get("host").asText());

Expand All @@ -32,7 +32,7 @@ public static Connection getConnection(final JsonNode config) throws SQLExceptio
properties.put("warehouse", config.get("warehouse").asText());
properties.put("database", config.get("database").asText());
properties.put("role", config.get("role").asText());
properties.put("schema", config.get("schema").asText());
properties.put("schema", nameTransformer.getIdentifier(config.get("schema").asText()));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@edgao this is a good candidate for the testing ticket


properties.put("networkTimeout", Math.toIntExact(NETWORK_TIMEOUT.toSeconds()));
properties.put("queryTimeout", Math.toIntExact(QUERY_TIMEOUT.toSeconds()));
Expand Down