[Groonga-commit] groonga/groonga at e9c9a4a [master] test load: follow load report error change

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Aug 18 18:31:01 JST 2016


Kouhei Sutou	2016-08-18 18:31:01 +0900 (Thu, 18 Aug 2016)

  New Revision: e9c9a4ad8d6eefb3e0676ca07b65104e7cf6ddb1
  https://github.com/groonga/groonga/commit/e9c9a4ad8d6eefb3e0676ca07b65104e7cf6ddb1

  Message:
    test load: follow load report error change

  Modified files:
    test/command/suite/load/bool/cast/tokyo_geo_point.expected
    test/command/suite/load/bool/cast/wgs84_geo_point.expected
    test/command/suite/load/command_after_invalid_load.expected
    test/command/suite/load/invalid/geo_point/not_break_following_text.expected
    test/command/suite/load/invalid/geo_point/too_large_latitude.expected
    test/command/suite/load/invalid/geo_point/too_large_longitude.expected
    test/command/suite/load/invalid/geo_point/too_small_latitude.expected
    test/command/suite/load/invalid/geo_point/too_small_longitude.expected
    test/command/suite/load/invalid/in_mid_brace/scalar.expected
    test/command/suite/load/invalid/in_mid_brace/vector.expected
    test/command/suite/load/invalid/in_mid_bracket/scalar.expected
    test/command/suite/load/invalid/in_mid_bracket/vector.expected
    test/command/suite/load/invalid/int32.expected
    test/command/suite/load/vector/add/weight/array/invalid/normal_vector.expected
    test/command/suite/load/vector/add/weight/array/invalid/scalar.expected
    test/command/suite/load/vector/add/weight/object/invalid/normal_vector.expected
    test/command/suite/load/vector/add/weight/object/invalid/scalar.expected

  Modified: test/command/suite/load/bool/cast/tokyo_geo_point.expected (+11 -1)
===================================================================
--- test/command/suite/load/bool/cast/tokyo_geo_point.expected    2016-08-18 18:24:30 +0900 (cfd3ff2)
+++ test/command/suite/load/bool/cast/tokyo_geo_point.expected    2016-08-18 18:31:01 +0900 (5806a1e)
@@ -7,7 +7,17 @@ load --table Entries
 {"_key": "Special news!",  "location": true},
 {"_key": "Surprise news!", "location": false}
 ]
-[[0,0.0,0.0],2]
+[
+  [
+    [
+      -22,
+      0.0,
+      0.0
+    ],
+    "<Entries.location>: failed to cast to <TokyoGeoPoint>: <false>"
+  ],
+  2
+]
 #|e| <Entries.location>: failed to cast to <TokyoGeoPoint>: <true>
 #|e| [table][load] failed to set column value: <Entries.location>: failed to cast to <TokyoGeoPoint>: <true>: key: <"Special news!">, column: <location>, value: <true>
 #|e| <Entries.location>: failed to cast to <TokyoGeoPoint>: <false>

  Modified: test/command/suite/load/bool/cast/wgs84_geo_point.expected (+11 -1)
===================================================================
--- test/command/suite/load/bool/cast/wgs84_geo_point.expected    2016-08-18 18:24:30 +0900 (b2f7926)
+++ test/command/suite/load/bool/cast/wgs84_geo_point.expected    2016-08-18 18:31:01 +0900 (147f8eb)
@@ -7,7 +7,17 @@ load --table Entries
 {"_key": "Special news!",  "location": true},
 {"_key": "Surprise news!", "location": false}
 ]
-[[0,0.0,0.0],2]
+[
+  [
+    [
+      -22,
+      0.0,
+      0.0
+    ],
+    "<Entries.location>: failed to cast to <WGS84GeoPoint>: <false>"
+  ],
+  2
+]
 #|e| <Entries.location>: failed to cast to <WGS84GeoPoint>: <true>
 #|e| [table][load] failed to set column value: <Entries.location>: failed to cast to <WGS84GeoPoint>: <true>: key: <"Special news!">, column: <location>, value: <true>
 #|e| <Entries.location>: failed to cast to <WGS84GeoPoint>: <false>

  Modified: test/command/suite/load/command_after_invalid_load.expected (+11 -1)
