Changeset: 50551d82056c for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/50551d82056c
Modified Files:
        sql/test/BugTracker-2018/Tests/pyUDF-crash.Bug-6508.test
Branch: default
Log Message:

Convert numpy array to list before processing


diffs (12 lines):

diff --git a/sql/test/BugTracker-2018/Tests/pyUDF-crash.Bug-6508.test 
b/sql/test/BugTracker-2018/Tests/pyUDF-crash.Bug-6508.test
--- a/sql/test/BugTracker-2018/Tests/pyUDF-crash.Bug-6508.test
+++ b/sql/test/BugTracker-2018/Tests/pyUDF-crash.Bug-6508.test
@@ -2,7 +2,7 @@ statement ok
 CREATE FUNCTION test_timestamp_with_nulls(actual_takeoff_datetime timestamp)
 RETURNS STRING LANGUAGE PYTHON {
     import json
-    return json.dumps(list(map(lambda x: x if x is None else x.isoformat(sep=' 
'), actual_takeoff_datetime)));
+    return json.dumps(list(map(lambda x: x if x is None else x.isoformat(sep=' 
'), actual_takeoff_datetime.tolist())));
 }
 
 statement ok
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to