-
Notifications
You must be signed in to change notification settings - Fork 25.9k
ESQL: add Arrow dataframes output format #109873
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
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
fe71bf9
ESQL: add Arrow dataframes output format
swallez 978a6de
Change status from tech preview to experimental
swallez 3bb04d3
Cleanup exception handling
swallez c7cd12d
Fail hard when there are multi-valued blocks
swallez c77c245
Remove fancy block downcast. Wrong cast will be checked by unit tests
swallez df3cd45
Add test to ensure a null uses one position in the block
swallez 54fa11f
Create transformed byteref blocks using the original block's factory
swallez 1b75af7
Add integration test
swallez bedcdf0
Fix imports
swallez 00aa730
Add integration test for data transformed during output
swallez df7a263
Track memory on conversion
nik9000 100692d
Update docs/changelog/109873.yaml
swallez e0d8663
Merge remote-tracking branch 'upstream/main' into esql-arrow-output
swallez 7808afb
Fix merge
nik9000 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,5 @@ | ||
| pr: 109873 | ||
| summary: "ESQL: add Arrow dataframes output format" | ||
| area: ES|QL | ||
| type: feature | ||
| issues: [] |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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,61 @@ | ||
| /* | ||
| * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
| * or more contributor license agreements. Licensed under the Elastic License | ||
| * 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
| * in compliance with, at your election, the Elastic License 2.0 or the Server | ||
| * Side Public License, v 1. | ||
| */ | ||
|
|
||
| apply plugin: 'elasticsearch.build' | ||
|
|
||
| dependencies { | ||
| compileOnly project(':server') | ||
| compileOnly project(':x-pack:plugin:esql:compute') | ||
| compileOnly project(':x-pack:plugin:esql-core') | ||
| compileOnly project(':x-pack:plugin:mapper-version') | ||
| implementation('org.apache.arrow:arrow-vector:16.1.0') | ||
| implementation('org.apache.arrow:arrow-format:16.1.0') | ||
| implementation('org.apache.arrow:arrow-memory-core:16.1.0') | ||
| implementation('org.checkerframework:checker-qual:3.42.0') | ||
|
swallez marked this conversation as resolved.
|
||
| implementation('com.google.flatbuffers:flatbuffers-java:23.5.26') | ||
| // Needed for the json arrow serialization, and loaded even if we don't use it. | ||
| implementation("com.fasterxml.jackson.core:jackson-annotations:${versions.jackson}") | ||
| implementation("com.fasterxml.jackson.core:jackson-core:${versions.jackson}") | ||
| implementation("com.fasterxml.jackson.core:jackson-databind:${versions.jackson}") | ||
| implementation("org.slf4j:slf4j-api:${versions.slf4j}") | ||
| runtimeOnly "org.slf4j:slf4j-nop:${versions.slf4j}" | ||
|
|
||
| testImplementation project(':test:framework') | ||
| testImplementation('org.apache.arrow:arrow-memory-unsafe:16.1.0') | ||
| } | ||
|
|
||
| tasks.named("dependencyLicenses").configure { | ||
| mapping from: /jackson-.*/, to: 'jackson' | ||
| mapping from: /arrow-.*/, to: 'arrow' | ||
| mapping from: /slf4j-.*/, to: 'slf4j' | ||
| } | ||
|
|
||
| tasks.named("thirdPartyAudit").configure { | ||
| ignoreViolations( | ||
| // uses sun.misc.Unsafe. Only used in tests. | ||
| 'org.apache.arrow.memory.util.hash.SimpleHasher', | ||
| 'org.apache.arrow.memory.util.hash.MurmurHasher', | ||
| 'org.apache.arrow.memory.util.MemoryUtil', | ||
| 'org.apache.arrow.memory.util.MemoryUtil$1', | ||
| 'org.apache.arrow.vector.DecimalVector', | ||
| 'org.apache.arrow.vector.BaseFixedWidthVector', | ||
| 'org.apache.arrow.vector.util.DecimalUtility', | ||
| 'org.apache.arrow.vector.Decimal256Vector', | ||
| 'org.apache.arrow.vector.util.VectorAppender', | ||
| 'org.apache.arrow.memory.ArrowBuf', | ||
| 'org.apache.arrow.vector.BitVectorHelper', | ||
| 'org.apache.arrow.memory.util.ByteFunctionHelpers', | ||
| ) | ||
| ignoreMissingClasses( | ||
| 'org.apache.commons.codec.binary.Hex' | ||
| ) | ||
| } | ||
|
|
||
| test { | ||
| jvmArgs('--add-opens=java.base/java.nio=ALL-UNNAMED') | ||
| } | ||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.