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

[Error Message] Dataclasses Mismatched Type #2650

Merged
merged 3 commits into from
Aug 6, 2024

Conversation

Future-Outlier
Copy link
Member

@Future-Outlier Future-Outlier commented Aug 5, 2024

Tracking issue

Why are the changes needed?

The error message is not clear for dataclasses output.

What changes were proposed in this pull request?

print actual output type and expected output type.

How was this patch tested?

local execution, remote execution and unit tests.

Screenshots

Before

image image

After

image image

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Related PRs

Docs link

Signed-off-by: Future-Outlier <eric901201@gmail.com>
Signed-off-by: Future-Outlier <eric901201@gmail.com>
Signed-off-by: Future-Outlier <eric901201@gmail.com>
@Future-Outlier Future-Outlier changed the title [Error Message] Show Type Conversion Error [Error Message] dataclasses mismatched type Aug 5, 2024
@Future-Outlier Future-Outlier changed the title [Error Message] dataclasses mismatched type [Error Message] Dataclasses Mismatched Type Aug 5, 2024
@Future-Outlier Future-Outlier merged commit d802c7e into master Aug 6, 2024
97 checks passed
Future-Outlier added a commit that referenced this pull request Aug 6, 2024
* Show different of types in dataclass when transforming error

Signed-off-by: Future-Outlier <eric901201@gmail.com>

* add tests for dataclass

Signed-off-by: Future-Outlier <eric901201@gmail.com>

* fix tests

Signed-off-by: Future-Outlier <eric901201@gmail.com>

---------

Signed-off-by: Future-Outlier <eric901201@gmail.com>
mao3267 pushed a commit to mao3267/flytekit that referenced this pull request Aug 9, 2024
* Show different of types in dataclass when transforming error

Signed-off-by: Future-Outlier <eric901201@gmail.com>

* add tests for dataclass

Signed-off-by: Future-Outlier <eric901201@gmail.com>

* fix tests

Signed-off-by: Future-Outlier <eric901201@gmail.com>

---------

Signed-off-by: Future-Outlier <eric901201@gmail.com>
Signed-off-by: mao3267 <chenvincent610@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants