[C++][Arrow Flight SQL ODBC] Support `SQL_DESC_DATETIME_INTERVAL_CODE` attribute
Open
Component: C++
Component: FlightRPC
Type: enhancement
- Dominant language
- C++
- Stars
- 17.1k
- Forks
- 4.3k
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 88
Description
### Describe the enhancement requested
Implement function in `ResultSetMetadata` class to return a value for `datetime_interval_code` field based on the data type. See https://learn.microsoft.com/en-us/sql/odbc/reference/syntax/sqlsetdescfield-function?view=sql-server-ver17 for the appropriate values for `SQL_DESC_DATETIME_INTERVAL_CODE` field. This field is only applicable to SQL_DATETIME and SQL_INTERVAL.
Parent issue: https://github.com/apache/arrow/issues/30622
### Component(s)
FlightRPC, C++
Contributor guide
Assessment
This issue has not been assessed yet.