Skip to content

Commit 5e717f5

Browse files
authored
Logging error, when scale from arrowMetaData is not found (#848)
* ADded logging * Added logging
1 parent 0790e02 commit 5e717f5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/main/java/com/databricks/jdbc/api/impl/converters/ArrowToJavaObjectConverter.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,8 @@ static BigDecimal convertToDecimal(Object object, String arrowMetadata)
275275
.substring(arrowMetadata.indexOf(',') + 1, arrowMetadata.indexOf(')'))
276276
.trim());
277277
} catch (Exception e) {
278+
LOGGER.error(
279+
e, "Failed to parse scale from arrow metadata: {}. Defaulting to scale 0", arrowMetadata);
278280
scale = 0;
279281
}
280282
if (object instanceof Number) {

0 commit comments

Comments
 (0)