Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-astachowski committed Oct 31, 2024
1 parent 335828e commit 5f578b2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,11 @@
import java.sql.Time;
import java.sql.Timestamp;
import java.util.TimeZone;

import net.snowflake.client.annotations.DontRunOnGithubActions;
import net.snowflake.client.category.TestTags;
import net.snowflake.client.providers.SimpleFormatProvider;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ArgumentsSource;

Expand Down Expand Up @@ -300,7 +298,8 @@ public void testSetObjectMethodWithLargeBigIntegerColumn(String queryResultForma

@ParameterizedTest
@ArgumentsSource(SimpleFormatProvider.class)
public void testBatchInsertWithTimestampInputFormatSet(String queryResultFormat) throws SQLException {
public void testBatchInsertWithTimestampInputFormatSet(String queryResultFormat)
throws SQLException {
TimeZone originalTimeZone = TimeZone.getDefault();
TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
try (Connection connection = getConn(queryResultFormat);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,10 @@
import java.util.Calendar;
import java.util.Set;
import java.util.TimeZone;

import net.snowflake.client.annotations.DontRunOnGithubActions;
import net.snowflake.client.category.TestTags;
import net.snowflake.client.providers.SimpleFormatProvider;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ArgumentsSource;

Expand Down Expand Up @@ -258,7 +256,8 @@ public void testPrepareShowCommand(String queryResultFormat) throws SQLException
@ParameterizedTest
@ArgumentsSource(SimpleFormatProvider.class)
@DontRunOnGithubActions
public void testPrepareTimeout(String queryResultFormat) throws SQLException, InterruptedException {
public void testPrepareTimeout(String queryResultFormat)
throws SQLException, InterruptedException {
try (Connection adminCon = getSnowflakeAdminConnection();
Statement adminStatement = adminCon.createStatement()) {
adminStatement.execute("alter system set enable_combined_describe=true");
Expand Down Expand Up @@ -530,9 +529,9 @@ public void testBindTimestampTZViaStringBatch(String queryResultFormat) throws S
statement.execute(
"create or replace table testbindtstz(cola timestamp_tz, colb timestamp_ntz)");
statement.execute(
"ALTER SESSION SET TIMESTAMP_OUTPUT_FORMAT='DY, DD MON YYYY HH24:MI:SS TZHTZM'");
"ALTER SESSION SET TIMESTAMP_OUTPUT_FORMAT='DY, DD MON YYYY HH24:MI:SS TZHTZM'");
statement.execute(
"ALTER SESSION SET TIMESTAMP_NTZ_OUTPUT_FORMAT='DY, DD MON YYYY HH24:MI:SS TZHTZM'");
"ALTER SESSION SET TIMESTAMP_NTZ_OUTPUT_FORMAT='DY, DD MON YYYY HH24:MI:SS TZHTZM'");

try (PreparedStatement preparedStatement =
connection.prepareStatement("insert into testbindtstz values(?,?)")) {
Expand Down Expand Up @@ -670,7 +669,8 @@ public void testPreparedStatementWithSkipParsing(String queryResultFormat) throw

@ParameterizedTest
@ArgumentsSource(SimpleFormatProvider.class)
public void testPreparedStatementWithSkipParsingAndBinding(String queryResultFormat) throws Exception {
public void testPreparedStatementWithSkipParsingAndBinding(String queryResultFormat)
throws Exception {
try (Connection con = getConn(queryResultFormat);
Statement statement = con.createStatement()) {
statement.execute("create or replace table t(c1 int)");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import net.snowflake.client.category.TestTags;
import net.snowflake.client.providers.SimpleFormatProvider;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ArgumentsSource;

Expand Down Expand Up @@ -269,7 +268,8 @@ public void testRemoveExtraDescribeCalls(String queryResultFormat) throws SQLExc

@ParameterizedTest
@ArgumentsSource(SimpleFormatProvider.class)
public void testRemoveExtraDescribeCallsSanityCheck(String queryResultFormat) throws SQLException {
public void testRemoveExtraDescribeCallsSanityCheck(String queryResultFormat)
throws SQLException {
String queryId1;
try (Connection connection = getConn(queryResultFormat)) {
try (PreparedStatement preparedStatement =
Expand Down

0 comments on commit 5f578b2

Please sign in to comment.