Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new feature to the
Microsoft.Azure.Databricks.Client
library. The changes provide the ability to execute SQL statements, cancel statement execution, get the status, manifest, and result first chunk of a statement execution, and get result chunks by index. The changes also include a sample program and tests for the new feature.New Feature Implementation:
csharp/Microsoft.Azure.Databricks.Client/ISQLApi.cs
: AddedIStatementExecutionApi
interface to theISQLApi
interface. This new interface includes methods for executing SQL statements, cancelling statement execution, getting the status, manifest, and result first chunk of a statement execution, and getting result chunks by index. [1] [2]csharp/Microsoft.Azure.Databricks.Client/SQLApiClient.cs
: Implemented theIStatementExecutionApi
interface in theSQLApiClient
class.csharp/Microsoft.Azure.Databricks.Client/StatementExecutionApiClient.cs
: Created a new classStatementExecutionApiClient
that extends theApiClient
class and implements theIStatementExecutionApi
interface. This class includes the logic for the methods defined in theIStatementExecutionApi
interface.Sample Program:
csharp/Microsoft.Azure.Databricks.Client.Sample/SampleProgram.StatementExecution.cs
: Created a new sample program that demonstrates the use of the new feature.csharp/Microsoft.Azure.Databricks.Client.Sample/SampleProgram.cs
: Modified the main function to call the new sample program.Tests:
csharp/Microsoft.Azure.Databricks.Client.Test/StatementExecutionApiClientTest.cs
: Created tests for the new feature.