Skip to content

Conversation

@adev-code
Copy link
Contributor

@adev-code adev-code commented Jan 22, 2026

Description

This PR adds support for parsing lists containing null (None) values, which previously caused a TypeError. This issue was discovered with the RDS Data API.

Problem

When a service returns a list with null values e.g. [123, null, 456], the parser fails with:

TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

Solution

Added null value checking in _handle_list() before attempting to parse items. This fix applies to all parsers.

Testing

Unit tests covering:

  • Simple lists with null values
  • Nested lists with null values

Fixes boto/boto3#4508

When services return lists containing null values (e.g., RDS Data API
returning arrays with nulls), the parser would fail with TypeError when
attempting to parse primitive types like integers.

The fix adds explicit null handling in _handle_list() to preserve null
values in the parsed output.

Fixes boto/boto3#4508
@codecov-commenter
Copy link

codecov-commenter commented Jan 22, 2026

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.67%. Comparing base (8121342) to head (b34a07e).
⚠️ Report is 272 commits behind head on develop.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3618      +/-   ##
===========================================
- Coverage    93.17%   92.67%   -0.51%     
===========================================
  Files           68       68              
  Lines        15411    15568     +157     
===========================================
+ Hits         14359    14427      +68     
- Misses        1052     1141      +89     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@adev-code adev-code changed the title Add support for null values in list parsing Add support for None values in list parsing Jan 22, 2026
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.

execute_statement will result in an error if you execute an SQL statement that returns an array that contains null.

2 participants