mirror of
https://github.com/apache/superset.git
synced 2026-04-21 17:14:57 +00:00
feat(db_engine_specs): big query cost estimation (#21325)
Co-authored-by: zamar roura <zamar.roura@cabify.es> Co-authored-by: Zamar Roura <zamarfazal@gmail.com>
This commit is contained in:
@@ -320,7 +320,7 @@ export default function sqlLabReducer(state = {}, action) {
|
||||
...state,
|
||||
queryCostEstimates: {
|
||||
...state.queryCostEstimates,
|
||||
[action.query.sqlEditorId]: {
|
||||
[action.query.id]: {
|
||||
completed: false,
|
||||
cost: null,
|
||||
error: null,
|
||||
@@ -333,7 +333,7 @@ export default function sqlLabReducer(state = {}, action) {
|
||||
...state,
|
||||
queryCostEstimates: {
|
||||
...state.queryCostEstimates,
|
||||
[action.query.sqlEditorId]: {
|
||||
[action.query.id]: {
|
||||
completed: true,
|
||||
cost: action.json,
|
||||
error: null,
|
||||
@@ -346,7 +346,7 @@ export default function sqlLabReducer(state = {}, action) {
|
||||
...state,
|
||||
queryCostEstimates: {
|
||||
...state.queryCostEstimates,
|
||||
[action.query.sqlEditorId]: {
|
||||
[action.query.id]: {
|
||||
completed: false,
|
||||
cost: null,
|
||||
error: action.error,
|
||||
|
||||
Reference in New Issue
Block a user