Bitcoin Schema
Blocks
CREATE EXTERNAL TABLE `btc.blocks`(
`hash` string,
`size` bigint,
`stripped_size` bigint,
`weight` bigint,
`number` bigint,
`version` bigint,
`merkle_root` string,
`timestamp` timestamp,
`nonce` bigint,
`bits` string,
`coinbase_param` string,
`transaction_count` bigint,
`mediantime` timestamp,
`difficulty` double,
`chainwork` string,
`previousblockhash` string)
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.0/btc/blocks'
TBLPROPERTIES (
) Transactions
Last updated