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

Set the right output column type for forecast functions #1108

Conversation

xzdandy
Copy link
Collaborator

@xzdandy xzdandy commented Sep 13, 2023

Current forecast functions only output the y value. This PR fixes the binded output column, so forecasting functions also return unqiue_id and datastamp column.

  • Fix binded output column object
  • Fix forecast test cases
  • Add new binder testcases for binded output column object.

@xzdandy xzdandy added the Bug 🐞 EVA is not working as expected label Sep 13, 2023
@xzdandy xzdandy added this to the v0.3.5 milestone Sep 13, 2023
@xzdandy xzdandy self-assigned this Sep 13, 2023
@xzdandy xzdandy linked an issue Sep 13, 2023 that may be closed by this pull request
2 tasks
@xzdandy xzdandy requested a review from americast September 13, 2023 08:23
@xzdandy
Copy link
Collaborator Author

xzdandy commented Sep 13, 2023

@hershd23 I have moved the test_string_matching_case_insensitive to the new test/unit_tests/utils/test_generic_utils.py file and made some minor changes. Please take a look.

@xzdandy xzdandy marked this pull request as ready for review September 13, 2023 08:24
if frequency is None:
raise RuntimeError(
f"Can not infer the frequency for {self.node.name}. Please explictly set it."
)
Copy link
Member

Choose a reason for hiding this comment

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

This is great, thanks for adding this!

Copy link
Member

@americast americast left a comment

Choose a reason for hiding this comment

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

Looks great, thanks taking care of this @xzdandy!

Copy link
Contributor

@hershd23 hershd23 left a comment

Choose a reason for hiding this comment

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

Looks good to me!

from evadb.utils.generic_utils import string_comparison_case_insensitive


class GenericUtilsTests(unittest.TestCase):
Copy link
Contributor

Choose a reason for hiding this comment

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

Ah I was wondering whether to create a new test file add in a new file or not. Thanks for this, makes it clear

@xzdandy xzdandy merged commit a40c72e into staging Sep 13, 2023
@xzdandy xzdandy deleted the 1102-the-output-column-of-forecast-functions-are-not-correctly-set branch September 13, 2023 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐞 EVA is not working as expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The output column of forecast functions are not correctly set
3 participants