===================================================================
--- test/command/suite/load/command_after_invalid_load.expected    2016-08-18 18:24:30 +0900 (a87de93)
+++ test/command/suite/load/command_after_invalid_load.expected    2016-08-18 18:31:01 +0900 (38248a3)
@@ -6,7 +6,17 @@ load --table Shops
 [
 {"_key":"Tokyo","location":"x"}
 ]
-[[0,0.0,0.0],1]
+[
+  [
+    [
+      -22,
+      0.0,
+      0.0
+    ],
+    "<Shops.location>: failed to cast to <WGS84GeoPoint>: <\"x\">"
+  ],
+  1
+]
 #|e| <Shops.location>: failed to cast to <WGS84GeoPoint>: <"x">
 #|e| [table][load] failed to set column value: <Shops.location>: failed to cast to <WGS84GeoPoint>: <"x">: key: <"Tokyo">, column: <location>, value: <"x">
 table_list

  Modified: test/command/suite/load/invalid/geo_point/not_break_following_text.expected (+11 -1)
===================================================================
--- test/command/suite/load/invalid/geo_point/not_break_following_text.expected    2016-08-18 18:24:30 +0900 (8c4c020)
+++ test/command/suite/load/invalid/geo_point/not_break_following_text.expected    2016-08-18 18:31:01 +0900 (dc3fb40)
@@ -15,7 +15,17 @@ load --table LandMarks
 {"_key":"b","location":"x","code":"b0000005"},
 {"_key":"b","location":"x","code":"b0000006"}
 ]
-[[0,0.0,0.0],8]
+[
+  [
+    [
+      -22,
+      0.0,
+      0.0
+    ],
+    "<LandMarks.location>: failed to cast to <WGS84GeoPoint>: <\"x\">"
+  ],
+  8
+]
 #|e| <LandMarks.location>: failed to cast to <WGS84GeoPoint>: <"x">
 #|e| [table][load] failed to set column value: <LandMarks.location>: failed to cast to <WGS84GeoPoint>: <"x">: key: <"a">, column: <location>, value: <"x">
 #|e| [table][load] failed to set column value: <LandMarks.location>: failed to cast to <WGS84GeoPoint>: <"x">: key: <"b">, column: <location>, value: <"x">

  Modified: test/command/suite/load/invalid/geo_point/too_large_latitude.expected (+11 -1)
===================================================================
--- test/command/suite/load/invalid/geo_point/too_large_latitude.expected    2016-08-18 18:24:30 +0900 (9bf6e8a)
+++ test/command/suite/load/invalid/geo_point/too_large_latitude.expected    2016-08-18 18:31:01 +0900 (e6351c9)
@@ -6,7 +6,17 @@ load --table LandMarks
 [
 {"location": "324000001x1"}
 ]
-[[0,0.0,0.0],1]
+[
+  [
+    [
+      -22,
+      0.0,
+      0.0
+    ],
+    "<LandMarks.location>: failed to cast to <WGS84GeoPoint>: <\"324000001x1\">"
+  ],
+  1
+]
 #|e| <LandMarks.location>: failed to cast to <WGS84GeoPoint>: <"324000001x1">
 #|e| [table][load] failed to set column value: <LandMarks.location>: failed to cast to <WGS84GeoPoint>: <"324000001x1">: key: <(NULL)>, column: <location>, value: <"324000001x1">
 select LandMarks

  Modified: test/command/suite/load/invalid/geo_point/too_large_longitude.expected (+11 -1)
===================================================================
--- test/command/suite/load/invalid/geo_point/too_large_longitude.expected    2016-08-18 18:24:30 +0900 (e217c92)
+++ test/command/suite/load/invalid/geo_point/too_large_longitude.expected    2016-08-18 18:31:01 +0900 (36827d9)
@@ -6,7 +6,17 @@ load --table LandMarks
 [
 {"location": "1x648000000"}
 ]
