@@ -27,6 +27,7 @@ package questdb_test
2727import (
2828 "context"
2929 "fmt"
30+ "math"
3031 "math/big"
3132 "path/filepath"
3233 "reflect"
@@ -417,11 +418,12 @@ func (suite *integrationTestSuite) TestE2EValidWrites() {
417418 "double array" ,
418419 testTable ,
419420 func (s qdb.LineSender ) error {
420- values1D := []float64 {1.0 , 2.0 , 3.0 , 4.0 , 5.0 }
421- values2D := [][]float64 {{1.0 , 2.0 }, {3.0 , 4.0 }, {5.0 , 6.0 }}
422- values3D := [][][]float64 {{{1.0 , 2.0 }, {3.0 , 4.0 }}, {{5.0 , 6.0 }, {7.0 , 8.0 }}}
421+ values1D := []float64 {1.0 , 2.0 , 3.0 , 4.0 , 5.0 , math . NaN () }
422+ values2D := [][]float64 {{1.0 , 2.0 }, {3.0 , 4.0 }, {5.0 , 6.0 }, { math . NaN (), math . NaN ()} }
423+ values3D := [][][]float64 {{{1.0 , 2.0 }, {3.0 , 4.0 }}, {{5.0 , 6.0 }, {7.0 , math . NaN () }}}
423424 arrayND , _ := qdb .NewNDArray [float64 ](2 , 2 , 1 , 2 )
424425 arrayND .Fill (11.0 )
426+ arrayND .Set (math .NaN (), 1 , 1 , 0 , 1 )
425427
426428 err := s .
427429 Table (testTable ).
@@ -464,10 +466,10 @@ func (suite *integrationTestSuite) TestE2EValidWrites() {
464466 },
465467 Dataset : [][]interface {}{
466468 {
467- []interface {}{float64 (1 ), float64 (2 ), float64 (3 ), float64 (4 ), float64 (5 )},
468- []interface {}{[]interface {}{float64 (1 ), float64 (2 )}, []interface {}{float64 (3 ), float64 (4 )}, []interface {}{float64 (5 ), float64 (6 )}},
469- []interface {}{[]interface {}{[]interface {}{float64 (1 ), float64 (2 )}, []interface {}{float64 (3 ), float64 (4 )}}, []interface {}{[]interface {}{float64 (5 ), float64 (6 )}, []interface {}{float64 (7 ), float64 ( 8 ) }}},
470- []interface {}{[]interface {}{[]interface {}{[]interface {}{float64 (11 ), float64 (11 )}}, []interface {}{[]interface {}{float64 (11 ), float64 (11 )}}}, []interface {}{[]interface {}{[]interface {}{float64 (11 ), float64 (11 )}}, []interface {}{[]interface {}{float64 (11 ), float64 ( 11 ) }}}},
469+ []interface {}{float64 (1 ), float64 (2 ), float64 (3 ), float64 (4 ), float64 (5 ), nil },
470+ []interface {}{[]interface {}{float64 (1 ), float64 (2 )}, []interface {}{float64 (3 ), float64 (4 )}, []interface {}{float64 (5 ), float64 (6 )}, [] interface {}{ nil , nil } },
471+ []interface {}{[]interface {}{[]interface {}{float64 (1 ), float64 (2 )}, []interface {}{float64 (3 ), float64 (4 )}}, []interface {}{[]interface {}{float64 (5 ), float64 (6 )}, []interface {}{float64 (7 ), nil }}},
472+ []interface {}{[]interface {}{[]interface {}{[]interface {}{float64 (11 ), float64 (11 )}}, []interface {}{[]interface {}{float64 (11 ), float64 (11 )}}}, []interface {}{[]interface {}{[]interface {}{float64 (11 ), float64 (11 )}}, []interface {}{[]interface {}{float64 (11 ), nil }}}},
471473 "1970-01-01T00:00:00.000001Z" },
472474 {
473475 []interface {}{},
0 commit comments