Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-2694

[Python] ArrayValue string conversion returns the representation instead of the converted python object string

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.9.0
    • Fix Version/s: 0.10.0
    • Component/s: None

      Description

      Example:

      # python 3.6.5
      In [1]: import pyarrow as pa
      
      In [2]: str(pa.array(['a'])[0])  # note the single quotes
      Out[2]: "'a'"
      
      In [3]: str(pa.array([1], pa.timestamp('s'))[0])
      Out[3]: "Timestamp('1970-01-01 00:00:01')"
      

      instead of

      # python 3.6.5
      In [1]: import pyarrow as pa
      
      In [2]: str(pa.array(['a'])[0])
      Out[2]: "a"
      
      In [3]: str(pa.array([1], pa.timestamp('s'))[0])
      Out[3]: "1970-01-01 00:00:01"
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fjetter Florian Jetter
                Reporter:
                fjetter Florian Jetter
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h