Base Schema
Blocks
CREATE EXTERNAL TABLE IF NOT EXISTS sonarx_base.blocks (
block_number DECIMAL(38, 0),
timestamp DECIMAL(38, 0),
datetime TIMESTAMP,
block_hash STRING,
block_parent_hash STRING,
nonce DECIMAL(38, 0),
sha3_uncles STRING,
logs_bloom STRING,
transactions_root STRING,
state_root STRING,
receipts_root STRING,
miner STRING,
mix_hash STRING,
extra_data STRING,
difficulty DECIMAL(38, 0),
total_difficulty DECIMAL(38, 0),
size DECIMAL(38, 0),
gas_limit DECIMAL(38, 0),
gas_used DECIMAL(38, 0),
transaction_count DECIMAL(38, 0),
base_fee_per_gas DECIMAL(38, 0),
blob_gas_used DECIMAL(38, 0),
excess_blob_gas DECIMAL(38, 0),
parent_beacon_block_root STRING,
withdrawals_root STRING,
withdrawal_count DECIMAL(38, 0),
date_created TIMESTAMP,
date_updated TIMESTAMP)
PARTITIONED BY (
`date` STRING)
ROW FORMAT SERDE
'org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe'
STORED AS INPUTFORMAT
'org.apache.hadoop.hive.ql.io.parquet.MapredParquetInputFormat'
OUTPUTFORMAT
'org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat'
LOCATION 's3://aws-public-blockchain/v1.1/sonarx/base/blocks'
TBLPROPERTIES (
);Transactions
Last updated