Skip to content
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

GH-338: [Java][CI] Upgrade Arrow Java version for Java Cookbooks #339

Merged
merged 7 commits into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions java/source/avro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@

.. _arrow-avro:

======
Avro
======
====
Avro
====

Avro encoded data can be converted into Arrow format.

Expand All @@ -32,10 +32,10 @@ The example assumes that the Avro schema is stored separately from the Avro data

.. testcode::

import org.apache.arrow.AvroToArrow;
import org.apache.arrow.AvroToArrowConfig;
import org.apache.arrow.AvroToArrowConfigBuilder;
import org.apache.arrow.AvroToArrowVectorIterator;
import org.apache.arrow.adapter.avro.AvroToArrow;
import org.apache.arrow.adapter.avro.AvroToArrowConfig;
import org.apache.arrow.adapter.avro.AvroToArrowConfigBuilder;
import org.apache.arrow.adapter.avro.AvroToArrowVectorIterator;
import org.apache.arrow.memory.BufferAllocator;
import org.apache.arrow.memory.RootAllocator;
import org.apache.arrow.vector.VectorSchemaRoot;
Expand Down Expand Up @@ -63,7 +63,7 @@ The example assumes that the Avro schema is stored separately from the Avro data
}
} catch (Exception e) {
e.printStackTrace();
}
}

.. testoutput::

Expand Down
4 changes: 2 additions & 2 deletions java/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
author = 'The Apache Software Foundation'
arrow_nightly=os.getenv("ARROW_NIGHTLY")
if arrow_nightly and arrow_nightly != '0':
version = "15.0.0-SNAPSHOT"
version = "16.0.0-SNAPSHOT"
else:
version = "14.0.0"
version = "15.0.0"
print(f"Running with Arrow version: {version}")

# -- General configuration ---------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions java/source/create.rst
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ In this example, we copy a portion of the input IntVector to a new IntVector.
try (IntVector sliced = (IntVector) tp.getTo()) {
System.out.println(sliced);
}

tp = vector.getTransferPair(allocator);
// copy 6 elements from index 2
tp.splitAndTransfer(2, 6);
Expand All @@ -228,7 +228,7 @@ In this example, we copy a portion of the input IntVector to a new IntVector.

[0, 1, 2, 3, 4]
[2, 3, 4, 5, 6, 7]

.. _`FieldVector`: https://arrow.apache.org/docs/java/reference/org/apache/arrow/vector/FieldVector.html
.. _`ValueVector`: https://arrow.apache.org/docs/java/vector.html
.. _`dictionary-encoding`: https://arrow.apache.org/docs/format/Columnar.html#dictionary-encoded-layout
2 changes: 1 addition & 1 deletion java/source/demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<arrow.version>14.0.0</arrow.version>
<arrow.version>15.0.0</arrow.version>
</properties>
<dependencies>
<dependency>
Expand Down
Loading