hermanschaaf opened a new issue, #34828:
URL: https://github.com/apache/arrow/issues/34828

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   The String methods on the Go `array.Date32` and `array.Date64` types return 
strings formatted as the underlying integers, rather than strings formatted as 
dates as in other implementations.
   
   For example, this code in Go:
   
   ```
   package main
   
   import (
        "fmt"
   
        "github.com/apache/arrow/go/v12/arrow"
        "github.com/apache/arrow/go/v12/arrow/array"
        "github.com/apache/arrow/go/v12/arrow/memory"
   )
   
   func main() {
        db := array.NewDate32Builder(memory.DefaultAllocator)
        defer db.Release()
        db.AppendValues([]arrow.Date32{1, 2, 3}, nil)
        arr := db.NewArray()
        defer arr.Release()
        fmt.Println(arr)
   }
   ```
   
   produces the following output:
   
   ```
   [1 2 3]
   ```
   
   More or less equivalent code in Python:
   
   ```
   import pyarrow as pa
   
   date_array = pa.array([1, 2, 3], type=pa.date32())
   print(date_array)
   ```
   
   produces:
   
   ```
   [
     1970-01-02,
     1970-01-03,
     1970-01-04
   ]
   ```
   
   I think the Go implementation's dates should also return formatted dates?
   
   ### Component(s)
   
   Go


-- 
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