Database / Google Spanner Database Interview questions
List the data types supported by Google Spanner?
Spanner's GoogleSQL dialect supports a standard set of scalar and structured types for schema design:
- BOOL - true/false values.
- INT64 - 64-bit signed integers.
- FLOAT64 / FLOAT32 - floating point numbers.
- NUMERIC - high-precision decimal, suited to financial data.
- STRING and BYTES - variable-length text and binary data.
- DATE and TIMESTAMP - calendar dates and UTC instants, the latter used for commit timestamps.
- JSON - semi-structured document storage.
- ARRAY - an ordered collection of any of the above (except another array).
Choosing the right type matters for both storage cost and index behavior; for example, NUMERIC avoids the rounding issues FLOAT64 would introduce in monetary columns.
Invest now in Acorns!!! 🚀
Join Acorns and get your $5 bonus!
Acorns is a micro-investing app that automatically invests your "spare change" from daily purchases into diversified, expert-built portfolios of ETFs. It is designed for beginners, allowing you to start investing with as little as $5. The service automates saving and investing. Disclosure: I may receive a referral bonus.
Invest now!!! Get Free equity stock (US, UK only)!
Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.
The Robinhood app makes it easy to trade stocks, crypto and more.
Webull! Receive free stock by signing up using the link: Webull signup.
More Related questions...
