zeroshade commented on code in PR #30:
URL: https://github.com/apache/iceberg-terraform/pull/30#discussion_r3018135846


##########
internal/provider/resource_namespace.go:
##########
@@ -408,3 +409,16 @@ func (r *icebergNamespaceResource) Delete(ctx 
context.Context, req resource.Dele
                return
        }
 }
+
+func (r *icebergNamespaceResource) ImportState(ctx context.Context, req 
resource.ImportStateRequest, resp *resource.ImportStateResponse) {
+       resource.ImportStatePassthroughID(ctx, path.Root("id"), req, resp)
+
+       nameParts := strings.Split(req.ID, ".")

Review Comment:
   I agree here, we should filter out any empty segments



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to