Skip to content

Allow for alphanumeric in column mapping#40556

Merged
slister1001 merged 3 commits intoAzure:mainfrom
slister1001:column-mapping-int
Apr 21, 2025
Merged

Allow for alphanumeric in column mapping#40556
slister1001 merged 3 commits intoAzure:mainfrom
slister1001:column-mapping-int

Conversation

@slister1001
Copy link
Member

Description

Please add an informative description that covers that changes made by the pull request and link all relevant issues.

If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

Copilot AI review requested due to automatic review settings April 16, 2025 23:07
@slister1001 slister1001 requested a review from a team as a code owner April 16, 2025 23:07
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 updates the regex used in column mapping to allow alphanumeric characters, addressing the issue where data fields with numeric characters were erroneously rejected.

  • Updated regex in _evaluate.py to include digits
  • Updated CHANGELOG.md to document the fix

Reviewed Changes

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

File Description
_evaluate/_evaluate.py Modified regex to accept numeric characters in column mappings.
CHANGELOG.md Added changelog entry explaining the numeric character support fix.

@github-actions github-actions bot added the Evaluation Issues related to the client library for Azure AI Evaluation label Apr 16, 2025
@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@singankit
Copy link
Contributor

Please add a unit test which can help prevent regression. Thanks a lot raising the PR

@slister1001 slister1001 enabled auto-merge (squash) April 20, 2025 19:15
@slister1001 slister1001 merged commit a55603d into Azure:main Apr 21, 2025
19 checks passed
cRui861 pushed a commit that referenced this pull request May 14, 2025
* Allow for alphanumeric in column mapping

* add unit test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Evaluation Issues related to the client library for Azure AI Evaluation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants