-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DB2/DB2as400 glue get table api issue fix #2506
base: master
Are you sure you want to change the base?
DB2/DB2as400 glue get table api issue fix #2506
Conversation
157e43e
to
5687505
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2506 +/- ##
============================================
+ Coverage 61.09% 61.18% +0.08%
- Complexity 3738 3752 +14
============================================
Files 576 577 +1
Lines 21348 21437 +89
Branches 2654 2661 +7
============================================
+ Hits 13043 13116 +73
- Misses 7037 7051 +14
- Partials 1268 1270 +2 ☔ View full report in Codecov by Sentry. |
5687505
to
95fb6a9
Compare
@@ -77,7 +77,7 @@ | |||
public class Db2As400MetadataHandler extends JdbcMetadataHandler | |||
{ | |||
private static final Logger LOGGER = LoggerFactory.getLogger(Db2As400MetadataHandler.class); | |||
static final String PARTITION_NUMBER = "PARTITION_NUMBER"; | |||
static final String PARTITION_NUMBER = "PARTITION_NUMBER".toLowerCase(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit; static final String PARTITION_NUMBER = "partition_number";
@@ -86,7 +86,7 @@ | |||
public class Db2MetadataHandler extends JdbcMetadataHandler | |||
{ | |||
private static final Logger LOGGER = LoggerFactory.getLogger(Db2MetadataHandler.class); | |||
static final String PARTITION_NUMBER = "PARTITION_NUMBER"; | |||
static final String PARTITION_NUMBER = "PARTITION_NUMBER".toLowerCase(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit; static final String PARTITION_NUMBER = "partition_number";
question; has this been tested with and without glue connection? |
Issue #, if available:
Description of changes:
The DB2/DB2as400 Glue Get Table API was not retrieving data as expected due to a case-sensitivity issue with the PARTITION_NUMBER. By converting the PARTITION_NUMBER column to lowercase, we achieved successful data retrieval through the Glue API.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.