Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ public enum DatabricksJdbcUrlParams {
"EnableTokenFederation", "Enable token federation for authentication", "1"),
ENABLE_STREAMING_CHUNK_PROVIDER(
"EnableStreamingChunkProvider",
"Enable streaming chunk provider for result fetching (experimental)",
"0"),
"Enable streaming chunk provider for result fetching",
"1"),
LINK_PREFETCH_WINDOW(
"LinkPrefetchWindow",
"Number of chunk links to prefetch ahead of consumption. "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -478,15 +478,14 @@ public void testNullComplexTypeWithComplexDatatypeSupportDisabled() throws Excep

@Test
public void testStreamingChunkProviderEnabledForSeaResult() throws Exception {
// Enable StreamingChunkProvider via connection property
// StreamingChunkProvider is enabled by default
Properties props = new Properties();
props.setProperty("EnableStreamingChunkProvider", "1");
IDatabricksConnectionContext connectionContext =
DatabricksConnectionContextFactory.create(JDBC_URL, props);

assertTrue(
connectionContext.isStreamingChunkProviderEnabled(),
"StreamingChunkProvider should be enabled via property");
"StreamingChunkProvider should be enabled by default");

DatabricksSession localSession = new DatabricksSession(connectionContext, mockedSdkClient);

Expand Down Expand Up @@ -518,14 +517,15 @@ public void testStreamingChunkProviderEnabledForSeaResult() throws Exception {

@Test
public void testStreamingChunkProviderDisabledUsesRemoteChunkProvider() throws Exception {
// Default properties - StreamingChunkProvider disabled
// Explicitly disable StreamingChunkProvider to use RemoteChunkProvider
Properties props = new Properties();
props.setProperty("EnableStreamingChunkProvider", "0");
IDatabricksConnectionContext connectionContext =
DatabricksConnectionContextFactory.create(JDBC_URL, props);

assertFalse(
connectionContext.isStreamingChunkProviderEnabled(),
"StreamingChunkProvider should be disabled by default");
"StreamingChunkProvider should be disabled when explicitly set to 0");

DatabricksSession localSession = new DatabricksSession(connectionContext, mockedSdkClient);

Expand Down
Loading