From 5aecd67e6d46dc8755dc40d8b3408dba2b511f87 Mon Sep 17 00:00:00 2001 From: Andrew Dye Date: Thu, 8 Sep 2022 15:26:11 -0700 Subject: [PATCH] Remove unused join condition (#474) Signed-off-by: Andrew Dye Signed-off-by: Andrew Dye --- pkg/repositories/gormimpl/common.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkg/repositories/gormimpl/common.go b/pkg/repositories/gormimpl/common.go index bd0a65f75d..6a9d097032 100644 --- a/pkg/repositories/gormimpl/common.go +++ b/pkg/repositories/gormimpl/common.go @@ -23,7 +23,6 @@ const ID = "id" const executionTableName = "executions" const namedEntityMetadataTableName = "named_entity_metadata" const nodeExecutionTableName = "node_executions" -const nodeExecutionEventTableName = "node_event_executions" const taskExecutionTableName = "task_executions" const taskTableName = "tasks" @@ -44,10 +43,6 @@ var entityToTableName = map[common.Entity]string{ common.NamedEntityMetadata: "named_entity_metadata", } -var innerJoinNodeExecToNodeEvents = fmt.Sprintf( - "INNER JOIN %s ON %s.node_execution_id = %s.id", - nodeExecutionTableName, nodeExecutionEventTableName, nodeExecutionTableName) - var innerJoinExecToNodeExec = fmt.Sprintf( "INNER JOIN %s ON %s.execution_project = %s.execution_project AND "+ "%s.execution_domain = %s.execution_domain AND %s.execution_name = %s.execution_name",