以下のコードをSQLAlchemyで書き換えたいと思っています。bigquery初心者です。何か良い方法ありましたらご教示頂けませんでしょうか?
python
1def test(): 2 sql_path = "sql/user/hoge.test.sql" 3 4 5 f = open(sql_path) 6 query = f.read() 7 f.close() 8 9 results = exec_test(query) 10 11return results
以下のファイル、sql/user/hoge.test.sql
SQL
1#standardSQL 2SELECT 3 test_id 4 ,hoge_id 5FROM 6 `table.table_name` 7where 8 test_id = @A_id 9 and hoge_id = @B_id 10

回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。