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

feat(sqllab): text to sql feature added in SQLLab #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

durgesh-rathod-sf
Copy link
Collaborator

SUMMARY

Created Api text_to_sql that uses either AWS bedrock or openai for generation of SQL queries
Modified the SQLEditor component to have and input box for conversion of text to sql

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING PROCEDURE

  1. Login to the Application:

    • Open the application and enter your credentials to log in.
  2. Navigate to SQL Lab Section:

    • Once logged in, locate and access the SQL lab section within the application.
  3. Find the Input Box:

    • Look for the newly added input box positioned above the SQL editor. This box allows you to input queries related to the database.
  4. Enter a Query:

    • Type in the query you want the system to convert into an SQL query.
  5. Initiate Query Conversion:

    • Click on the "Generate" button to submit your query to the system for conversion.
  6. Wait for Response:

    • After clicking the "Generate" button, note that it becomes disabled until the API responds with the converted SQL query.
  7. Check SQL Editor:

    • Once the API responds, verify that the SQL query generated by the system is populated in the SQL editor.
  8. Review SQL Query:

    • Examine the SQL query in the editor to ensure it accurately represents the intended conversion from your input query.

By following these steps, you can thoroughly test the functionality of the system for converting user-input queries into SQL queries in the SQL lab section of the application.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@durgesh-rathod-sf durgesh-rathod-sf changed the title Feat text to sql feat(sqllab): text to sql feature added in SQLLab Jan 17, 2024
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.

1 participant