-[[0,0.0,0.0],1]
+[
+  [
+    [
+      -22,
+      0.0,
+      0.0
+    ],
+    "<LandMarks.location>: failed to cast to <WGS84GeoPoint>: <\"1x648000000\">"
+  ],
+  1
+]
 #|e| <LandMarks.location>: failed to cast to <WGS84GeoPoint>: <"1x648000000">
 #|e| [table][load] failed to set column value: <LandMarks.location>: failed to cast to <WGS84GeoPoint>: <"1x648000000">: key: <(NULL)>, column: <location>, value: <"1x648000000">
 select LandMarks

  Modified: test/command/suite/load/invalid/geo_point/too_small_latitude.expected (+11 -1)
===================================================================
--- test/command/suite/load/invalid/geo_point/too_small_latitude.expected    2016-08-18 18:24:30 +0900 (6e9d5c1)
+++ test/command/suite/load/invalid/geo_point/too_small_latitude.expected    2016-08-18 18:31:01 +0900 (4ebc953)
@@ -6,7 +6,17 @@ load --table LandMarks
 [
 {"location": "-324000001x1"}
 ]
-[[0,0.0,0.0],1]
+[
+  [
+    [
+      -22,
+      0.0,
+      0.0
+    ],
+    "<LandMarks.location>: failed to cast to <WGS84GeoPoint>: <\"-324000001x1\">"
+  ],
+  1
+]
 #|e| <LandMarks.location>: failed to cast to <WGS84GeoPoint>: <"-324000001x1">
 #|e| [table][load] failed to set column value: <LandMarks.location>: failed to cast to <WGS84GeoPoint>: <"-324000001x1">: key: <(NULL)>, column: <location>, value: <"-324000001x1">
 select LandMarks

  Modified: test/command/suite/load/invalid/geo_point/too_small_longitude.expected (+11 -1)
===================================================================
--- test/command/suite/load/invalid/geo_point/too_small_longitude.expected    2016-08-18 18:24:30 +0900 (037f721)
+++ test/command/suite/load/invalid/geo_point/too_small_longitude.expected    2016-08-18 18:31:01 +0900 (a5e2fed)
@@ -6,7 +6,17 @@ load --table LandMarks
 [
 {"location": "1x-648000000"}
 ]
-[[0,0.0,0.0],1]
+[
+  [
+    [
+      -22,
+      0.0,
+      0.0
+    ],
+    "<LandMarks.location>: failed to cast to <WGS84GeoPoint>: <\"1x-648000000\">"
+  ],
+  1
+]
 #|e| <LandMarks.location>: failed to cast to <WGS84GeoPoint>: <"1x-648000000">
 #|e| [table][load] failed to set column value: <LandMarks.location>: failed to cast to <WGS84GeoPoint>: <"1x-648000000">: key: <(NULL)>, column: <location>, value: <"1x-648000000">
 select LandMarks

  Modified: test/command/suite/load/invalid/in_mid_brace/scalar.expected (+11 -1)
===================================================================
--- test/command/suite/load/invalid/in_mid_brace/scalar.expected    2016-08-18 18:24:30 +0900 (5accfea)
+++ test/command/suite/load/invalid/in_mid_brace/scalar.expected    2016-08-18 18:31:01 +0900 (0ec6eb1)
@@ -14,7 +14,17 @@ load --table Users
 [
 {"_key": "alice", "name": "Alice", "birthday": "2012-02-29 GARBAGE", "tags": "girl wonder"}
 ]
-[[0,0.0,0.0],1]
+[
+  [
+    [
+      -22,
+      0.0,
+      0.0
+    ],
+    "<Users.birthday>: failed to cast to <Time>: <\"2012-02-29 GARBAGE\">"
+  ],
+  1
+]
 #|e| <Users.birthday>: failed to cast to <Time>: <"2012-02-29 GARBAGE">
 #|e| [table][load] failed to set column value: <Users.birthday>: failed to cast to <Time>: <"2012-02-29 GARBAGE">: key: <"alice">, column: <birthday>, value: <"2012-02-29 GARBAGE">
 select Users

  Modified: test/command/suite/load/invalid/in_mid_brace/vector.expected (+1 -1)
