fix: Catch SQLException in attachTableType#296
Conversation
extract so shard_kind/persistence are skipped when not supported.
📝 WalkthroughWalkthroughThe Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In
`@source/src/main/java/com/adataptivescale/rosetta/source/core/extractors/table/KineticaTablesExtractor.java`:
- Around line 35-51: The catch block in attachTableType (class
KineticaTablesExtractor) currently swallows the SQLException; update the catch
to include the exception details in the log call (e.g., log.warn("Could not
attach table type ...", e) or append e.getMessage()) so the warning contains the
root cause; ensure you update the catch for SQLException e and keep the same
explanatory text while passing the exception object or its message to the
logger.
Log a warning, and continue extract so shard_kind/persistence are skipped when not supported.
Summary by CodeRabbit