-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARROW-6460: [Java] Add benchmark and large fake data UT for avro adapter
Related to [ARROW-6460](https://issues.apache.org/jira/browse/ARROW-6460). i. This issue is about to add tests with a large fake data set (600000 rows) and ensures no OOMs occur. ii. Add benchmark for avro iterator to get a baseline number. Closes #5317 from tianchen92/ARROW-6460 and squashes the following commits: d061f5a <tianchen> resolve comments e9abe5e <tianchen> ARROW-6460: Add benchmark and large fake data UT for avro adapter Authored-by: tianchen <[email protected]> Signed-off-by: Micah Kornfield <[email protected]>
- Loading branch information
1 parent
500b828
commit 40eddfe
Showing
4 changed files
with
378 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 75 additions & 0 deletions
75
java/adapter/avro/src/test/resources/schema/test_large_data.avsc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
{ | ||
"namespace": "org.apache.arrow.avro", | ||
"type": "record", | ||
"name": "testLargeData", | ||
"fields": [ | ||
{ | ||
"name": "f0", | ||
"type": { | ||
"name" : "f0", | ||
"type" : "enum", | ||
"symbols" : ["value1", "value2", "value3", "value4", "value5"] | ||
} | ||
}, | ||
{ | ||
"name" : "f1", | ||
"type" : { | ||
"type" : "record", | ||
"name" : "nestedRecord", | ||
"fields": [ | ||
{"name": "f1_0", "type": "string"}, | ||
{"name": "f1_1", "type": "int"} | ||
] | ||
} | ||
}, | ||
|
||
{"name": "f2", "type": "string"}, | ||
{"name": "f3", "type": "int"}, | ||
{"name": "f4", "type": "boolean"}, | ||
{"name": "f5", "type": "float"}, | ||
{"name": "f6", "type": "double"}, | ||
{"name": "f7", "type": "bytes"}, | ||
{"name": "f8", "type": ["string", "int"]}, | ||
{ | ||
"name": "f9", | ||
"type": { | ||
"name" : "f9", | ||
"type" : "array", | ||
"items" : "string" | ||
} | ||
}, | ||
{ | ||
"name": "f10", | ||
"type": { | ||
"name" : "f10", | ||
"type" : "map", | ||
"values" : "string" | ||
} | ||
}, | ||
{ | ||
"name": "f11", | ||
"type": { | ||
"type" : "fixed", | ||
"name" : "f11", | ||
"size" : 5 | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.