Skip to content

Basic Text2SQL app on stats data using Azure Functions and Container Apps

Notifications You must be signed in to change notification settings

Azure-Samples/stats-data-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Todo:

Basic Testing Steps

After standing up the functions (upload and orchestrate) you can upload data via the following sample commands:

# define the endpoints for both upload function (assuming localhost here)
export UPLOAD_ENDPOINT=http://localhost:7071


# navigate to the data directory
cd ./data/baseball_databank

# first, let's import the master csv
curl -X POST "${UPLOAD_ENDPOINT}/api/upload_data" \
     -F "file_data=@test_Master.csv" \
     -F "file_name=test_Master.csv" \
     -F "file_description=A table with information about baseball players. The primary key is playerid."

# import batting stats
curl -X POST "${UPLOAD_ENDPOINT}/api/upload_data" \
     -F "file_data=@test_Batting.csv" \
     -F "file_name=test_Batting.csv" \
     -F "file_description=A table with information about baseball batting statistics. The primary key is playerid."

Once the data is imported run the /src/app_text2sql/simple_text2sql.py.