Skip to content

Parse String to UUID #1006 #1287

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

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

Conversation

EmmanuelBerkowicz
Copy link

@EmmanuelBerkowicz EmmanuelBerkowicz commented Jun 29, 2025

Summary

Implements UUID parsing support for DataColumn.parse() as per open issue #1006

Changes

  • Added UUID parser to parsersOrder list in main/../parse.kt using java.util.UUID.fromString() with exception handling
  • Added test cases in test/../parse.kt:
    • Valid UUID strings are parsed to UUID objects
    • Invalid UUID strings remain String type

Testing

  • Both positive and negative test cases pass
  • Unable to run full test suite due to Java version compatibility issue with simple-git plugin (unrelated to this change)

## Summary
Implements UUID parsing support for DataColumn.parse() as per open issue Kotlin#1006

## Changes
- Added UUID parser to `parsersOrder` list in `main/../parse.kt` using `java.util.UUID.fromString()` with exception handling
- Added test cases in `test/../ParseTests.kt`:
  - Valid UUID strings are parsed to UUID objects
  - Invalid UUID strings remain String type

## Testing
- Both positive and negative test cases pass
- Unable to run full test suite due to Java version compatibility issue with simple-git plugin (unrelated to this change)
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