Giter VIP home page Giter VIP logo

refinery's People

Contributors

eadwright avatar leanton avatar rugg2 avatar sam-vortexa avatar slw546 avatar stefbg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

refinery's Issues

unit test error on Non English Environments

Describe the bug

Unit Test had Error in StringCellParserTest.kt on Non English Environments.

because, Dec(December) is only used in English.

In Spanish: "Dic" (diciembre)
In French: "Déc" (décembre)
In German: "Dez" (Dezember)
In Italian: "Dic" (dicembre)
In Korean: "12"

> Task :test

StringCellParserTest > should try to parse to string or return null if failed to do that() FAILED
    org.opentest4j.AssertionFailedError at StringCellParserTest.kt:30

StringCellParserTest > should parse to string() FAILED
    org.opentest4j.AssertionFailedError at StringCellParserTest.kt:18

67 tests completed, 2 failed

> Task :test FAILED

FAILURE: Build failed with an exception.

assertThat(parser.parse(dateCell())).isEqualTo("12-Dec-2021")

assertThat(parser.tryParse(dateCell())).isEqualTo("12-Dec-2021")

Expected behaviour
Unit Test was Passed.

Actual behaviour
Unit Test was Failure.

Additional context
Add any other context about the problem here.

Ability to ignore the uncaptured columns with the particular pattern

Is your feature request related to a problem? Please describe.

Currently, it is not possible to ignore some columns that are not valuable or should not be extracted.
Aparently, in some files we have garbage columns that are defined, but never fulfilled

Describe the solution you'd like

Add ability to ignore such columns with some pattern

Describe alternatives you've considered

Currently, it is required to describe all the columns, otherwise, the exception will be thrown

Additional context

It should be possible to reuse the current columns matching mechanism (i.e. reuse AbstractHeaderCell and it's subclasses)

Parsing for Complex Type Metadata

Is your feature request related to a problem? Please describe.
Complex metadata structure parser

Describe the solution you'd like
A solution that parses when complex metadata in horizontal and vertical directions coexists

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.
image

Example_Complex_Metadata.xls

Parsing data horizontally direction

Is your feature request related to a problem? Please describe.

Parsing data horizontally direction

Describe the solution you'd like

Parsing data horizontally direction

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.
스크린샷 2023-07-20 153546

Ability to skip the rows

Feature requirements

In some cases we have the situations when the rows are prefilled with some prefilled values like

None
NaN
-

etc

That means that these rows does not contain any useful information
Currently, if we want to skip this row the exception needs to be thrown. That means the exception manager will be polluted with tons of parsing exceptions. However, that is not an exception — it's an expected situation and should be handled appropriately.

Suggested implementation

Add the open function into RowParser that enables to skip the rows under some condition (e.g. column has None value)

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.