diff --git a/cpp/src/arrow/flight/sql/odbc/README.md b/cpp/src/arrow/flight/sql/odbc/README.md index 8c2d9705a1d..27621d256d6 100644 --- a/cpp/src/arrow/flight/sql/odbc/README.md +++ b/cpp/src/arrow/flight/sql/odbc/README.md @@ -26,9 +26,9 @@ After the build succeeds, the ODBC DLL will be located in 2. Register your ODBC DLL: - Need to replace `` with actual path to repository in the commands. + Need to replace `` with actual path to repository in the commands. - 1. `cd ` + 1. `cd ` 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 \cpp\build\< release | debug >\< Release | Debug>\arrow_flight_sql_odbc.dll diff --git a/cpp/src/arrow/type_traits.h b/cpp/src/arrow/type_traits.h index 1b7a02e1085..1992dd15096 100644 --- a/cpp/src/arrow/type_traits.h +++ b/cpp/src/arrow/type_traits.h @@ -135,6 +135,28 @@ struct CTypeTraits : public TypeTraits { using ArrowType = BooleanType; }; +template <> +struct CTypeTraits { + using ArrowType = Decimal128Type; + using CType = Decimal128; +}; + +template <> +struct CTypeTraits { + using ArrowType = Decimal256Type; + using CType = Decimal256; +}; + +template <> struct CTypeTraits { + using ArrowType = Decimal32Type; + using CType = Decimal32; +}; + +template <> struct CTypeTraits { + using ArrowType = Decimal64Type; + using CType = Decimal64; +}; + #define PRIMITIVE_TYPE_TRAITS_DEF_(CType_, ArrowType_, ArrowArrayType, ArrowBuilderType, \ ArrowScalarType, ArrowTensorType, SingletonFn) \ template <> \