Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Support BQ plugin to write structured dataset as output #233

Merged
merged 2 commits into from
Jan 21, 2022

Conversation

pingsutw
Copy link
Member

Signed-off-by: Kevin Su [email protected]

TL;DR

support BQ plugin to write structured dataset as output

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

How did you fix the bug, make the feature etc. Link to any design docs etc

Tracking Issue

Related to flyteorg/flytekit#789

Follow-up issue

NA

Signed-off-by: Kevin Su <[email protected]>
@codecov
Copy link

codecov bot commented Jan 14, 2022

Codecov Report

Merging #233 (372c78c) into master (4362382) will increase coverage by 0.11%.
The diff coverage is 83.10%.

❗ Current head 372c78c differs from pull request most recent head 7e0e7ba. Consider uploading reports for the commit 7e0e7ba to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master     #233      +/-   ##
==========================================
+ Coverage   62.29%   62.41%   +0.11%     
==========================================
  Files         141      142       +1     
  Lines        8811     8831      +20     
==========================================
+ Hits         5489     5512      +23     
+ Misses       2823     2819       -4     
- Partials      499      500       +1     
Flag Coverage Δ
unittests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
go/tasks/plugins/k8s/pod/container.go 71.42% <71.42%> (ø)
go/tasks/plugins/webapi/bigquery/plugin.go 67.25% <79.48%> (+1.66%) ⬆️
go/tasks/plugins/k8s/pod/sidecar.go 80.21% <80.21%> (ø)
go/tasks/plugins/k8s/pod/plugin.go 89.02% <89.02%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4362382...7e0e7ba. Read the comment docs.

@@ -273,13 +280,54 @@ func (p Plugin) Status(_ context.Context, tCtx webapi.StatusContext) (phase core
resource.Status.ErrorResult.Message,
taskInfo), nil
}

err = writeOutput(ctx, tCtx, resource.OutputLocation)
Copy link
Contributor

Choose a reason for hiding this comment

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

i'm confused, were we not writing an output before?

Copy link
Member Author

Choose a reason for hiding this comment

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

We didn't write any output before.

Copy link
Contributor

@wild-endeavor wild-endeavor left a comment

Choose a reason for hiding this comment

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

+1 but a question

@pingsutw pingsutw merged commit 590813b into master Jan 21, 2022
eapolinario pushed a commit that referenced this pull request Sep 6, 2023
* BQ output structured dataset

Signed-off-by: Kevin Su <[email protected]>

* Fixed test

Signed-off-by: Kevin Su <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants