We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This could be related to #32.
When I try to fill a Column that has type Array(Tuple(UInt64, String)) with AppendAsColumn then no actual data is added and the insert fails.
Array(Tuple(UInt64, String))
AppendAsColumn
#include <clickhouse/client.h> using namespace std; using namespace clickhouse; int main() { Block block; Client client(ClientOptions().SetHost("localhost")); client.Execute("CREATE TABLE mynumbers (tupleArray Array(Tuple(UInt64, String))) ENGINE = Memory"); auto tupleArray = make_shared<ColumnArray>( make_shared<ColumnTuple>( vector<ColumnRef>({ make_shared<ColumnUInt64>(), make_shared<ColumnString>() }) ) ); auto tupleArrayEntry1 = make_shared<ColumnTuple>( vector<ColumnRef>({ make_shared<ColumnUInt64>(), make_shared<ColumnString>() }) ); auto tupleArrayEntry2 = make_shared<ColumnTuple>( vector<ColumnRef>({ make_shared<ColumnUInt64>(), make_shared<ColumnString>() }) ); (*tupleArrayEntry1)[0]->As<ColumnUInt64>()->Append(2); (*tupleArrayEntry1)[1]->As<ColumnString>()->Append("2"); (*tupleArrayEntry2)[0]->As<ColumnUInt64>()->Append(10); (*tupleArrayEntry2)[1]->As<ColumnString>()->Append("10"); (*tupleArrayEntry2)[0]->As<ColumnUInt64>()->Append(11); (*tupleArrayEntry2)[1]->As<ColumnString>()->Append("11"); tupleArray->AppendAsColumn(tupleArrayEntry1); tupleArray->AppendAsColumn(tupleArrayEntry2); block.AppendColumn("tupleArray", tupleArray); client.Insert("mynumbers", block); return 0; }
The text was updated successfully, but these errors were encountered:
The issue seems to be, that ColumnTuple has no implementation of Append
ColumnTuple
Append
clickhouse-cpp/clickhouse/columns/tuple.h
Line 25 in d318c8b
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
This could be related to #32.
When I try to fill a Column that has type
Array(Tuple(UInt64, String))
withAppendAsColumn
then no actual data is added and the insert fails.The text was updated successfully, but these errors were encountered: