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
1 change: 1 addition & 0 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ func (ucfg ArrowConfig) WithDefaults() ArrowConfig {
ucfg.UseArrowBatches = true
ucfg.UseArrowNativeTimestamp = true
ucfg.UseArrowNativeComplexTypes = true
ucfg.UseArrowNativeDecimal = true

return ucfg
}
Expand Down
6 changes: 3 additions & 3 deletions internal/rows/arrowbased/arrowRows.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,9 @@ func (ars *arrowRowScanner) ScanRow(
col := ars.colInfo[i]
dbType := col.dbType

if (dbType == cli_service.TTypeId_DECIMAL_TYPE && ars.UseArrowNativeDecimal) ||
(isIntervalType(dbType) && ars.UseArrowNativeIntervalTypes) {
// not yet fully supported
// Only block interval types, allow decimals to proceed
if isIntervalType(dbType) && ars.UseArrowNativeIntervalTypes {
// interval types are not yet fully supported
ars.Error().Msgf(errArrowRowsUnsupportedNativeType(dbType.String()))
return dbsqlerrint.NewDriverError(ars.ctx, errArrowRowsUnsupportedNativeType(dbType.String()), nil)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/rows/arrowbased/arrowRows_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ func TestArrowRowScanner(t *testing.T) {

err := ars.ScanRow(dest, 0)

if i < 3 {
if i < 4 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a separate test to verify changes in ScanRow? That tests ScanRow no longer blocks decimal types

assert.Nil(t, err)
} else {
assert.NotNil(t, err)
Expand Down