candiduslynx opened a new pull request, #35457:
URL: https://github.com/apache/arrow/pull/35457

   ### Rationale for this change
   
   I noticed that some values produced by `array.X.ValueStr` can't be parsed 
back by `array.XBuilder.AppendValueFromString` while debugging 
https://github.com/cloudquery/cloudquery/pull/10284.
   Additionally, some arrays didn't implement the corresponding functions at 
all.
   
   ### What changes are included in this PR?
   
   * Ensure interface contract
   * Use `array.NullValueStr` constant
   * Fix bugs found along the way:
   * Synced `internal/types/UUID` with CQ implementation to account for `valid` 
param
   
   ### Are these changes tested?
   
   This code was developed in TDD mode. The changes workflow was:
   1. Introduce tests:
     1. `_ValueStr` to test that the resulting strings are the same
     2. `_AppendValueFromString` to test that the stored values are the same
   2. Fix any discrepancies
   
   ### Are there any user-facing changes?
   
   Some fixes to the accepted values & parse logic to correspond to the 
interface contract.
   
   <!--
   If there are user-facing changes then we may require documentation to be 
updated before approving the PR.
   -->
   
   <!--
   If there are any breaking changes to public APIs, please uncomment the line 
below and explain which changes are breaking.
   -->
   <!-- **This PR includes breaking changes to public APIs.** -->
   
   <!--
   Please uncomment the line below (and provide explanation) if the changes fix 
either (a) a security vulnerability, (b) a bug that caused incorrect or invalid 
data to be produced, or (c) a bug that causes a crash (even when the API 
contract is upheld). We use this to highlight fixes to issues that may affect 
users without their knowledge. For this reason, fixing bugs that cause errors 
don't count, since those are usually obvious.
   -->
   <!-- **This PR contains a "Critical Fix".** -->


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to