Skip to content

fix(writers): Assert unimplemented interface at compile-time#857

Merged
kodiakhq[bot] merged 1 commit intomainfrom
fix/v3/match-unimplemented-writers
May 10, 2023
Merged

fix(writers): Assert unimplemented interface at compile-time#857
kodiakhq[bot] merged 1 commit intomainfrom
fix/v3/match-unimplemented-writers

Conversation

@candiduslynx
Copy link
Copy Markdown
Contributor

No description provided.

type UnimplementedUnmanagedWriter struct{}

func (*UnimplementedUnmanagedWriter) Write(context.Context, schema.Schemas, <-chan arrow.Record) error {
func (UnimplementedUnmanagedWriter) Write(context.Context, schema.Tables, <-chan arrow.Record) error {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

using value receiver here as empty struct consumes no memory

@github-actions
Copy link
Copy Markdown

⏱️ Benchmark results

Comparing with 1265554

  • Glob-2 ns/op: 254.4 ⬇️ 15.68% decrease vs. 1265554

@codecov
Copy link
Copy Markdown

codecov bot commented May 10, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (1265554) 48.09% compared to head (214ddaa) 48.09%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #857   +/-   ##
=======================================
  Coverage   48.09%   48.09%           
=======================================
  Files          29       29           
  Lines        2439     2439           
=======================================
  Hits         1173     1173           
  Misses       1164     1164           
  Partials      102      102           

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@kodiakhq kodiakhq bot merged commit 9cacb00 into main May 10, 2023
@kodiakhq kodiakhq bot deleted the fix/v3/match-unimplemented-writers branch May 10, 2023 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants