Skip to content
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

Csvtransform #1671

Merged
merged 5 commits into from
Jul 6, 2023
Merged

Csvtransform #1671

merged 5 commits into from
Jul 6, 2023

Conversation

ChungYujoyce
Copy link
Contributor

@ChungYujoyce ChungYujoyce commented Jun 2, 2023

Data Type transformation (Pandas <-> CSV) and its unit tests

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

add an encoder and decoder for pandas <-> CSV transformation

Tracking Issue

https://github.com/flyteorg/flyte/issues/

Follow-up issue

NA
OR
https://github.com/flyteorg/flyte/issues/

Comment on lines 721 to 724
def result_command(ctx: click.Context):
if ctx is not None:
filename = ctx.obj[RUN_LEVEL_PARAMS_KEY].get('filename')
if os.path.exists(filename):
Copy link
Member

Choose a reason for hiding this comment

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

Could you create a new PR? this PR should not contain these changes.

Signed-off-by: ChungYujoyce <joyce.bhps@gmail.com>
Signed-off-by: ChungYujoyce <joyce.bhps@gmail.com>
@codecov
Copy link

codecov bot commented Jun 8, 2023

Codecov Report

Merging #1671 (7261202) into master (1952a56) will increase coverage by 0.02%.
The diff coverage is 84.31%.

❗ Current head 7261202 differs from pull request most recent head 3a03885. Consider uploading reports for the commit 3a03885 to get more accurate results

@@            Coverage Diff             @@
##           master    #1671      +/-   ##
==========================================
+ Coverage   71.00%   71.03%   +0.02%     
==========================================
  Files         336      336              
  Lines       30788    30839      +51     
  Branches     5587     5592       +5     
==========================================
+ Hits        21862    21906      +44     
+ Misses       8379     8376       -3     
- Partials      547      557      +10     
Impacted Files Coverage Δ
flytekit/types/structured/structured_dataset.py 60.15% <0.00%> (-0.16%) ⬇️
flytekit/types/structured/basic_dfs.py 78.37% <75.00%> (-1.14%) ⬇️
...ekit/unit/core/test_structured_dataset_handlers.py 100.00% <100.00%> (ø)
...ctured_dataset/test_structured_dataset_workflow.py 99.30% <100.00%> (+0.06%) ⬆️

... and 4 files with indirect coverage changes

Comment on lines +39 to +40
class PandasToCSVEncodingHandler(StructuredDatasetEncoder):
def __init__(self):
Copy link
Member

Choose a reason for hiding this comment

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

You need to register the handler in this file

SupermicroML and others added 2 commits June 23, 2023 11:50
Signed-off-by: Joyce Huang (System) <Joyce_Huang@supermicro.com>
pingsutw
pingsutw previously approved these changes Jun 29, 2023
Signed-off-by: Kevin Su <pingsutw@apache.org>
@pingsutw pingsutw merged commit 26291f1 into flyteorg:master Jul 6, 2023
126 checks passed
fg91 pushed a commit that referenced this pull request Aug 15, 2023
Signed-off-by: ChungYujoyce <joyce.bhps@gmail.com>
Signed-off-by: Joyce Huang (System) <Joyce_Huang@supermicro.com>
Signed-off-by: Kevin Su <pingsutw@apache.org>
Co-authored-by: Joyce Huang (System) <Joyce_Huang@supermicro.com>
Co-authored-by: Kevin Su <pingsutw@gmail.com>
Co-authored-by: Kevin Su <pingsutw@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants