Skip to content

Commit 0894e0a

Browse files
committed
fix(graph): extend common column aliases
1 parent ff6971f commit 0894e0a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

graph/src/amp/common/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,19 @@ pub(super) mod column_aliases {
66
pub(in crate::amp) static BLOCK_NUMBER: &[&str] = &[
77
"_block_num", // Meta column present in all tables
88
"block_num", // Standard column in most raw tables
9+
"blockNum", // Common alternative name
910
"block", // Common alternative name
1011
"block_number", // Common alternative name
12+
"blockNumber", // Common alternative name
1113
];
1214
pub(in crate::amp) static BLOCK_HASH: &[&str] = &[
1315
"hash", // Standard column in some raw tables
1416
"block_hash", // Standard column in most raw tables and common alternative name
17+
"blockHash", // Common alternative name
1518
];
1619
pub(in crate::amp) static BLOCK_TIMESTAMP: &[&str] = &[
1720
"timestamp", // Standard column in most raw tables
1821
"block_timestamp", // Common alternative name
22+
"blockTimestamp", // Common alternative name
1923
];
2024
}

0 commit comments

Comments
 (0)