You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by li...@apache.org on 2024/02/12 13:58:33 UTC

(arrow-cookbook) branch main updated: GH-338: [Java][CI] Upgrade Arrow Java version for Java Cookbooks (#339)

This is an automated email from the ASF dual-hosted git repository.

lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-cookbook.git


The following commit(s) were added to refs/heads/main by this push:
     new 90a3406  GH-338: [Java][CI] Upgrade Arrow Java version for Java Cookbooks (#339)
90a3406 is described below

commit 90a340604eff7e9ef158946d7e7a9d8f142cbe4c
Author: david dali susanibar arce <da...@gmail.com>
AuthorDate: Mon Feb 12 08:58:27 2024 -0500

    GH-338: [Java][CI] Upgrade Arrow Java version for Java Cookbooks (#339)
    
    To closes https://github.com/apache/arrow-cookbook/issues/338
---
 java/source/avro.rst     | 16 ++++++++--------
 java/source/conf.py      |  4 ++--
 java/source/create.rst   |  4 ++--
 java/source/demo/pom.xml |  2 +-
 4 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/java/source/avro.rst b/java/source/avro.rst
index f1b9f2d..146a309 100644
--- a/java/source/avro.rst
+++ b/java/source/avro.rst
@@ -17,9 +17,9 @@
 
 .. _arrow-avro:
 
-======
-Avro 
-======
+====
+Avro
+====
 
 Avro encoded data can be converted into Arrow format.
 
@@ -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;
@@ -63,7 +63,7 @@ The example assumes that the Avro schema is stored separately from the Avro data
        }
    } catch (Exception e) {
        e.printStackTrace();
-   } 
+   }
 
 .. testoutput::
 
diff --git a/java/source/conf.py b/java/source/conf.py
index c2c2098..93db6b3 100644
--- a/java/source/conf.py
+++ b/java/source/conf.py
@@ -38,9 +38,9 @@ copyright = '2022, Apache Software Foundation'
 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 ---------------------------------------------------
diff --git a/java/source/create.rst b/java/source/create.rst
index ae8ab0e..570b0b8 100644
--- a/java/source/create.rst
+++ b/java/source/create.rst
@@ -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);
@@ -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
diff --git a/java/source/demo/pom.xml b/java/source/demo/pom.xml
index 3a4df9c..1370ab1 100644
--- a/java/source/demo/pom.xml
+++ b/java/source/demo/pom.xml
@@ -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>