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

Standardization ignores timezone metadata for timestamp type in case the source is already timestamp #1836

Closed
benedeki opened this issue Jun 30, 2021 · 1 comment · Fixed by #1841
Assignees
Labels
bug Something isn't working priority: high Critical to the health of the project Standardization Standardization Job affected

Comments

@benedeki
Copy link
Collaborator

Describe the bug

When the input of Standardization is strongly type (e.g. Parquet) the metadata of timezone for timestamp type is ignored in the case the input is already of timestamp type.
This causes extra issues in case when defaultTimestampTimeZone (other as UTC) is defined in application configuration, because that is take into account.

To Reproduce

  1. Configure defaultTimestampTimeZone in application.conf to a non-UTC value
  2. Have a source data in strongly type format (parquet) containing a field of type timestamp
  3. Create a schema and dataset for the source data, add metadata timestamp with value UTC to the timestamp field
  4. Run the standardization of the dataset
  5. Check the data
  6. The timestamp field got shifted by the difference between defaultTimestampTimeZone and UTC

Expected behaviour

timezone metadata are taken into account. The timestamp from the To reproduce paragraph is not shifted.

@benedeki benedeki added bug Something isn't working Standardization Standardization Job affected priority: high Critical to the health of the project labels Jun 30, 2021
@benedeki benedeki self-assigned this Jun 30, 2021
benedeki added a commit that referenced this issue Jul 1, 2021
…n case the source is already timestamp

* Timezone in metadata is taken into account even if the source is already timestamp or date
benedeki added a commit that referenced this issue Jul 1, 2021
…n case the source is already timestamp

* Timezone in metadata is taken into account even if the source is already timestamp or date
benedeki added a commit that referenced this issue Jul 10, 2021
… a warning dialog

* Show dialogs only on submit not in case of validation on the fly
* Show property warning only if all Mandatory has passed validation
@dk1844 dk1844 added PR:tested Only for PR - PR was tested by a tester (person) and removed PR:tested Only for PR - PR was tested by a tester (person) labels Jul 12, 2021
@benedeki
Copy link
Collaborator Author

Release notes:
Time zone in metadata is taken into account even if the source data is already of timestamp type.

benedeki added a commit that referenced this issue Jul 12, 2021
…n case the source is already timestamp (#1841)

#1836: Standardization ignores timezone metadata for timestamp type in case the source is already timestamp
* Timezone in metadata is taken into account even if the source is already timestamp or date
* Added explanatory comment to the test
benedeki added a commit that referenced this issue Jul 12, 2021
…n case the source is already timestamp (2.21) (#1840)

#1836: Standardization ignores timezone metadata for timestamp type in case the source is already timestamp
* Timezone in metadata is taken into account even if the source is already timestamp or date
* Added explanatory comment to the test
dk1844 added a commit that referenced this issue Aug 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority: high Critical to the health of the project Standardization Standardization Job affected
Projects
None yet
2 participants