Skip to content

Commit

Permalink
numpy type
Browse files Browse the repository at this point in the history
  • Loading branch information
nickgerrets committed Apr 3, 2024
1 parent 67d27a3 commit db8f603
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/pythonpkg/src/numpy/raw_array_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ static idx_t GetNumpyTypeWidth(const LogicalType &type) {
return sizeof(uint32_t);
case LogicalTypeId::UBIGINT:
return sizeof(uint64_t);
case LogicalTypeId::UHUGEINT:
return sizeof(uhugeint_t);
case LogicalTypeId::TINYINT:
return sizeof(int8_t);
case LogicalTypeId::SMALLINT:
Expand Down Expand Up @@ -92,6 +94,7 @@ string RawArrayWrapper::DuckDBToNumpyDtype(const LogicalType &type) {
case LogicalTypeId::FLOAT:
return "float32";
case LogicalTypeId::HUGEINT:
case LogicalTypeId::UHUGEINT:
case LogicalTypeId::DOUBLE:
case LogicalTypeId::DECIMAL:
return "float64";
Expand Down

0 comments on commit db8f603

Please sign in to comment.