MCPcopy Create free account
hub / github.com/PostHog/duckgres / decimalToBigInt

Function decimalToBigInt

server/flightclient/flight_executor.go:828–852  ·  view source on GitHub ↗
(val decimal128.Num, dt *arrow.Decimal128Type)

Source from the content-addressed store, hash-verified

826 if r.done || r.err != nil {
827 return false
828 }
829
830 // Advance within current batch
831 if r.currentBatch != nil && r.batchRow+1 < int(r.currentBatch.NumRows()) {
832 r.batchRow++
833 return true
834 }
835
836 // Release previous batch
837 if r.currentBatch != nil {
838 r.currentBatch.Release()
839 r.currentBatch = nil
840 }
841
842 // Read next batch, skipping empty batches
843 for r.reader.Next() {
844 r.currentBatch = r.reader.RecordBatch()
845 r.currentBatch.Retain()
846 r.batchRow = 0
847 if r.currentBatch.NumRows() > 0 {
848 return true
849 }
850 r.currentBatch.Release()
851 r.currentBatch = nil
852 }
853
854 r.done = true
855 r.err = r.reader.Err()

Callers 1

extractArrowValueFunction · 0.85

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected