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

SNOW-1618131: Remove error_on_generic_pruner integration test #1866

Merged
merged 2 commits into from
Aug 9, 2024
Merged
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
34 changes: 0 additions & 34 deletions src/test/java/net/snowflake/client/jdbc/SnowflakeDriverIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -1293,40 +1293,6 @@ private void addBindBatch(PreparedStatement preparedStatement, java.sql.Date sql
preparedStatement.addBatch();
}

@Test
@ConditionalIgnoreRule.ConditionalIgnore(condition = RunningOnGithubAction.class)
public void test31448() throws Throwable {
try (Connection connection = getConnection();
Statement statement = connection.createStatement()) {

statement.execute(
"alter session set enable_fix_31448_2=2, " + "error_on_generic_pruner=true;");

statement.execute("alter session set timestamp_type_mapping=timestamp_ntz");

statement.execute("create or replace table " + "bug56658(iv number, tsv timestamp_ntz)");
statement.execute(
"insert into bug56658 select seq8(), "
+ "timestampadd(day, seq8(), '1970-01-13 00:00:00'::timestamp_ntz)\n"
+ "from table(generator(rowcount=>20))");

connection
.unwrap(SnowflakeConnectionV1.class)
.getSfSession()
.setTimestampMappedType(SnowflakeType.TIMESTAMP_NTZ);
Timestamp ts = buildTimestamp(1970, 0, 15, 10, 14, 30, 0);
try (PreparedStatement preparedStatement =
connection.prepareStatement(
"select iv, tsv from bug56658 where tsv" + " >= ? and tsv <= ? order by iv;")) {
statement.execute("alter session set timestamp_type_mapping=timestamp_ntz");
Timestamp ts2 = buildTimestamp(1970, 0, 18, 10, 14, 30, 0);
preparedStatement.setTimestamp(1, ts);
preparedStatement.setTimestamp(2, ts2);
preparedStatement.executeQuery();
}
}
}

@Test
public void testBind() throws Throwable {
ResultSetMetaData resultSetMetaData = null;
Expand Down
Loading