Expand description
This module contains datatypes and functions which can be generated by sqlsmith.
Structsยง
- CastSig
- Provide internal
CastSig
which can be used forstruct
andlist
.
Staticsยง
- AGG_
FUNC_ ๐TABLE - Table which maps aggregate functionsโ return types to possible function signatures.
- BINARY_
INEQUALITY_ ๐OP_ TABLE - Build set of binary inequality functions like
>
,<
, etcโฆ Maps from LHS, RHS argument to Inequality Operation For instance: GreaterThanOrEqual(Int16, Int64) -> Boolean Will store an entry of: Key: Int16, Int64 Value:BinaryOp::GreaterThanOrEqual
in the table. - EXPLICIT_
CAST_ ๐TABLE - Build a cast map from return types to viable cast-signatures. NOTE: We avoid cast from varchar to other datatypes apart from itself. This is because arbitrary strings may not be able to cast, creating large number of invalid queries.
- FUNC_
BAN_ ๐LIST - Function ban list. These functions should be generated eventually, by adding expression constraints. If we naively generate arguments for these functions, it will affect sqlsmith effectiveness, e.g. cause it to crash.
- FUNC_
TABLE ๐ - Table which maps functionsโ return types to possible function signatures.
- IMPLICIT_
CAST_ ๐TABLE - Build a cast map from return types to viable cast-signatures. NOTE: We avoid cast from varchar to other datatypes apart from itself. This is because arbitrary strings may not be able to cast, creating large number of invalid queries.
- INVARIANT_
FUNC_ ๐SET - Set of invariant functions