Commit 573a326
authored
fix(csharp/src/Drivers/Databricks): Change fallback check of Databricks.GetColumnsExtendedAsync (apache#3121)
# PR Description
### Motivation
When `DESC TABLE EXTENDED {fullTableName} AS JSON` fails to run, we will
fallback base class `GetColumnsExtendedAsync` which calls 3 metadata
query to get the info, but the current check is based on the error
message, which is not accurate, instead, we can check the `SqlState` =
`42601` which is the error of SQL syntax error, it means the command is
not supported by the runtime, then we can fallback to the base class
### Changes
- Update the fallback condition check in `Databricks`
`GetColumnsExtendedAsync`
### Testing
- End-to-end test with the runtime does not support the command1 parent bc48e18 commit 573a326
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
533 | | - | |
| 533 | + | |
534 | 534 | | |
535 | | - | |
536 | | - | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
537 | 538 | | |
538 | 539 | | |
539 | 540 | | |
| |||
0 commit comments