Skip to content

Commit

Permalink
GH-338: [Java][CI] Upgrade Arrow Java version for Java Cookbooks (#339)
Browse files Browse the repository at this point in the history
To closes #338
  • Loading branch information
davisusanibar authored Feb 12, 2024
1 parent 36bcdd9 commit 90a3406
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
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

0 comments on commit 90a3406

Please sign in to comment.