-
Notifications
You must be signed in to change notification settings - Fork 41
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
Refactor TableClient
to use Azure Data Tables SDK
#278
base: master
Are you sure you want to change the base?
Conversation
- Replace deprecated `storage` package with `aztables` for table client operations. - Update `NewTableClient` to initialize an `aztables.Client` using the new SDK. - Modify `Read` and `Write` methods to utilize `aztables` API. - Add support for context propagation in `Read` and `Write` methods. - Serialize and deserialize entity data with JSON for compatibility with `aztables`. - Remove outdated table service and entity handling logic.
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.
Copilot reviewed 4 out of 7 changed files in this pull request and generated no comments.
Files not reviewed (3)
- azkustodata/go.mod: Language not supported
- azkustoingest/go.mod: Language not supported
- go.work.sum: Language not supported
Comments suppressed due to low confidence (2)
azkustoingest/internal/status/status_table_client.go:62
- The comment is incorrect. It should say 'Write writes a table record containing ingestion status.'
// Write reads a table record cotaining ingestion status.
azkustoingest/result.go:70
- Using
context.Background()
here might not be ideal. Consider passing the context from the caller to ensure proper context propagation.
err = client.Write(context.Background(), r.record.IngestionSourceID.String(), r.record.ToMap())
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.
Some comments, but looks ok
storage
package withaztables
for table client operations.NewTableClient
to initialize anaztables.Client
using the new SDK.Read
andWrite
methods to utilizeaztables
API.Read
andWrite
methods.aztables
.Added
Changed
Fixed
Removed
Security