Git Product home page Git Product logo

Comments (7)

PengleiShi avatar PengleiShi commented on July 25, 2024 1

Thank you for reporting, @PengleiShi .

  1. Could you provide some sample ORC files?

Most of files wrote by trino have proper statistics. I will try to re-generate some problem orc files which can be public.
The meta of problem files is below:
image

from orc.

PengleiShi avatar PengleiShi commented on July 25, 2024 1

@dongjoon-hyun. Trino won't write string column statistics if string value is bigger than 64 bytes
wecom-temp-6a63fc2f2a72e176c2d1fc77699f880b
Here is a orc file wrote by trino and contains only one row
image
Test with spark3.2

select * from xxx; 
select * from xxx where name is not null;

20220310_100444_03858_nbvwj_53625cc9-7183-4beb-be48-9d059d8fa560.zip

from orc.

dongjoon-hyun avatar dongjoon-hyun commented on July 25, 2024

Thank you for reporting, @PengleiShi .

  1. Ya, I've heard that there exists ORC writers that doesn't generate statistics properly.
  2. Could you provide some sample ORC files?

from orc.

dongjoon-hyun avatar dongjoon-hyun commented on July 25, 2024

AFAIK, this doesn't happen between Apache ORC writer and reader, right? @PengleiShi

from orc.

PengleiShi avatar PengleiShi commented on July 25, 2024

AFAIK, this doesn't happen between Apache ORC writer and reader, right? @PengleiShi

Yes, it doesn't. In the case i mentioned, the files were wrote by trino(which has own orc writer) and read by spark(which depends on Apache ORC reader).

from orc.

pgaref avatar pgaref commented on July 25, 2024

@PengleiShi do you mind sharing the stats of the problematic case above?
We currently trim StringStatistics to 1024 chars in the default writer https://issues.apache.org/jira/browse/ORC-203
I believe Presto should follow a similar logic.
In addition, on the Reader path we probably want to avoid skipping RowGroups when facing problematic/null ValueRange stats.

from orc.

PengleiShi avatar PengleiShi commented on July 25, 2024

@dongjoon-hyun. Trino won't write string column statistics if string value is bigger than 64 bytes wecom-temp-6a63fc2f2a72e176c2d1fc77699f880b Here is a orc file wrote by trino and contains only one row image Test with spark3.2

select * from xxx; 
select * from xxx where name is not null;

20220310_100444_03858_nbvwj_53625cc9-7183-4beb-be48-9d059d8fa560.zip

@pgaref here i have uploaded a problematic file for test. Its meta shows below
image

from orc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.