Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DATE Columns having NULL values --> NPE #5

Open
manticore-projects opened this issue Apr 7, 2023 · 1 comment
Open

DATE Columns having NULL values --> NPE #5

manticore-projects opened this issue Apr 7, 2023 · 1 comment

Comments

@manticore-projects
Copy link

Exporting works in general, but not when there is a DATE column with NULL values.
VARCHAR null seems to work though.

Sample:

CREATE TABLE ifrsbox.cfe.instrument (
    id_instrument                    CHARACTER VARYING (40)  NOT NULL
    , id_instrument_commitment       CHARACTER VARYING (40)  NULL
    , id_instrument_type             CHARACTER VARYING (12)  NOT NULL
    , start_date                     TIMESTAMP               NOT NULL
    , end_date                       TIMESTAMP               NULL
    , id_currency                    CHARACTER VARYING (3)   NOT NULL
    , id_calendar                    CHARACTER VARYING (12)  NULL
    , id_business_day_convention     CHARACTER VARYING (12)  NULL
    , discount_curve                 CHARACTER VARYING (12)  NULL
    , discount_spread                CHARACTER VARYING (12)  NULL
)
;

INSERT INTO cfe.instrument
VALUES (    'deposit_1', NULL, 'deposit'
            , {d '2015-12-31'}, {d '2017-12-31'}, 'USD'
            , 'DEFAULT', 'P', NULL
            , NULL )
;

INSERT INTO cfe.instrument
VALUES (    'acc_1', NULL, 'curr_acc'
            , {d '2015-12-31'}, NULL, 'USD'
            , 'DEFAULT', NULL, NULL
            , NULL )
;
@manticore-projects
Copy link
Author

Since I could not get it working or any feedback, I wrote my own based on latest Hadoop/Parquet:
https://manticore-projects.com/JDBCParquetWriter/index.html
https://github.com/manticore-projects/JDBCParquetWriter

Its a first working version, but it seems to get the Type/Column translation right.

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

No branches or pull requests

1 participant