Skip to content

[bugfix]: Fixes datetime parsing for all nulls data#621

Open
asaharn wants to merge 1 commit intomasterfrom
asaharn/bugfix/datetimeParseFix
Open

[bugfix]: Fixes datetime parsing for all nulls data#621
asaharn wants to merge 1 commit intomasterfrom
asaharn/bugfix/datetimeParseFix

Conversation

@asaharn
Copy link
Member

@asaharn asaharn commented Feb 18, 2026

Removed dead code for pandas version check, as the min pandas version required is 2.3.1

Added

Changed

Fixed

#620

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a pandas 3.0 compatibility issue where dataframe_from_result_table fails when processing columns with all null datetime values. The fix removes dead code that was checking for pandas version 1.x compatibility, since the minimum supported pandas version is 2.3.1.

Changes:

  • Simplified parse_datetime function by removing pandas version checks and string manipulation logic
  • Updated test_datetime_parsing to remove tests for the obsolete force_version parameter
  • Added new test test_all_null_datetime_column to verify the fix for issue #620

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
azure/kusto/data/helpers.py Simplified parse_datetime by removing pandas 1.x compatibility code and force_version parameter
tests/test_helpers.py Removed force_version tests and added regression test for all-null datetime columns

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 18, 2026

Test Results

    5 files  ±0      5 suites  ±0   9m 8s ⏱️ + 2m 54s
  319 tests +1    284 ✅ +1   35 💤 ±0  0 ❌ ±0 
1 595 runs  +5  1 420 ✅ +5  175 💤 ±0  0 ❌ ±0 

Results for commit 53748a5. ± Comparison against base commit a5fadc8.

♻️ This comment has been updated with latest results.

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.

1 participant

Comments