Skip to content

ARROW-15576: [Java][Doc] Document VectorSchemaRoots for 2D data - #12634

Closed
davisusanibar wants to merge 6 commits into
apache:masterfrom
davisusanibar:java-tutorial-ARROW-15576
Closed

davisusanibar wants to merge 6 commits into
apache:masterfrom
davisusanibar:java-tutorial-ARROW-15576

Conversation

@davisusanibar

Copy link
Copy Markdown
Contributor

Update current VectorSchemaRoot documentation to be more generic, change title to tabular data. Adding definitions of:

  • Field
  • Schema

@lidavidm
lidavidm self-requested a review March 15, 2022 13:59
@github-actions

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

⚠️ Ticket has no components in JIRA, make sure you assign one.

Comment thread docs/source/java/vector_schema_root.rst Resolved
Comment thread docs/source/java/vector_schema_root.rst Resolved
Comment thread docs/source/java/vector_schema_root.rst Outdated
=======

A `Schema`_ describes the overall structure of a two-dimensional dataset such
as a table. It holds a sequence of fields together with some optional

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tables don't exist in Java. This should talk about VectorSchemaRoot.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

Comment thread docs/source/java/vector_schema_root.rst Outdated
metadata.put("K2", "V2");
Field a = new Field("A", FieldType.nullable(new ArrowType.Int(32, true)), null);
Field b = new Field("B", FieldType.nullable(new ArrowType.Utf8()), null);
Schema schema = new Schema(java.util.Arrays.asList(a, b), metadata);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import java.util.Arrays?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

Comment thread docs/source/java/vector_schema_root.rst Outdated
Comment on lines +73 to +77
Tables
======

There is not a object or implementation of Table on java side. More close definition
like a table could be VectorSchemaRoot (see the next section).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO we don't need a whole section for this. In the next section we can say something like "VectorSchemaRoot is somewhat analogous to tables and record batches in the other Arrow implementations in that they all are 2D datasets, but the usage is different."

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deleted and added as a note on VectorSchemRoot

Comment thread docs/source/java/vector_schema_root.rst Resolved
Comment thread docs/source/java/vector_schema_root.rst Outdated

.. _`Field`: https://arrow.apache.org/docs/java/reference/org/apache/arrow/vector/types/pojo/Field.html
.. _`Schema`: https://arrow.apache.org/docs/java/reference/org/apache/arrow/vector/types/pojo/Schema.html
.. _`Flight`: https://github.com/apache/arrow/tree/master/java/flight/flight-core/src/main/java/org/apache/arrow/flight

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Link to the API docs instead?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

@lidavidm lidavidm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Is this ready for review?

@davisusanibar davisusanibar changed the title ARROW-15576: [Java][Doc] WIP Apache Arrow VectorSchemaRoots for 2D data ARROW-15576: [Java][Doc] Apache Arrow VectorSchemaRoots for 2D data Mar 16, 2022
@davisusanibar

Copy link
Copy Markdown
Contributor Author

Looks good to me. Is this ready for review?

Yes, it is ready, I forgot to change the title of the PR. Thanks in advance.

@lidavidm

Copy link
Copy Markdown
Member

Can you rebase to kick off the pipelines?

@davisusanibar

Copy link
Copy Markdown
Contributor Author

Can you rebase to kick off the pipelines?

Added

Comment thread docs/source/java/vector_schema_root.rst Outdated
Fields
======

Fields are used to denote the particular columns of a table.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait, sorry I missed this. We should not talk about tables in Java. Since we haven't introduced VectorSchemaRoot yet, we can talk about "tabular data" abstractly.

VectorSchemaRoot is somewhat analogous to tables and record batches in the other Arrow implementations
in that they all are 2D datasets, but the usage is different.

A :class:`VectorSchemaRoot` is a container that can hold batches, batches flow through :class:`VectorSchemaRoot`

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not so sure about this since we haven't introduced batches yet at this point…but we can revisit this later.

Comment thread docs/source/java/vector_schema_root.rst Resolved
@lidavidm lidavidm changed the title ARROW-15576: [Java][Doc] Apache Arrow VectorSchemaRoots for 2D data ARROW-15576: [Java][Doc] Document VectorSchemaRoots for 2D data Mar 28, 2022
@lidavidm lidavidm closed this in 68164c8 Mar 28, 2022
@ursabot

ursabot commented Mar 28, 2022 •

Copy link
Copy Markdown

Benchmark runs are scheduled for baseline = 495eb16 and contender = 68164c8. 68164c8 is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
Conbench compare runs links:
[Finished ⬇️0.0% ⬆️0.0%] ec2-t3-xlarge-us-east-2
[Finished ⬇️0.04% ⬆️0.0%] test-mac-arm
[Failed ⬇️0.0% ⬆️0.0%] ursa-i9-9960x
[Finished ⬇️5.49% ⬆️16.76% ⚠️ Contender and baseline run contexts do not match] ursa-thinkcentre-m75q
Supported benchmarks:
ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python, R. Runs only benchmarks with cloud = True
test-mac-arm: Supported benchmark langs: C++, Python, R
ursa-i9-9960x: Supported benchmark langs: Python, R, JavaScript
ursa-thinkcentre-m75q: Supported benchmark langs: C++, Java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants