Skip to content

Commit

Permalink
various integer types
Browse files Browse the repository at this point in the history
  • Loading branch information
archiewood committed Oct 29, 2024
1 parent 216ba12 commit b1b7497
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/gsheets_copy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,17 +110,35 @@ namespace duckdb
case LogicalTypeId::INTEGER:
row.push_back(to_string(FlatVector::GetData<int32_t>(col)[r]));
break;
case LogicalTypeId::TINYINT:
row.push_back(to_string(FlatVector::GetData<int8_t>(col)[r]));
break;
case LogicalTypeId::SMALLINT:
row.push_back(to_string(FlatVector::GetData<int16_t>(col)[r]));
break;
case LogicalTypeId::BIGINT:
row.push_back(to_string(FlatVector::GetData<int64_t>(col)[r]));
break;
case LogicalTypeId::UTINYINT:
row.push_back(to_string(FlatVector::GetData<uint8_t>(col)[r]));
break;
case LogicalTypeId::USMALLINT:
row.push_back(to_string(FlatVector::GetData<uint16_t>(col)[r]));
break;
case LogicalTypeId::UINTEGER:
row.push_back(to_string(FlatVector::GetData<uint32_t>(col)[r]));
break;
case LogicalTypeId::UBIGINT:
row.push_back(to_string(FlatVector::GetData<uint64_t>(col)[r]));
break;
case LogicalTypeId::DOUBLE:
row.push_back(to_string(FlatVector::GetData<double>(col)[r]));
break;
case LogicalTypeId::BOOLEAN:
row.push_back(FlatVector::GetData<bool>(col)[r] ? "TRUE" : "FALSE");
break;
default:
row.push_back("Type not implemented");
row.push_back("Type " + col.GetType().ToString() + " not implemented");
break;
}
}
Expand Down

0 comments on commit b1b7497

Please sign in to comment.