===================================================================
--- test/command/suite/load/invalid/in_mid_brace/vector.expected    2016-08-18 18:24:30 +0900 (750a1a1)
+++ test/command/suite/load/invalid/in_mid_brace/vector.expected    2016-08-18 18:31:01 +0900 (85875da)
@@ -14,7 +14,7 @@ load --table Users
 [
 {"_key": "alice", "name": "Alice", "cards": [1, "GARBAGE", 3], "tags": ["girl", "wonder"]}
 ]
-[[0,0.0,0.0],1]
+[[[-22,0.0,0.0],"<Users.cards>: failed to cast to <UInt8>: <\"GARBAGE\">"],1]
 #|e| <Users.cards>: failed to cast to <UInt8>: <"GARBAGE">
 #|e| [table][load] failed to set column value: <Users.cards>: failed to cast to <UInt8>: <"GARBAGE">: key: <"alice">, column: <cards>, value: <[1, "GARBAGE", 3]>
 select Users

  Modified: test/command/suite/load/invalid/in_mid_bracket/scalar.expected (+11 -1)
===================================================================
--- test/command/suite/load/invalid/in_mid_bracket/scalar.expected    2016-08-18 18:24:30 +0900 (37d7e16)
+++ test/command/suite/load/invalid/in_mid_bracket/scalar.expected    2016-08-18 18:31:01 +0900 (5658e39)
@@ -15,7 +15,17 @@ load --table Users
 ["_key", "name", "birthday", "tags"],
 ["alice", "Alice", "2012-02-29 GARBAGE", "girl wonder"]
 ]
-[[0,0.0,0.0],1]
+[
+  [
+    [
+      -22,
+      0.0,
+      0.0
+    ],
+    "<Users.birthday>: failed to cast to <Time>: <\"2012-02-29 GARBAGE\">"
+  ],
+  1
+]
 #|e| <Users.birthday>: failed to cast to <Time>: <"2012-02-29 GARBAGE">
 #|e| [table][load] failed to set column value: <Users.birthday>: failed to cast to <Time>: <"2012-02-29 GARBAGE">: key: <"alice">, column: <Users.birthday>, value: <"2012-02-29 GARBAGE">
 select Users

  Modified: test/command/suite/load/invalid/in_mid_bracket/vector.expected (+1 -1)
===================================================================
--- test/command/suite/load/invalid/in_mid_bracket/vector.expected    2016-08-18 18:24:30 +0900 (c5e92ef)
+++ test/command/suite/load/invalid/in_mid_bracket/vector.expected    2016-08-18 18:31:01 +0900 (5567307)
@@ -15,7 +15,7 @@ load --table Users
 ["_key", "name", "cards", "tags"],
 ["alice", "Alice", [1, "GARBAGE", 3], ["girl", "wonder"]]
 ]
-[[0,0.0,0.0],1]
+[[[-22,0.0,0.0],"<Users.cards>: failed to cast to <UInt8>: <\"GARBAGE\">"],1]
 #|e| <Users.cards>: failed to cast to <UInt8>: <"GARBAGE">
 #|e| [table][load] failed to set column value: <Users.cards>: failed to cast to <UInt8>: <"GARBAGE">: key: <"alice">, column: <Users.cards>, value: <[1, "GARBAGE", 3]>
 select Users

  Modified: test/command/suite/load/invalid/int32.expected (+11 -1)
===================================================================
--- test/command/suite/load/invalid/int32.expected    2016-08-18 18:24:30 +0900 (0c40f94)
+++ test/command/suite/load/invalid/int32.expected    2016-08-18 18:31:01 +0900 (b96bd3e)
@@ -6,7 +6,17 @@ load --table Users
 [
 {"age": "invalid number!"}
 ]
-[[0,0.0,0.0],1]
+[
+  [
+    [
+      -22,
+      0.0,
+      0.0
+    ],
+    "<Users.age>: failed to cast to <Int32>: <\"invalid number!\">"
+  ],
+  1
+]
 #|e| <Users.age>: failed to cast to <Int32>: <"invalid number!">
 #|e| [table][load] failed to set column value: <Users.age>: failed to cast to <Int32>: <"invalid number!">: key: <(NULL)>, column: <age>, value: <"invalid number!">
 select Users

  Modified: test/command/suite/load/vector/add/weight/array/invalid/normal_vector.expected (+11 -1)
