Comments (1)
The SQL_QUERY_MUTATOR
function is not called in SQLab when MUTATE_AFTER_SPLIT = True
because the condition for calling the mutator function checks if the is_split
parameter matches the MUTATE_AFTER_SPLIT
configuration. If MUTATE_AFTER_SPLIT
is set to True
, the mutator function will only be called after the SQL is split into smaller queries. If the SQL is not split, the condition will not be met, and the mutator function will not be called.
Here is the relevant code snippet:
sql_mutator = config["SQL_QUERY_MUTATOR"]
if sql_mutator and (is_split == config["MUTATE_AFTER_SPLIT"]):
return sql_mutator(
sql_,
security_manager=security_manager,
database=self,
)
return sql_
In this code, is_split
must be True
for the mutator to be called when MUTATE_AFTER_SPLIT
is True
. If is_split
is False
, the mutator will not be invoked [1][2].
To continue talking to Dosu, mention @dosu.
from superset.
Related Issues (20)
- superset init value error HOT 2
- docker bug HOT 2
- Add Support for SQL Server Analysis Services (SSAS) Connection with MDX Query Execution, Dimension Management, Pivot Tables, and Domain User Login HOT 3
- Environment variable SUPERSET_DATABASE_URI HOT 6
- Superset 4.1.0RC2 - Dashboard embedding - now includes editor and last modified timestamp HOT 2
- Docker build it failing - Docker compose up is not working HOT 2
- `show summary` does not correctly apply all filters HOT 2
- Exports are brittle HOT 1
- Superset-4.1.0rc2: Download to CSV option is not showing up in SQL LAB page. HOT 6
- Superset 4.1.0RC2 - New Sankey charts cannot be embedded = "Guest user cannot modify chart payload" HOT 1
- zstd not found by superset_node during docker compose up dev mode HOT 4
- Failed to resolve entry for package "@superset-ui/switchboard". The package may have incorrect main/module/exports specified in its package.json. HOT 2
- SuperSet Database connection is successfully established but not able to get the tables under a specific schema HOT 6
- Annotation formula on chart does not work for values above 1*10^15 (peta) HOT 1
- I'm getting ERROR:flask_migrate:Error while upgrading. HOT 6
- [4.1.0rc2] sqlalchemy InvalidRequestError: This nested transaction is inactive when trying to activate embedding on a dashboard HOT 1
- Superset 4.1 with Pinot not aggregating epoch_ms timestamps correctly HOT 1
- Bangladesh is missing in country map dropdown selection for Country Map Chart HOT 2
- Server Pagination Sort Only Sorts Loaded Rows - Table HOT 1
- Drill-by alert "Failed to load dimensions for drill by" using Gamma role HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from superset.