Skip to content

Commit

Permalink
Merge pull request #35 from prefeitura-rio/feat/chatbot_metrics_5
Browse files Browse the repository at this point in the history
remove: high cost order by
  • Loading branch information
BrunodePauloAlmeida authored Nov 14, 2024
2 parents 9d251ad + 826064c commit 74e999b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pipelines/chatbot/dbt_chatbot_metricas/flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@

run_rbt_chatbot_flow.schedule = update_schedule

# comment to trigger a new build again and again and again
# comment to trigger a new build
5 changes: 2 additions & 3 deletions queries/models/dialogflowcx/fim_conversas_macrofluxos.sql
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ INNER JOIN ultima_interacao as ui
INNER JOIN primeira_interacao as pi
ON hist.new_conversation_id = pi.new_conversation_id
LEFT JOIN penultimo_passo AS pen
ON hist.new_conversation_id = pen.new_conversation_id -- Junta com o penúltimo turno
ORDER BY request_time DESC)
ON hist.new_conversation_id = pen.new_conversation_id -- Junta com o penúltimo turno)

SELECT * FROM fim_conversas_macrofluxo
SELECT * FROM fim_conversas_macrofluxo

0 comments on commit 74e999b

Please sign in to comment.