Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cpp/src/arrow/flight/sql/odbc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ After the build succeeds, the ODBC DLL will be located in

2. Register your ODBC DLL:

Need to replace `<path\to\repo>` with actual path to repository in the commands.
Need to replace `<path\\to\\repo>` with actual path to repository in the commands.

1. `cd <path\to\repo>`
1. `cd <path\\to\\repo>`
2. Run script to register your ODBC DLL as Apache Arrow Flight SQL ODBC Driver
```
.\cpp\src\arrow\flight\sql\odbc\tests\install_odbc.cmd <path\to\repo>\cpp\build\< release | debug >\< Release | Debug>\arrow_flight_sql_odbc.dll
Expand Down
22 changes: 22 additions & 0 deletions cpp/src/arrow/type_traits.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,28 @@ struct CTypeTraits<bool> : public TypeTraits<BooleanType> {
using ArrowType = BooleanType;
};

template <>
struct CTypeTraits<Decimal128Type> {
using ArrowType = Decimal128Type;
using CType = Decimal128;
};

template <>
struct CTypeTraits<Decimal256Type> {
using ArrowType = Decimal256Type;
using CType = Decimal256;
};

template <> struct CTypeTraits<Decimal32Type> {
using ArrowType = Decimal32Type;
using CType = Decimal32;
};

template <> struct CTypeTraits<Decimal64Type> {
using ArrowType = Decimal64Type;
using CType = Decimal64;
};

#define PRIMITIVE_TYPE_TRAITS_DEF_(CType_, ArrowType_, ArrowArrayType, ArrowBuilderType, \
ArrowScalarType, ArrowTensorType, SingletonFn) \
template <> \
Expand Down