mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
fix gcc warnings
This commit is contained in:
parent
64c013610a
commit
4dae169216
@ -35,7 +35,7 @@ CassandraBlockInputStream::CassandraBlockInputStream(
|
||||
cassandraCheck(cass_statement_set_paging_size(statement, max_block_size));
|
||||
}
|
||||
|
||||
void CassandraBlockInputStream::insertValue(IColumn & column, ValueType type, const CassValue * cass_value) const
|
||||
void CassandraBlockInputStream::insertValue(IColumn & column, ValueType type, const CassValue * cass_value)
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
@ -202,7 +202,7 @@ void CassandraBlockInputStream::assertTypes(const CassResultPtr & result)
|
||||
size_t column_count = cass_result_column_count(result);
|
||||
for (size_t i = 0; i < column_count; ++i)
|
||||
{
|
||||
CassValueType expected;
|
||||
CassValueType expected = CASS_VALUE_TYPE_UNKNOWN;
|
||||
String expected_text;
|
||||
|
||||
/// Cassandra does not support unsigned integers (cass_uint32_t is for Date)
|
||||
|
@ -30,7 +30,7 @@ private:
|
||||
using ValueType = ExternalResultDescription::ValueType;
|
||||
|
||||
Block readImpl() override;
|
||||
void insertValue(IColumn & column, ValueType type, const CassValue * cass_value) const;
|
||||
static void insertValue(IColumn & column, ValueType type, const CassValue * cass_value);
|
||||
void assertTypes(const CassResultPtr & result);
|
||||
|
||||
CassSessionShared session;
|
||||
|
@ -9,6 +9,7 @@
|
||||
#include "ExternalQueryBuilder.h"
|
||||
#include <Core/Block.h>
|
||||
#include <Poco/Logger.h>
|
||||
#include <mutex>
|
||||
|
||||
namespace DB
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user