Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

VenkatasivareddyTR
Copy link
Contributor

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.

@AbdulR3hman AbdulR3hman force-pushed the db2_phase2_tablelist_issue branch from 157e43e to 5687505 Compare January 8, 2025 18:43
Copy link

codecov bot commented Jan 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.18%. Comparing base (7b40bf4) to head (95fb6a9).
Report is 3 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

@AbdulR3hman AbdulR3hman force-pushed the db2_phase2_tablelist_issue branch from 5687505 to 95fb6a9 Compare January 10, 2025 18:23
@@ -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();
Copy link
Contributor

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();
Copy link
Contributor

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";

@AbdulR3hman
Copy link
Contributor

question; has this been tested with and without glue connection?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants