GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ORC-667: Positional mapping for nested struct types should not applied by default by dongjoon-hyun · Pull Request #545 · apache/orc

Conversation

@dongjoon-hyun

@dongjoon-hyun dongjoon-hyun commented Sep 20, 2020 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

ORC-644 (Support positional mapping for nested types) introduced a correctness regression on nested struct types. By default, orc.force.positional.evolution is false. However, currently it's applied for nested struct fields.

Why are the changes needed?

ORC-644 changes like the following. However, buildConversion is a recursive function and positionalLevels becomes negative in the nested case.

buildConversion(fileChildren.get(i),
-  readerChildren.get(i), 0);
+  readerChildren.get(i), positionalLevels - 1);

How was this patch tested?

Pass the newly added test case.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

ArvinZheng reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@dongjoon-hyun
ORC-667: Positional mapping for nested struct types should not applie…
9a38bfd
…d by default
@dongjoon-hyun
dongjoon-hyun requested a review from omalley September 20, 2020 04:24
@dongjoon-hyun

dongjoon-hyun commented Sep 20, 2020

Copy link
Copy Markdown
Member Author

cc @ArvinZheng

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dongjoon-hyun
dongjoon-hyun commented Sep 20, 2020
View reviewed changes
Comment thread java/core/src/java/org/apache/orc/impl/SchemaEvolution.java
}

