birschick-bq opened a new issue, #1729:
URL: https://github.com/apache/arrow-adbc/issues/1729
### What happened?
When building column schema (for Spark driver), can receive and exception:
System.ArgumentException : Specified array type <String> does not match
expected type(s) <Boolean>
Stack Trace
```
Apache.Arrow.Adbc.Tests.Drivers.Apache.Spark.DriverTests.CanGetObjects
Source: DriverTests.cs line 107
Duration: 4 sec
Message:
System.ArgumentException : Specified array type <String> does not match
expected type(s) <Boolean>
Parameter name: TypeId
Stack Trace:
ArrayDataExtensions.EnsureDataType(ArrayData data, ArrowTypeId id)
ArrayDataConcatenationVisitor.CheckData(IArrowType type, Int32
expectedBufferCount)
ArrayDataConcatenationVisitor.Visit(BooleanType type)
ArrayDataConcatenator.Concatenate(IReadOnlyList`1 arrayDataList,
MemoryAllocator allocator)
ArrayDataConcatenationVisitor.Visit(StructType type)
ArrayDataConcatenator.Concatenate(IReadOnlyList`1 arrayDataList,
MemoryAllocator allocator)
ArrayDataConcatenationVisitor.ConcatenateLists(NestedType type)
ArrayDataConcatenator.Concatenate(IReadOnlyList`1 arrayDataList,
MemoryAllocator allocator)
ArrayDataConcatenationVisitor.Visit(StructType type)
ArrayDataConcatenator.Concatenate(IReadOnlyList`1 arrayDataList,
MemoryAllocator allocator)
SparkConnection.CreateNestedListArray(List`1 arrayList, IArrowType dataType)
line 740
SparkConnection.GetDbSchemas(GetObjectsDepth depth, Dictionary`2 schemaMap)
line 564
SparkConnection.GetObjects(GetObjectsDepth depth, String catalogPattern,
String dbSchemaPattern, String tableNamePattern, List`1 tableTypes, String
columnNamePattern) line 480
DriverTests.CanGetObjects() line 117
```
The cause of the issue is an incorrect data type definition for
StandardSchemas.ColumnSchema fields:
* xdbc_is_autoincrement
* xdbc_is_generatedcolumn
They should be changed from String to Boolean.
### How can we reproduce the bug?
_No response_
### Environment/Setup
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]