close
Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions csharp/test/Drivers/Apache/Common/ClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public ClientTests(ITestOutputHelper? outputHelper, TestEnvironment<TConfig>.Fac
{
Skip.IfNot(Utils.CanExecuteTestConfig(TestConfigVariable));
}

internal virtual string FormatTableName => TestConfiguration.Metadata.Table;
/// <summary>
/// Validates if the client execute updates.
/// </summary>
Expand Down Expand Up @@ -73,7 +73,7 @@ public void CanClientGetSchema()
{
using (Adbc.Client.AdbcConnection adbcConnection = GetAdbcConnection())
{
Tests.ClientTests.CanClientGetSchema(adbcConnection, TestConfiguration, $"SELECT * FROM {TestConfiguration.Metadata.Table}");
Tests.ClientTests.CanClientGetSchema(adbcConnection, TestConfiguration, $"SELECT * FROM {FormatTableName}");
}
}

Expand Down Expand Up @@ -102,7 +102,7 @@ public void CanClientExecuteEmptyQuery()
Tests.ClientTests.CanClientExecuteQuery(
adbcConnection,
TestConfiguration,
customQuery: $"SELECT * FROM {TestConfiguration.Metadata.Table} WHERE FALSE",
customQuery: $"SELECT * FROM {FormatTableName} WHERE FALSE",
expectedResultsCount: 0);
}
}
Expand Down
4 changes: 3 additions & 1 deletion csharp/test/Drivers/Apache/Common/DriverTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -604,10 +604,12 @@ public async Task CanExecuteQueryAsyncEmptyResult()
using AdbcConnection adbcConnection = NewConnection();
using AdbcStatement statement = adbcConnection.CreateStatement();

statement.SqlQuery = $"SELECT * from {TestConfiguration.Metadata.Table} WHERE FALSE";
statement.SqlQuery = $"SELECT * from {FormatTableName} WHERE FALSE";
QueryResult queryResult = await statement.ExecuteQueryAsync();

await Tests.DriverTests.CanExecuteQueryAsync(queryResult, 0);
}

internal virtual string FormatTableName => TestConfiguration.Metadata.Table;
}
}
3 changes: 3 additions & 0 deletions csharp/test/Drivers/Databricks/E2E/ClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,8 @@ internal static IReadOnlyList<int> GetUpdateExpectedResults(int affectedRows, bo
affectedRows, // DELETE
];
}

internal override string FormatTableName =>
$"{TestConfiguration.Metadata.Catalog}.{TestConfiguration.Metadata.Schema}.{TestConfiguration.Metadata.Table}";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ public async Task StopAsync_Timeout()
Assert.True(timedOut, "Fetch operation should have timed out due to QueryTimeoutSeconds setting");

// Wait a bit for the fetcher to complete its error handling
//await Task.Delay(100);
await Task.Delay(100);

// Verify the fetcher state
Assert.True(_resultFetcher.IsCompleted);
Expand Down
3 changes: 3 additions & 0 deletions csharp/test/Drivers/Databricks/E2E/DriverTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,5 +182,8 @@ protected override bool TypeHasColumnSize(Metadata.AdbcColumn column)
return false;
}
}

internal override string FormatTableName =>
$"{TestConfiguration.Metadata.Catalog}.{TestConfiguration.Metadata.Schema}.{TestConfiguration.Metadata.Table}";
}
}
Loading