diff --git a/velox/functions/sparksql/DateTimeFunctions.h b/velox/functions/sparksql/DateTimeFunctions.h index 11aa52fc708e..3cd2b7afb7ce 100644 --- a/velox/functions/sparksql/DateTimeFunctions.h +++ b/velox/functions/sparksql/DateTimeFunctions.h @@ -49,7 +49,7 @@ Expected> getDateTimeFormatter( // @return A shared pointer to a DateTimeFormatter. If the formatter // initialization fails and the legacy formatter is used, nullptr is returned. std::shared_ptr initializeFormatter( - const std::string_view& format, + const std::string_view format, bool legacyFormatter) { auto formatter = detail::getDateTimeFormatter( std::string_view(format),