This is an automated email from the ASF dual-hosted git repository.
curth pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git
The following commit(s) were added to refs/heads/main by this push:
new 65d2bed3 test(csharp/test/Drivers/Interop/Snowflake) Add test case for
showTerseTable and showTable (#1469)
65d2bed3 is described below
commit 65d2bed37fa1cdc67fcaefd1ac9cbf8af2e87aa0
Author: Ruoxuan Wang <[email protected]>
AuthorDate: Tue Jan 23 23:17:00 2024 +0800
test(csharp/test/Drivers/Interop/Snowflake) Add test case for
showTerseTable and showTable (#1469)
---
.../test/Drivers/Interop/Snowflake/ClientTests.cs | 36 ++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/csharp/test/Drivers/Interop/Snowflake/ClientTests.cs
b/csharp/test/Drivers/Interop/Snowflake/ClientTests.cs
index e8958650..94907cae 100644
--- a/csharp/test/Drivers/Interop/Snowflake/ClientTests.cs
+++ b/csharp/test/Drivers/Interop/Snowflake/ClientTests.cs
@@ -142,6 +142,42 @@ namespace Apache.Arrow.Adbc.Tests.Drivers.Interop.Snowflake
}
}
+ // <summary>
+ /// Validates if the client can connect to a live server
+ /// and parse the results.
+ /// </summary>
+ [SkippableFact, Order(4)]
+ public void CanClientExecuteQueryWithShowTerseTable()
+ {
+ SnowflakeTestConfiguration testConfiguration =
Utils.LoadTestConfiguration<SnowflakeTestConfiguration>(SnowflakeTestingUtils.SNOWFLAKE_TEST_CONFIG_VARIABLE);
+ testConfiguration.Query = "SHOW TERSE TABLES";
+ testConfiguration.ExpectedResultsCount = 0;
+
+ // Throw exception Apache.Arrow.Adbc.AdbcException
+ using (Adbc.Client.AdbcConnection adbcConnection =
GetSnowflakeAdbcConnectionUsingConnectionString(testConfiguration))
+ {
+ Tests.ClientTests.CanClientExecuteQuery(adbcConnection,
testConfiguration);
+ }
+ }
+
+ // <summary>
+ /// Validates if the client can connect to a live server
+ /// and parse the results.
+ /// </summary>
+ [SkippableFact, Order(4)]
+ public void CanClientExecuteQueryWithShowTable()
+ {
+ SnowflakeTestConfiguration testConfiguration =
Utils.LoadTestConfiguration<SnowflakeTestConfiguration>(SnowflakeTestingUtils.SNOWFLAKE_TEST_CONFIG_VARIABLE);
+ testConfiguration.Query = "SHOW TABLES";
+ testConfiguration.ExpectedResultsCount = 0;
+
+ // Throw exception Apache.Arrow.Adbc.AdbcException
+ using (Adbc.Client.AdbcConnection adbcConnection =
GetSnowflakeAdbcConnectionUsingConnectionString(testConfiguration))
+ {
+ Tests.ClientTests.CanClientExecuteQuery(adbcConnection,
testConfiguration);
+ }
+ }
+
/// <summary>
/// Validates if the client can connect to a live server
/// using a connection string / private key and parse the results.