Skip to content

Commit

Permalink
remove testThrowingGettingObjectIfTypeWasNotIndicatedAndFormatNativeA…
Browse files Browse the repository at this point in the history
…rrow test that was accidentally added while resolving conflicts
  • Loading branch information
sfc-gh-mkubik committed Nov 29, 2024
1 parent fedace4 commit 1d864ee
Showing 1 changed file with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,26 +238,6 @@ public void testReturnStructAsStringIfTypeWasNotIndicated(ResultSetFormatType fo
}
}

@ParameterizedTest
@ArgumentsSource(ResultFormatProvider.class)
@DontRunOnGithubActions
public void testThrowingGettingObjectIfTypeWasNotIndicatedAndFormatNativeArrow(
ResultSetFormatType format) throws SQLException {
Assumptions.assumeTrue(format == ResultSetFormatType.NATIVE_ARROW);
withFirstRow(
"select {'string':'a'}::OBJECT(string VARCHAR)",
(resultSet) -> {
assertThrows(SQLException.class, () -> resultSet.getObject(1));
},
format);
withFirstRow(
"select {'x':{'string':'one'},'y':{'string':'two'},'z':{'string':'three'}}::MAP(VARCHAR, OBJECT(string VARCHAR));",
(resultSet) -> {
assertThrows(SQLException.class, () -> resultSet.getObject(1, Map.class));
},
format);
}

@ParameterizedTest
@ArgumentsSource(ResultFormatProvider.class)
@DontRunOnGithubActions
Expand Down

0 comments on commit 1d864ee

Please sign in to comment.