-
Notifications
You must be signed in to change notification settings - Fork 401
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from databrickslabs/master
pull updates from fork
- Loading branch information
Showing
77 changed files
with
1,046 additions
and
880 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,19 @@ | ||
package model | ||
|
||
// CommandResults is the out put when the command finishes in API 1.2 | ||
type CommandResults struct { | ||
ResultType string `json:"resultType,omitempty"` | ||
Summary string `json:"summary,omitempty"` | ||
Cause string `json:"cause,omitempty"` | ||
Data interface{} `json:"data,omitempty"` | ||
Schema interface{} `json:"schema,omitempty"` | ||
Truncated bool `json:"truncated,omitempty"` | ||
IsJsonSchema bool `json:"isJsonSchema,omitempty"` | ||
IsJSONSchema bool `json:"isJsonSchema,omitempty"` | ||
} | ||
|
||
// Command is the struct that contains what the 1.2 api returns for the commands api | ||
type Command struct { | ||
ID string `json:"id,omitempty"` | ||
Status string `json:"status,omitempty"` | ||
Results *CommandResults `json:"results,omitempty"` | ||
} | ||
|
||
type ExecutionContext struct { | ||
ContextId string `json:"contextId,omitempty"` | ||
ClusterId string `json:"clusterId,omitempty"` | ||
Language Language `json:"language,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.