]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add option to disable from linting for table valued function
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 23 Mar 2022 14:07:13 +0000 (10:07 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 23 Mar 2022 14:26:54 +0000 (10:26 -0400)
commit58fad097209e37d727988d03a60367b6e7dbc917
tree8dc237d81fbb3b539497f839a1e12b3744eb74fd
parent845aacd5fc8fdc7839597c0e75c447180f7b438d
Add option to disable from linting for table valued function

Added new parameter
:paramref:`.FunctionElement.table_valued.joins_implicitly`, for the
:meth:`.FunctionElement.table_valued` construct. This parameter indicates
that the given table-valued function implicitly joins to the table it
refers towards, essentially disabling the "from linting" feature, i.e. the
"cartesian product" warning, from taking effect due to the presence of this
parameter. May be used for functions such as ``func.json_each()``.

Fixes: #7845
Change-Id: I80edcb74efbd4417172132c0db4d9c756fdd5eae
(cherry picked from commit 04dcc5c704dbf0b22705523e263e512c24936175)
doc/build/changelog/unreleased_14/7845.rst [new file with mode: 0644]
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/functions.py
lib/sqlalchemy/sql/selectable.py
test/sql/test_from_linter.py