if (positionalLevels == 0) {
if (positionalLevels <= 0) {

@dongjoon-hyun dongjoon-hyun Sep 20, 2020 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

This can be negative because of ORC-667, ORC-644.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@ArvinZheng ArvinZheng Sep 20, 2020

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

because of ORC-644

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@dongjoon-hyun dongjoon-hyun Sep 20, 2020

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Oh. Thanks! It's fixed.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ArvinZheng

ArvinZheng commented Sep 20, 2020

Copy link
Copy Markdown
Contributor

LGTM

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

ArvinZheng
ArvinZheng approved these changes Sep 20, 2020
View reviewed changes
@dongjoon-hyun

dongjoon-hyun commented Sep 20, 2020

Copy link
Copy Markdown
Member Author

Thank you for review, @ArvinZheng .

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

omalley
omalley approved these changes Sep 22, 2020
View reviewed changes

@omalley omalley left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

+1

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@omalley omalley closed this in 8c63a0d Sep 22, 2020
omalley pushed a commit that referenced this pull request Sep 22, 2020
@dongjoon-hyun @omalley
ORC-667: Positional mapping for nested struct types should not applie…
8fd2c3a
…d by default

Fixes #545

Signed-off-by: Owen O'Malley <[email protected]>
omalley pushed a commit that referenced this pull request Sep 22, 2020
@dongjoon-hyun @omalley
ORC-667: Positional mapping for nested struct types should not applie…
fc1682f
…d by default

Fixes #545

Signed-off-by: Owen O'Malley <[email protected]>
@dongjoon-hyun

dongjoon-hyun commented Sep 23, 2020

Copy link
Copy Markdown
Member Author

Thank you, @omalley !

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dongjoon-hyun
dongjoon-hyun deleted the ORC-667 branch September 23, 2020 06:28
dongjoon-hyun pushed a commit that referenced this pull request Aug 29, 2025
@dependabot @dongjoon-hyun
ORC-1979: Upgrade commons-csv to 1.14.1
841cc05
Bumps [org.apache.commons:commons-csv](https://github.com/apache/commons-csv) from 1.14.0 to 1.14.1.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/apache/commons-csv/blob/master/RELEASE-NOTES.txt">org.apache.commons:commons-csv's changelog</a>.</em></p>
<blockquote>
<h2>Apache Commons CSV 1.14.1 Release Notes</h2>
<p>The Apache Commons CSV team is pleased to announce the release of Apache Commons CSV 1.14.1.</p>
<p>This document contains the release notes for the 1.14.1 version of Apache Commons CSV.
Commons CSV reads and writes files in Comma Separated Value (CSV) format variations.</p>
<p>Commons CSV requires at least Java 8.</p>
<p>The Apache Commons CSV library provides a simple interface for reading and writing CSV files of various types.</p>
<p>This is a feature and maintenance release. Java 8 or later is required.</p>
<p>Changes in this version include:</p>
<h2>Fixed Bugs</h2>
<ul>
<li>CSV-318:  CSVPrinter.printRecord(Stream) hangs if given a parallel stream. Thanks to Joseph Shraibman, Gary Gregory.</li>
<li>CSV-318:  CSVPrinter now uses an internal lock instead of synchronized methods. Thanks to Joseph Shraibman, Gary Gregory.</li>
<li>
<pre><code>      org.apache.commons.csv.CSVPrinter.printRecords(ResultSet) now writes one record at a time using a lock. Thanks to Gary Gregory.
</code></pre>
</li>
</ul>
<h2>Changes</h2>
<ul>
<li>
<pre><code>      Bump org.apache.commons:commons-parent from 81 to 85 [#542](apache/commons-csv#542). Thanks to Gary Gregory, Dependabot.
</code></pre>
</li>
<li>
<pre><code>      Bump commons-io:commons-io from 2.18.0 to 2.20.0. Thanks to Gary Gregory.
</code></pre>
</li>
<li>
<pre><code>      Bump com.opencsv:opencsv from 5.10 to 5.11.2 [#545](apache/commons-csv#545), [#551](apache/commons-csv#551), [#553](apache/commons-csv#553). Thanks to Gary Gregory, Dependabot.
</code></pre>
</li>
<li>
<pre><code>      Bump org.apache.commons:commons-lang3 from 3.17.0 to 3.18.0 [#556](apache/commons-csv#556). Thanks to Gary Gregory, Dependabot.
</code></pre>
</li>
<li>
<pre><code>      Bump commons-codec:commons-codec from 1.18.0 to 1.19.0. Thanks to Gary Gregory.
</code></pre>
</li>
</ul>
<p>Historical list of changes: <a href="https://commons.apache.org/proper/commons-csv/changes.html">https://commons.apache.org/proper/commons-csv/changes.html</a></p>
<p>For complete information on Apache Commons CSV, including instructions on how to submit bug reports,
patches, or suggestions for improvement, see the Apache Commons CSV website:</p>
<p><a href="https://commons.apache.org/proper/commons-csv/">https://commons.apache.org/proper/commons-csv/</a></p>
<p>Download page: <a href="https://commons.apache.org/proper/commons-csv/download_csv.cgi">https://commons.apache.org/proper/commons-csv/download_csv.cgi</a></p>
<p>Have fun!
-Apache Commons CSV team</p>
<hr />
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/apache/commons-csv/commit/e14ef86d34211f9d1b9b6040c5f6dbafc93ba907"><code>e14ef86</code></a> Ignore macOS file</li>
<li><a href="https://github.com/apache/commons-csv/commit/d8724bf76a7d6abbb93aad65e316f050f86a256d"><code>d8724bf</code></a> Prepare for the release candidate 1.14.1 RC1</li>
<li><a href="https://github.com/apache/commons-csv/commit/b76971c25af176f901c003b25d6a5f4f6edc87ad"><code>b76971c</code></a> Prepare for the next release candidate</li>
<li><a href="https://github.com/apache/commons-csv/commit/b66814ef248186b7a8316b85e1208c705dba06e3"><code>b66814e</code></a> Merge pull request <a href="https://redirect.github.com/apache/commons-csv/issues/557">#557</a> from apache/dependabot/github_actions/github/codeql-a...</li>
<li><a href="https://github.com/apache/commons-csv/commit/9c95e92d6aaa4d052a139158a900395646c6652e"><code>9c95e92</code></a> Bump github/codeql-action from 3.29.2 to 3.29.4</li>
<li><a href="https://github.com/apache/commons-csv/commit/1fb37163f9fe59aa13c63efd53e71d7a0392be4c"><code>1fb3716</code></a> Bump commons-codec:commons-codec from 1.18.0 to 1.19.0</li>
<li><a href="https://github.com/apache/commons-csv/commit/7b72c509f73e05ca2bf2f0945a6a1cb03f87bd39"><code>7b72c50</code></a> Merge some string literals</li>
<li><a href="https://github.com/apache/commons-csv/commit/96583732b6be55d459a5b430c4a3a3bb2126db10"><code>9658373</code></a> Update the GitHub pull request template for AI</li>
<li><a href="https://github.com/apache/commons-csv/commit/67192a9e0af58bdf49edf4e0d29f50343da82c70"><code>67192a9</code></a> Bump commons-io:commons-io from 2.19.0 to 2.20.0</li>
<li><a href="https://github.com/apache/commons-csv/commit/59164c8b795ebd4cc0362c4c74d7c893c4a50303"><code>59164c8</code></a> Bump com.opencsv:opencsv from 5.11.1 to 5.11.2 <a href="https://redirect.github.com/apache/commons-csv/issues/553">#553</a></li>
<li>Additional commits viewable in <a href="https://github.com/apache/commons-csv/compare/rel/commons-csv-1.14.0...rel/commons-csv-1.14.1">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=org.apache.commons:commons-csv&package-manager=maven&previous-version=1.14.0&new-version=1.14.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

Closes #2347 from dependabot[bot]/dependabot/maven/java/org.apache.commons-commons-csv-1.14.1.

Authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Dongjoon Hyun <[email protected]>
dongjoon-hyun pushed a commit that referenced this pull request Aug 29, 2025
@dependabot @dongjoon-hyun
ORC-1979: Upgrade commons-csv to 1.14.1
fd5c003
Bumps [org.apache.commons:commons-csv](https://github.com/apache/commons-csv) from 1.14.0 to 1.14.1.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/apache/commons-csv/blob/master/RELEASE-NOTES.txt">org.apache.commons:commons-csv's changelog</a>.</em></p>
<blockquote>
<h2>Apache Commons CSV 1.14.1 Release Notes</h2>
<p>The Apache Commons CSV team is pleased to announce the release of Apache Commons CSV 1.14.1.</p>
<p>This document contains the release notes for the 1.14.1 version of Apache Commons CSV.
Commons CSV reads and writes files in Comma Separated Value (CSV) format variations.</p>
<p>Commons CSV requires at least Java 8.</p>
<p>The Apache Commons CSV library provides a simple interface for reading and writing CSV files of various types.</p>
<p>This is a feature and maintenance release. Java 8 or later is required.</p>
<p>Changes in this version include:</p>
<h2>Fixed Bugs</h2>
<ul>
<li>CSV-318:  CSVPrinter.printRecord(Stream) hangs if given a parallel stream. Thanks to Joseph Shraibman, Gary Gregory.</li>
<li>CSV-318:  CSVPrinter now uses an internal lock instead of synchronized methods. Thanks to Joseph Shraibman, Gary Gregory.</li>
<li>
<pre><code>      org.apache.commons.csv.CSVPrinter.printRecords(ResultSet) now writes one record at a time using a lock. Thanks to Gary Gregory.
</code></pre>
</li>
</ul>
<h2>Changes</h2>
<ul>
<li>
<pre><code>      Bump org.apache.commons:commons-parent from 81 to 85 [#542](apache/commons-csv#542). Thanks to Gary Gregory, Dependabot.
</code></pre>
</li>
<li>
<pre><code>      Bump commons-io:commons-io from 2.18.0 to 2.20.0. Thanks to Gary Gregory.
</code></pre>
</li>
<li>
<pre><code>      Bump com.opencsv:opencsv from 5.10 to 5.11.2 [#545](apache/commons-csv#545), [#551](apache/commons-csv#551), [#553](apache/commons-csv#553). Thanks to Gary Gregory, Dependabot.
</code></pre>
</li>
<li>
<pre><code>      Bump org.apache.commons:commons-lang3 from 3.17.0 to 3.18.0 [#556](apache/commons-csv#556). Thanks to Gary Gregory, Dependabot.
</code></pre>
</li>
<li>
<pre><code>      Bump commons-codec:commons-codec from 1.18.0 to 1.19.0. Thanks to Gary Gregory.
</code></pre>
</li>
</ul>
<p>Historical list of changes: <a href="https://commons.apache.org/proper/commons-csv/changes.html">https://commons.apache.org/proper/commons-csv/changes.html</a></p>
<p>For complete information on Apache Commons CSV, including instructions on how to submit bug reports,
patches, or suggestions for improvement, see the Apache Commons CSV website:</p>
<p><a href="https://commons.apache.org/proper/commons-csv/">https://commons.apache.org/proper/commons-csv/</a></p>
<p>Download page: <a href="https://commons.apache.org/proper/commons-csv/download_csv.cgi">https://commons.apache.org/proper/commons-csv/download_csv.cgi</a></p>
<p>Have fun!
-Apache Commons CSV team</p>
<hr />
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/apache/commons-csv/commit/e14ef86d34211f9d1b9b6040c5f6dbafc93ba907"><code>e14ef86</code></a> Ignore macOS file</li>
<li><a href="https://github.com/apache/commons-csv/commit/d8724bf76a7d6abbb93aad65e316f050f86a256d"><code>d8724bf</code></a> Prepare for the release candidate 1.14.1 RC1</li>
<li><a href="https://github.com/apache/commons-csv/commit/b76971c25af176f901c003b25d6a5f4f6edc87ad"><code>b76971c</code></a> Prepare for the next release candidate</li>
<li><a href="https://github.com/apache/commons-csv/commit/b66814ef248186b7a8316b85e1208c705dba06e3"><code>b66814e</code></a> Merge pull request <a href="https://redirect.github.com/apache/commons-csv/issues/557">#557</a> from apache/dependabot/github_actions/github/codeql-a...</li>
<li><a href="https://github.com/apache/commons-csv/commit/9c95e92d6aaa4d052a139158a900395646c6652e"><code>9c95e92</code></a> Bump github/codeql-action from 3.29.2 to 3.29.4</li>
<li><a href="https://github.com/apache/commons-csv/commit/1fb37163f9fe59aa13c63efd53e71d7a0392be4c"><code>1fb3716</code></a> Bump commons-codec:commons-codec from 1.18.0 to 1.19.0</li>
<li><a href="https://github.com/apache/commons-csv/commit/7b72c509f73e05ca2bf2f0945a6a1cb03f87bd39"><code>7b72c50</code></a> Merge some string literals</li>
<li><a href="https://github.com/apache/commons-csv/commit/96583732b6be55d459a5b430c4a3a3bb2126db10"><code>9658373</code></a> Update the GitHub pull request template for AI</li>
<li><a href="https://github.com/apache/commons-csv/commit/67192a9e0af58bdf49edf4e0d29f50343da82c70"><code>67192a9</code></a> Bump commons-io:commons-io from 2.19.0 to 2.20.0</li>
<li><a href="https://github.com/apache/commons-csv/commit/59164c8b795ebd4cc0362c4c74d7c893c4a50303"><code>59164c8</code></a> Bump com.opencsv:opencsv from 5.11.1 to 5.11.2 <a href="https://redirect.github.com/apache/commons-csv/issues/553">#553</a></li>
<li>Additional commits viewable in <a href="https://github.com/apache/commons-csv/compare/rel/commons-csv-1.14.0...rel/commons-csv-1.14.1">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=org.apache.commons:commons-csv&package-manager=maven&previous-version=1.14.0&new-version=1.14.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

Closes #2347 from dependabot[bot]/dependabot/maven/java/org.apache.commons-commons-csv-1.14.1.

Authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit 841cc05)
Signed-off-by: Dongjoon Hyun <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@omalley omalley omalley approved these changes
+1 more reviewer
@ArvinZheng ArvinZheng ArvinZheng approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@dongjoon-hyun @ArvinZheng @omalley
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.