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

Generate avro files from bq tables #507

Merged
merged 13 commits into from
Oct 8, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
lint
  • Loading branch information
chowbao committed Oct 7, 2024
commit 15ee527e0eea2331f38197b2e960539ed6764c1c
9 changes: 5 additions & 4 deletions dags/generate_avro_files_dag.py
Original file line number Diff line number Diff line change
@@ -3,7 +3,9 @@
from airflow import DAG
from kubernetes.client import models as k8s
from stellar_etl_airflow.build_cross_dependency_task import build_cross_deps
from stellar_etl_airflow.build_bq_generate_avro_job_task import build_bq_generate_avro_job
from stellar_etl_airflow.build_bq_generate_avro_job_task import (
build_bq_generate_avro_job
)
from stellar_etl_airflow.default import (
alert_sla_miss,
get_default_dag_args,
@@ -45,8 +47,8 @@
"offers",
"trust_lines",
"ttl",
#"history_effects",
#"history_operations",
# "history_effects",
# "history_operations",
]

for table in avro_tables:
@@ -60,4 +62,3 @@

wait_on_history_table >> task
wait_on_state_table >> task

1 change: 0 additions & 1 deletion dags/queries/generate_avro/contract_data.sql
Original file line number Diff line number Diff line change
@@ -14,4 +14,3 @@ as (
and closed_at < '{next_batch_run_date}'
order by closed_at asc
)

1 change: 0 additions & 1 deletion dags/queries/generate_avro/history_contract_events.sql
Original file line number Diff line number Diff line change
@@ -14,4 +14,3 @@ as (
and closed_at < '{next_batch_run_date}'
order by closed_at asc
)

1 change: 0 additions & 1 deletion dags/queries/generate_avro/history_effects.sql
Original file line number Diff line number Diff line change
@@ -16,4 +16,3 @@ as (
and closed_at < '{next_batch_run_date}'
order by closed_at asc
)

1 change: 0 additions & 1 deletion dags/queries/generate_avro/history_ledgers.sql
Original file line number Diff line number Diff line change
@@ -14,4 +14,3 @@ as (
and closed_at < '{next_batch_run_date}'
order by closed_at asc
)

1 change: 0 additions & 1 deletion dags/queries/generate_avro/history_operations.sql
Original file line number Diff line number Diff line change
@@ -17,4 +17,3 @@ as (
and closed_at < '{next_batch_run_date}'
order by closed_at asc
)

1 change: 0 additions & 1 deletion dags/queries/generate_avro/history_trades.sql
Original file line number Diff line number Diff line change
@@ -15,4 +15,3 @@ as (
and closed_at < '{next_batch_run_date}'
order by closed_at asc
)

1 change: 0 additions & 1 deletion dags/queries/generate_avro/history_transactions.sql
Original file line number Diff line number Diff line change
@@ -14,4 +14,3 @@ as (
and closed_at < '{next_batch_run_date}'
order by closed_at asc
)

1 change: 0 additions & 1 deletion dags/queries/generate_avro/liquidity_pools.sql
Original file line number Diff line number Diff line change
@@ -14,4 +14,3 @@ as (
and closed_at < '{next_batch_run_date}'
order by closed_at asc
)

1 change: 0 additions & 1 deletion dags/queries/generate_avro/offers.sql
Original file line number Diff line number Diff line change
@@ -14,4 +14,3 @@ as (
and closed_at < '{next_batch_run_date}'
order by closed_at asc
)

1 change: 0 additions & 1 deletion dags/queries/generate_avro/trust_lines.sql
Original file line number Diff line number Diff line change
@@ -14,4 +14,3 @@ as (
and closed_at < '{next_batch_run_date}'
order by closed_at asc
)

1 change: 0 additions & 1 deletion dags/queries/generate_avro/ttl.sql
Original file line number Diff line number Diff line change
@@ -14,4 +14,3 @@ as (
and closed_at < '{next_batch_run_date}'
order by closed_at asc
)

Loading