Ben Chuanlong Du's Blog

It is never too late to learn.

Tips on ZetaSQL

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

ZetaSQL is a customized SQL dialect, along with parser and analyzer, that Google uses for products like BigQuery and Spanner.

unnest

cross join if an implicit join is used. Notice that …

Const Generic in Rust

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. Starting from Rust 1.51, constant generics is supported for integral types.

  2. The crate static_assertions can be used to assert that a const generic parameter satisfy certain conditions at compile time …

Unit Test in Rust

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

https://crates.io/crates/test-with

Tips and Traps

  1. std::assert! and std::assert_eq! can be used to assert whether certain conditions are met. They are typically used for testing but they …