From b3147d57e42a46262cd0dbfbf66d9fbcc1d6e7f0 Mon Sep 17 00:00:00 2001 From: Alexander Taepper Date: Wed, 7 Aug 2024 15:28:56 +0200 Subject: [PATCH] fix: typo in the error message if a column is not found --- src/silo/query_engine/filter_expressions/bool_equals.cpp | 3 +-- src/silo/query_engine/filter_expressions/date_between.cpp | 2 +- src/silo/query_engine/filter_expressions/float_equals.cpp | 2 +- src/silo/query_engine/filter_expressions/int_between.cpp | 2 +- src/silo/query_engine/filter_expressions/int_equals.cpp | 2 +- .../query_engine/filter_expressions/pango_lineage_filter.cpp | 2 +- src/silo/query_engine/filter_expressions/string_equals.cpp | 2 +- 7 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/silo/query_engine/filter_expressions/bool_equals.cpp b/src/silo/query_engine/filter_expressions/bool_equals.cpp index b598c79af..4832549ae 100644 --- a/src/silo/query_engine/filter_expressions/bool_equals.cpp +++ b/src/silo/query_engine/filter_expressions/bool_equals.cpp @@ -37,8 +37,7 @@ std::unique_ptr BoolEquals::compile( ) const { CHECK_SILO_QUERY( database_partition.columns.bool_columns.contains(column_name), - // TODO - fmt::format("the database does not contain the column '{}'", column_name) + fmt::format("The database does not contain the column '{}'", column_name) ); const auto& bool_column = database_partition.columns.bool_columns.at(column_name); diff --git a/src/silo/query_engine/filter_expressions/date_between.cpp b/src/silo/query_engine/filter_expressions/date_between.cpp index 528a6f4ca..5b17b8dd9 100644 --- a/src/silo/query_engine/filter_expressions/date_between.cpp +++ b/src/silo/query_engine/filter_expressions/date_between.cpp @@ -51,7 +51,7 @@ std::unique_ptr DateBetween::compile( ) const { CHECK_SILO_QUERY( database_partition.columns.date_columns.contains(column_name), - fmt::format("the database does not contain the column '{}'", column_name) + fmt::format("The database does not contain the column '{}'", column_name) ); const auto& date_column = database_partition.columns.date_columns.at(column_name); diff --git a/src/silo/query_engine/filter_expressions/float_equals.cpp b/src/silo/query_engine/filter_expressions/float_equals.cpp index 91edf1b63..c339f3298 100644 --- a/src/silo/query_engine/filter_expressions/float_equals.cpp +++ b/src/silo/query_engine/filter_expressions/float_equals.cpp @@ -37,7 +37,7 @@ std::unique_ptr FloatEquals::compile( ) const { CHECK_SILO_QUERY( database_partition.columns.float_columns.contains(column_name), - fmt::format("the database does not contain the column '{}'", column_name) + fmt::format("The database does not contain the column '{}'", column_name) ); const auto& float_column = database_partition.columns.float_columns.at(column_name); diff --git a/src/silo/query_engine/filter_expressions/int_between.cpp b/src/silo/query_engine/filter_expressions/int_between.cpp index 3be4c1fc4..c1e27e654 100644 --- a/src/silo/query_engine/filter_expressions/int_between.cpp +++ b/src/silo/query_engine/filter_expressions/int_between.cpp @@ -44,7 +44,7 @@ std::unique_ptr IntBetween::compile( ) const { CHECK_SILO_QUERY( database_partition.columns.int_columns.contains(column_name), - fmt::format("the database does not contain the column '{}'", column_name) + fmt::format("The database does not contain the column '{}'", column_name) ); const auto& int_column = database_partition.columns.int_columns.at(column_name); diff --git a/src/silo/query_engine/filter_expressions/int_equals.cpp b/src/silo/query_engine/filter_expressions/int_equals.cpp index 0f4f46608..62f5536b2 100644 --- a/src/silo/query_engine/filter_expressions/int_equals.cpp +++ b/src/silo/query_engine/filter_expressions/int_equals.cpp @@ -35,7 +35,7 @@ std::unique_ptr IntEquals::compile( ) const { CHECK_SILO_QUERY( database_partition.columns.int_columns.contains(column_name), - fmt::format("the database does not contain the column '{}'", column_name) + fmt::format("The database does not contain the column '{}'", column_name) ); const auto& int_column = database_partition.columns.int_columns.at(column_name); diff --git a/src/silo/query_engine/filter_expressions/pango_lineage_filter.cpp b/src/silo/query_engine/filter_expressions/pango_lineage_filter.cpp index 83e69e0e1..a7bcda556 100644 --- a/src/silo/query_engine/filter_expressions/pango_lineage_filter.cpp +++ b/src/silo/query_engine/filter_expressions/pango_lineage_filter.cpp @@ -42,7 +42,7 @@ std::unique_ptr PangoLineageFilter::com ) const { CHECK_SILO_QUERY( database_partition.columns.pango_lineage_columns.contains(column_name), - fmt::format("the database does not contain the column '{}'", column_name) + fmt::format("The database does not contain the column '{}'", column_name) ); std::string lineage_all_upper = lineage; diff --git a/src/silo/query_engine/filter_expressions/string_equals.cpp b/src/silo/query_engine/filter_expressions/string_equals.cpp index 0778fcc49..75149ada4 100644 --- a/src/silo/query_engine/filter_expressions/string_equals.cpp +++ b/src/silo/query_engine/filter_expressions/string_equals.cpp @@ -39,7 +39,7 @@ std::unique_ptr StringEquals::compile( CHECK_SILO_QUERY( database_partition.columns.string_columns.contains(column_name) || database_partition.columns.indexed_string_columns.contains(column_name), - fmt::format("the database does not contain the column '{}'", column_name) + fmt::format("The database does not contain the column '{}'", column_name) ); if (database_partition.columns.indexed_string_columns.contains(column_name)) {