We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
let‘s look at the method eth_getBlockByHash from etherum openrpc.json
eth_getBlockByHash
select timestamp, miner, number from block where number in (15044280);
this sql will call json rpc
call eth_getBlockByNumber(15044280)
do some process
select date(`timestamp`), miner, number from block where number in (15044280);
select * from Values (select block.transactions where number in (15044280));
let ctx = SessionContext::new(); let path = format!("{}/2.json", TEST_DATA_BASE); ctx.register_json("t1", &path, NdJsonReadOptions::default()) .await .unwrap(); let sql = "SELECT a, b FROM t1"; let actual = execute_to_batches(&ctx, sql).await; let expected = vec![ "+-----------------+------+", "| a | b |", "+-----------------+------+", "| 1 | 2 |", "| -10 | -3.5 |", "| 2 | 0.6 |", "| 1 | 2 |", "| 7 | -3.5 |", "| 1 | 0.6 |", "| 1 | 2 |", "| 5 | -3.5 |", "| 1 | 0.6 |", "| 1 | 2 |", "| 1 | -3.5 |", "| 100000000000000 | 0.6 |", "+-----------------+------+", ]; assert_batches_eq!(expected, &actual);
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Data Model
let‘s look at the method
eth_getBlockByHash
from etherum openrpc.jsonQuery Block
this sql will call json rpc
do some process
Query Transaction in block
use datafusion to query table against json
The text was updated successfully, but these errors were encountered: