New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve ORC reader performance #555
Merged
Merged
Conversation
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
Here are the actual benchmark results (both wall time and CPU): https://s3.us-east-2.amazonaws.com/starburstdata/karol/Benchmarks+comparison-orc_improvements.pdf |
dain
force-pushed
the
orc-types
branch
2 times, most recently
from
April 4, 2019 17:29
5da422f
to
144013e
Compare
martint
approved these changes
Apr 10, 2019
presto-orc/src/main/java/io/prestosql/orc/reader/SliceDictionaryStreamReader.java
Show resolved
Hide resolved
Pass SQL type to ORC stream reader constructor and use that instead of passing to each readBlock call.
Change reporting to avg nanoseconds per row Close output streams Add long reader benchmarks for all types and pollute profile Add direct slice benchmark Improve dictionary slice benchmark Add long decimal benchmark Load data into memory before benchmarking Use Presto writer
Well done! |
yingsu00
pushed a commit
to yingsu00/presto
that referenced
this pull request
Nov 12, 2019
Pass SQL type to ORC stream reader constructor and use that instead of passing to each readBlock call. Cherry-pick of trinodb/trino#555 The difference from the original commit include: 1) Rmeoved systemMemoryContext because the BatchStreamReaders don't have local arrays; 2) Fixed raptor tests by converting all spi types to storage types; 3) Other Nits changes Co-authored-by: Dain Sundstrom <dain@iq80.com> Convert column type to storage type for Raptor Raptor stores TIME and TIMESTAMP data as longs. When creating the batch RecordReader, these types need to be converted to the storage types.
yingsu00
pushed a commit
to yingsu00/presto
that referenced
this pull request
Nov 12, 2019
Cherry-pick of trinodb/trino#555 Co-authored-by: Martin Traverso <mtraverso@gmail.com>
yingsu00
pushed a commit
to yingsu00/presto
that referenced
this pull request
Nov 12, 2019
Cherry-pick of trinodb/trino#555 Co-authored-by: Dain Sundstrom <dain@iq80.com>
yingsu00
pushed a commit
to yingsu00/presto
that referenced
this pull request
Nov 12, 2019
Cherry-pick of trinodb/trino#555 Co-authored-by: Dain Sundstrom <dain@iq80.com>
yingsu00
pushed a commit
to yingsu00/presto
that referenced
this pull request
Nov 12, 2019
Cherry-pick of trinodb/trino#555 Co-authored-by: Dain Sundstrom <dain@iq80.com>
yingsu00
pushed a commit
to yingsu00/presto
that referenced
this pull request
Nov 12, 2019
Cherry-pick of trinodb/trino#555 Co-authored-by: Dain Sundstrom <dain@iq80.com>
yingsu00
pushed a commit
to yingsu00/presto
that referenced
this pull request
Nov 12, 2019
Cherry-pick of trinodb/trino#555 Co-authored-by: Dain Sundstrom <dain@iq80.com>
rongrong
pushed a commit
to prestodb/presto
that referenced
this pull request
Nov 13, 2019
Pass SQL type to ORC stream reader constructor and use that instead of passing to each readBlock call. Cherry-pick of trinodb/trino#555 The difference from the original commit include: 1) Rmeoved systemMemoryContext because the BatchStreamReaders don't have local arrays; 2) Fixed raptor tests by converting all spi types to storage types; 3) Other Nits changes Co-authored-by: Dain Sundstrom <dain@iq80.com> Convert column type to storage type for Raptor Raptor stores TIME and TIMESTAMP data as longs. When creating the batch RecordReader, these types need to be converted to the storage types.
rongrong
pushed a commit
to prestodb/presto
that referenced
this pull request
Nov 13, 2019
Cherry-pick of trinodb/trino#555 Co-authored-by: Martin Traverso <mtraverso@gmail.com>
rongrong
pushed a commit
to prestodb/presto
that referenced
this pull request
Nov 13, 2019
Cherry-pick of trinodb/trino#555 Co-authored-by: Dain Sundstrom <dain@iq80.com>
rongrong
pushed a commit
to prestodb/presto
that referenced
this pull request
Nov 13, 2019
Cherry-pick of trinodb/trino#555 Co-authored-by: Dain Sundstrom <dain@iq80.com>
rongrong
pushed a commit
to prestodb/presto
that referenced
this pull request
Nov 13, 2019
Cherry-pick of trinodb/trino#555 Co-authored-by: Dain Sundstrom <dain@iq80.com>
rongrong
pushed a commit
to prestodb/presto
that referenced
this pull request
Nov 13, 2019
Cherry-pick of trinodb/trino#555 Co-authored-by: Dain Sundstrom <dain@iq80.com>
rongrong
pushed a commit
to prestodb/presto
that referenced
this pull request
Nov 13, 2019
Cherry-pick of trinodb/trino#555 Co-authored-by: Dain Sundstrom <dain@iq80.com>
kaikalur
pushed a commit
to kaikalur/presto
that referenced
this pull request
Jan 22, 2020
Pass SQL type to ORC stream reader constructor and use that instead of passing to each readBlock call. Cherry-pick of trinodb/trino#555 The difference from the original commit include: 1) Rmeoved systemMemoryContext because the BatchStreamReaders don't have local arrays; 2) Fixed raptor tests by converting all spi types to storage types; 3) Other Nits changes Co-authored-by: Dain Sundstrom <dain@iq80.com> Convert column type to storage type for Raptor Raptor stores TIME and TIMESTAMP data as longs. When creating the batch RecordReader, these types need to be converted to the storage types.
kaikalur
pushed a commit
to kaikalur/presto
that referenced
this pull request
Jan 22, 2020
Cherry-pick of trinodb/trino#555 Co-authored-by: Martin Traverso <mtraverso@gmail.com>
kaikalur
pushed a commit
to kaikalur/presto
that referenced
this pull request
Jan 22, 2020
Cherry-pick of trinodb/trino#555 Co-authored-by: Dain Sundstrom <dain@iq80.com>
kaikalur
pushed a commit
to kaikalur/presto
that referenced
this pull request
Jan 22, 2020
Cherry-pick of trinodb/trino#555 Co-authored-by: Dain Sundstrom <dain@iq80.com>
kaikalur
pushed a commit
to kaikalur/presto
that referenced
this pull request
Jan 22, 2020
Cherry-pick of trinodb/trino#555 Co-authored-by: Dain Sundstrom <dain@iq80.com>
kaikalur
pushed a commit
to kaikalur/presto
that referenced
this pull request
Jan 22, 2020
Cherry-pick of trinodb/trino#555 Co-authored-by: Dain Sundstrom <dain@iq80.com>
kaikalur
pushed a commit
to kaikalur/presto
that referenced
this pull request
Jan 22, 2020
Cherry-pick of trinodb/trino#555 Co-authored-by: Dain Sundstrom <dain@iq80.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For TCP-DS, this saves about 9.5% of total CPU when running over gzip-compressed data.
Benchmarks are contained in
BenchmarkStreamReaders
. For this test, I used 3 forks each with30 warm and 20 test iterations. The results are average nanoseconds per value read.