-
Notifications
You must be signed in to change notification settings - Fork 393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RESOURCE] databricks_sql_endpoint #498
Conversation
Codecov Report
@@ Coverage Diff @@
## master #498 +/- ##
==========================================
- Coverage 80.80% 80.37% -0.44%
==========================================
Files 76 77 +1
Lines 6382 6502 +120
==========================================
+ Hits 5157 5226 +69
- Misses 847 891 +44
- Partials 378 385 +7
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good. Are you planning to add the doc for endpoint later?
@georgeteo this is the PR |
Addresses #457
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the documentation needs to be updated about max_num_clusters
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
} | ||
|
||
// Create ... | ||
func (a SQLEndpointsAPI) Create(se *SQLEndpoint, timeout time.Duration) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically, CreateEndpoint and EditEndpoint are different proto messages from the EndpointInfo returned by GetEndpoint or ListEndpoints.
So far, the fields have mirrored them 1:1 but is not necessarily true in the future.
if err != nil { | ||
return err | ||
} | ||
return a.waitForRunning(se.ID, timeout) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI: This may take a couple minutes b/c we wait for the Spark cluster to be running.
|
||
// Edit ... | ||
func (a SQLEndpointsAPI) Edit(se SQLEndpoint) error { | ||
return a.client.Post(a.context, fmt.Sprintf("/sql/endpoints/%s/edit", se.ID), se, nil) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI: Edit supports patch/incremental update. It's fine if you treat it as a post.
Addresses #457