You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Do not use CTE's to inject a view of a table at a certain block. Instead
rewrite the 'from' clause
2. Do not turn bytea columns into string columns since that is hugely
wasteful
let parser = Parser::new(Arc::new(make_layout(TEST_GQL)));
100
+
let parser = Parser::new(Arc::new(make_layout(TEST_GQL)),BLOCK_NUMBER_MAX);
97
101
98
102
parser.parse_and_validate(sql)
99
103
}
@@ -114,6 +118,10 @@ mod test {
114
118
let query =
115
119
parse_and_validate("select symbol, address from token where decimals > 10").unwrap();
116
120
121
+
assert_eq!(
122
+
query,
123
+
r#"select to_jsonb(sub.*) as data from ( SELECT symbol, address FROM (SELECT * FROM "sgd0815"."token" WHERE block_range @> 2147483647) AS token WHERE decimals > 10 ) as sub"#
0 commit comments