Skip to content

Commit

Permalink
fix: generate schema example
Browse files Browse the repository at this point in the history
  • Loading branch information
Savid committed Mar 26, 2024
1 parent d166ac1 commit 6ae3ad0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generate-schema.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ generate_schema() {
if [ "$hourly_partitioning" = true ]; then
interval="hourly"
formated_url="https://data.ethpandaops.io/xatu/NETWORK/databases/default/${table_name}/YYYY/MM/DD/HH.parquet"
example_url="https://data.ethpandaops.io/xatu/NETWORK/databases/default/${table_name}/${example_date}/00.parquet"
example_url="https://data.ethpandaops.io/xatu/mainnet/databases/default/${table_name}/${example_date}/00.parquet"
fi
table_description=$(curl -s "$clickhouse_host" --data "SELECT comment FROM system.tables WHERE table = '$table_name' FORMAT TabSeparated")

excluded_columns=$(echo "$table_config" | jq -r '.excluded_columns[]' | tr '\n' ' ')

schema=$(curl -s "$clickhouse_host" --data "SELECT name, type, comment FROM system.columns WHERE table = '$table_name' FORMAT TabSeparated")
schema=$(curl -s "$clickhouse_host" --data "SELECT name, type, comment FROM system.columns WHERE table = 'beacon_api_eth_v2_beacon_block' FORMAT TabSeparated")

echo "### $table_name"
# check if hugo is set
Expand Down

0 comments on commit 6ae3ad0

Please sign in to comment.