Repository navigation
[source-mssql, cdk]: cherry-pick PR #55701 - #55709
Conversation
… CDK Co-Authored-By: yue.li@airbyte.io <yue.li@airbyte.io>
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🤖 Devin AI EngineerOriginal prompt from yue.li@airbyte.io: I'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
| @@ -0,0 +1,6 @@ | |||
| # Changelog | |||
There was a problem hiding this comment.
instead of updating this changelog, please update this one instead:
docs/integrations/sources/mssql.md
Co-Authored-By: yue.li@airbyte.io <yue.li@airbyte.io>
Co-Authored-By: yue.li@airbyte.io <yue.li@airbyte.io>
Co-Authored-By: yue.li@airbyte.io <yue.li@airbyte.io>
| } | ||
| .values | ||
| .map { fields: List<JsonNode> -> jsonFieldListToTableInfo(fields) } | ||
| .filter { ti: TableInfo<CommonField<Datatype>> -> ti.name == tableName } |
There was a problem hiding this comment.
the filter suggests that somehow fields belonging to activity index get mixed with fields belonging to activity_index (with _) but it's not clear to me why as the two strings are not equal.
There was a problem hiding this comment.
One reason would be lack of correct quotation or escaping in connection.metaData.getColumns(getCatalog(database), schema, tableName, null) which causes both tables to match.
I'm checking if this is the case.
There was a problem hiding this comment.
This suggests we may need to escape as the call translates into WHERE name LIKE …
|
Hi Rodi Reich Zilberman (@rodireich), Thanks for your question about the filter in AbstractJdbcSource.kt. The filter The When we call For example, if we're looking for a table named "activity_index", the JDBC driver might also return tables with names like:
The filter ensures we only process the exact table we requested, preventing potential null pointer exceptions or incorrect data processing when multiple tables are returned. This fix was implemented to address issue #53610 where NullPointerExceptions were occurring during table discovery. You're right that lack of proper quotation or escaping in the JDBC call could be part of the issue. The StackOverflow link you shared confirms this behavior - the JDBC metadata query essentially translates to |
Co-authored-by: Baptiste Bergmann <baptiste.bergmann@maxa.ai> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: yue.li@airbyte.io <yue.li@airbyte.io>
Cherry-pick PR #55701, bump CDK version, use local CDK for source-mssql
What
How
Related Issues
Fixes #53610
Link to Devin run
https://app.devin.ai/sessions/c96ec1e59ec94c9699860b3c3d443008
Requested by: yue.li@airbyte.io