===================================================================
--- test/command/suite/load/vector/add/weight/array/invalid/normal_vector.expected    2016-08-18 18:24:30 +0900 (cc0b4db)
+++ test/command/suite/load/vector/add/weight/array/invalid/normal_vector.expected    2016-08-18 18:31:01 +0900 (e76a91f)
@@ -14,6 +14,16 @@ load --table Memos
   }
 ]
 ]
-[[0,0.0,0.0],1]
+[
+  [
+    [
+      -22,
+      0.0,
+      0.0
+    ],
+    "<Memos.tags>: columns except weight vector column don't support object value"
+  ],
+  1
+]
 #|e| <Memos.tags>: columns except weight vector column don't support object value
 #|e| [table][load] failed to set column value: <Memos.tags>: columns except weight vector column don't support object value: key: <"Groonga is fast">, column: <Memos.tags>, value: <{"groonga": 100}>

  Modified: test/command/suite/load/vector/add/weight/array/invalid/scalar.expected (+11 -1)
===================================================================
--- test/command/suite/load/vector/add/weight/array/invalid/scalar.expected    2016-08-18 18:24:30 +0900 (f5e55f1)
+++ test/command/suite/load/vector/add/weight/array/invalid/scalar.expected    2016-08-18 18:31:01 +0900 (7bd2ab3)
@@ -12,6 +12,16 @@ load --table Memos
   }
 ]
 ]
-[[0,0.0,0.0],1]
+[
+  [
+    [
+      -22,
+      0.0,
+      0.0
+    ],
+    "<Memos.content>: columns except weight vector column don't support object value"
+  ],
+  1
+]
 #|e| <Memos.content>: columns except weight vector column don't support object value
 #|e| [table][load] failed to set column value: <Memos.content>: columns except weight vector column don't support object value: key: <"Groonga is fast">, column: <Memos.content>, value: <{"groonga": 100}>

  Modified: test/command/suite/load/vector/add/weight/object/invalid/normal_vector.expected (+11 -1)
===================================================================
--- test/command/suite/load/vector/add/weight/object/invalid/normal_vector.expected    2016-08-18 18:24:30 +0900 (d8c123e)
+++ test/command/suite/load/vector/add/weight/object/invalid/normal_vector.expected    2016-08-18 18:31:01 +0900 (82b5f45)
@@ -13,6 +13,16 @@ load --table Memos
   }
 }
 ]
-[[0,0.0,0.0],1]
+[
+  [
+    [
+      -22,
+      0.0,
+      0.0
+    ],
+    "<Memos.tags>: columns except weight vector column don't support object value"
+  ],
+  1
+]
 #|e| <Memos.tags>: columns except weight vector column don't support object value
 #|e| [table][load] failed to set column value: <Memos.tags>: columns except weight vector column don't support object value: key: <"Groonga is fast">, column: <tags>, value: <{"groonga": 100}>

  Modified: test/command/suite/load/vector/add/weight/object/invalid/scalar.expected (+11 -1)
===================================================================
--- test/command/suite/load/vector/add/weight/object/invalid/scalar.expected    2016-08-18 18:24:30 +0900 (9753944)
+++ test/command/suite/load/vector/add/weight/object/invalid/scalar.expected    2016-08-18 18:31:01 +0900 (7947bfd)
@@ -11,6 +11,16 @@ load --table Memos
   }
 }
 ]
-[[0,0.0,0.0],1]
+[
+  [
+    [
+      -22,
+      0.0,
+      0.0
+    ],
+    "<Memos.content>: columns except weight vector column don't support object value"
+  ],
+  1
+]
 #|e| <Memos.content>: columns except weight vector column don't support object value
 #|e| [table][load] failed to set column value: <Memos.content>: columns except weight vector column don't support object value: key: <"Groonga is fast">, column: <content>, value: <{"groonga": 100}>
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index