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

evadb.executor.executor_utils.ExecutorError: could not convert string to float: '2022-09-19' #1184

Closed
1 of 2 tasks
haoranx3 opened this issue Sep 21, 2023 · 3 comments
Closed
1 of 2 tasks
Assignees
Labels
Bug 🐞 EVA is not working as expected

Comments

@haoranx3
Copy link

Search before asking

  • I have searched the EvaDB issues and found no similar bug report.

Bug

Running into error could not convert string to float: '2022-09-19' when creating a forecast function as follow:

cursor.query("""
  CREATE FUNCTION IF NOT EXISTS StockPriceForecast FROM
    (
      SELECT date, open, close, high, low, volume
      FROM postgres_data.historical_stock_price
    )
  TYPE Forecasting
  PREDICT 'high'
  TIME 'date'
  FREQUENCY 'W'
""").df()

Table schema:

CREATE TABLE IF NOT EXISTS historical_stock_price (date VARCHAR(64), open decimal, close decimal, high decimal, low decimal, volume INT)

Example data set:

Date Open High Low Close Volume
2022-09-20 242.07000732421900 243.50999450683600 239.63999938964800 242.4499969482420 26660300
2022-09-21 244.27000427246100 247.66000366210900 238.89999389648400 238.9499969482420 28625600

Environment

  • evaDB: 0.3.4
  • Python: 3.11
  • os: Mac

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!
@github-actions
Copy link
Contributor

👋 Hello @haoranx3, thanks for your interest in EVA DB 🙏 Please visit our 🔮 Tutorials to get started, where you can find quickstart guides for simple tasks like Image Classification all the way to more interesting tasks like Emotion Analysis.

If this is a 🐞 Bug Report, please provide a minimum reproducible example to help us debug it.

If this is a ❓ Question, please provide as much information as possible, including dataset examples and query results.

@xzdandy xzdandy self-assigned this Sep 21, 2023
@xzdandy xzdandy added the Bug 🐞 EVA is not working as expected label Sep 21, 2023
@xzdandy
Copy link
Collaborator

xzdandy commented Sep 21, 2023

Hi @haoranx3, could you try installing the latest EvaDB? I can not reproduce this error on EvaDB v0.3.6. Notice, you need the following query on the latest EvaDB.

CREATE FUNCTION IF NOT EXISTS StockPriceForecast FROM
    (
      SELECT date, high
      FROM postgres_data.historical_stock_price
    )
  TYPE Forecasting
  PREDICT 'high'
  TIME 'date'
  FREQUENCY 'W';

@haoranx3
Copy link
Author

Thank you! upgrading evadb solves the issue

@xzdandy xzdandy closed this as completed Sep 21, 2023
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

No branches or pull requests

2 participants