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

Support inserting into postgres directly from evadb's select query #1000

Closed
1 of 2 tasks
gaurav274 opened this issue Aug 30, 2023 · 0 comments · Fixed by #1125
Closed
1 of 2 tasks

Support inserting into postgres directly from evadb's select query #1000

gaurav274 opened this issue Aug 30, 2023 · 0 comments · Fixed by #1125
Assignees
Labels
Feature Request ✨ New feature or request
Milestone

Comments

@gaurav274
Copy link
Member

gaurav274 commented Aug 30, 2023

Search before asking

  • I have searched the EvaDB issues and found no similar feature requests.

Description

We want to create a table, for example, in Postgres based on the outputs of a select query involving an AI UDF.

Use case

CREATE TABLE postgres_db.table AS (SELECT parkname, parktype, 
       ChatGPT(
       "Return the San Francisco neighborhood name when provided with a zipcode. The possible neighborhoods are: {neighbourhoods_str}. The response should an item from the provided list. Do not add any more words.",
       zipcode) 
FROM postgres_db.recreational_park_dataset);

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request ✨ New feature or request
Projects
Development

Successfully merging a pull request may close this issue.

1 participant