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

[JS] Timestamp types are all the same

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • JavaScript
    • None

    Description

      Current timestamp types are all the same. They have the same representation. And also the same precision.

      For example, TimestampSecond and TimestampMillisecond return the values as 1652118180000. Instead, I would expect the TimestampSecond to drop the 3 zeros when returning a value, e.g. 1652118180. Also, the representation underneath is still an int32 array. Even though for TimestampSecond every second value is 0, the array still has double the amount of integers.

      I also got an error when trying to read a Date as TimestampNanosecond - TypeError: can't convert 1652118180000 to BigInt.

      Attachments

        Activity

          People

            Unassigned Unassigned
            terusus Teodor Kostov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: