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

Wrong steps list if call execute_steps() multiple times #291

Closed
StpMax opened this issue Aug 25, 2023 · 0 comments
Closed

Wrong steps list if call execute_steps() multiple times #291

StpMax opened this issue Aug 25, 2023 · 0 comments
Labels
bug Something isn't working planner

Comments

@StpMax
Copy link
Contributor

StpMax commented Aug 25, 2023

q = '''
    SELECT m.amount, m.weekly
    FROM example_db.data_big AS t JOIN mindsdb.byomp AS m
    WHERE t.weekly > 1 USING a=1
'''
ast = parse_sql(q, dialect='mindsdb')

planner = query_planner.QueryPlanner(
    ast,
    integrations=[{'name': 'example_db', 'type': 'data'}],
    predictor_metadata=[{'name': 'byomp', 'integration_name': 'mindsdb', 'timeseries': False}],
    default_namespace='mindsdb'
)
list(planner.execute_steps())
print(list(planner.execute_steps()))

in output each step will be 2 times.

@StpMax StpMax added the bug Something isn't working label Aug 25, 2023
@ea-rus ea-rus added the planner label Oct 9, 2023
@ea-rus ea-rus closed this as completed in e6d0107 Jan 16, 2024
@ea-rus ea-rus mentioned this issue Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working planner
Projects
None yet
Development

No branches or pull requests

2 participants