Skip to content
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
7 changes: 4 additions & 3 deletions csharp/test/Drivers/Databricks/StatementTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,8 @@ protected override void PrepareCreateTableWithPrimaryKeys(out string sqlUpdate,

// NOTE: this is a thirty minute test. As of writing, databricks commands have 20 minutes of idle time (and checked every 5 mintues)
[SkippableTheory]
[InlineData(false, "CloudFetch disabled")] // TODO: test cloudfetch enabled
[InlineData(false, "CloudFetch disabled")]
[InlineData(true, "CloudFetch enabled")]
public async Task StatusPollerKeepsQueryAlive(bool useCloudFetch, string configName)
{
OutputHelper?.WriteLine($"Testing status poller with long delay between reads ({configName})");
Expand All @@ -450,7 +451,7 @@ public async Task StatusPollerKeepsQueryAlive(bool useCloudFetch, string configN
using var statement = connection.CreateStatement();

// Execute a query that should return data - using a larger dataset to ensure multiple batches
statement.SqlQuery = "SELECT id, CAST(id AS STRING) as id_string, id * 2 as id_doubled FROM RANGE(3000000)";
statement.SqlQuery = "SELECT id, CAST(id AS STRING) as id_string, id * 2 as id_doubled FROM RANGE(30000000)";
QueryResult result = statement.ExecuteQuery();

Assert.NotNull(result.Stream);
Expand All @@ -475,7 +476,7 @@ public async Task StatusPollerKeepsQueryAlive(bool useCloudFetch, string configN
}

// Verify we got all rows
Assert.Equal(3000000, totalRows);
Assert.Equal(30000000, totalRows);
Assert.True(batchCount > 1, "Should have read multiple batches");
OutputHelper?.WriteLine($"Successfully read {totalRows} rows in {batchCount} batches after 30 minute delay with {configName}");
}
Expand Down