File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1410,11 +1410,18 @@ as opposed to the "return type" of a Python function.
14101410
14111411The SQL return type of any SQL function may be accessed, typically for
14121412debugging purposes, by referring to the :attr: `_functions.Function.type `
1413- attribute::
1413+ attribute; this will be pre-configured for a **select few ** of extremely
1414+ common SQL functions, but for most SQL functions is the "null" datatype
1415+ if not otherwise specified::
14141416
1417+ >>> # pre-configured SQL function (only a few dozen of these)
14151418 >>> func.now().type
14161419 DateTime()
14171420
1421+ >>> # arbitrary SQL function (all other SQL functions)
1422+ >>> func.run_some_calculation().type
1423+ NullType()
1424+
14181425These SQL return types are significant when making
14191426use of the function expression in the context of a larger expression; that is,
14201427math operators will work better when the datatype of the expression is
You can’t perform that action at this time.
0 commit comments