Skip to content

Conversation

@Amit-CloudSufi
Copy link
Contributor

@Amit-CloudSufi Amit-CloudSufi commented Sep 30, 2025

PLUGIN-1932 Add hidden treatTimestampLTZAsTimestamp flag to map Oracle TIMESTAMP WITH LOCAL TIME ZONE to TIMESTAMP.

This issue requests the addition of a new, hidden configuration flag to the Oracle Database Source plugin. This flag will allow users to override the default type mapping for Oracle's TIMESTAMP WITH LOCAL TIME ZONE (TIMESTAMP_LTZ) data type.

By default, the Oracle Source plugin currently maps the Oracle data type TIMESTAMP WITH LOCAL TIME ZONE (TIMESTAMP_LTZ) to a DATETIME/STRING type.

For certain users, the intended target type in BigQuery for a local-time-aware timestamp is the BQ TIMESTAMP type, which includes time zone information

image

String role, Boolean useSSL, @Nullable Boolean treatAsOldTimestamp,
@Nullable Boolean treatPrecisionlessNumAsDeci) {
@Nullable Boolean treatPrecisionlessNumAsDeci,
@Nullable Boolean treatAsTimestampForLocalTimeZone) {

Choose a reason for hiding this comment

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

I think we can rename it to treatTimestampWithTzAsTimestamp as we want timestamp type for both Timestamp_LTZ and Timestamp_TZ

Choose a reason for hiding this comment

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

  1. Please add details in the description: Jira ticket, testing etc.
  2. Do not use any internal naming like UCS.
  3. Please check the e2e tests

Copy link
Contributor

Choose a reason for hiding this comment

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

Added JIra and testing Snapshot, removed UCS and for e2e we are checking, not related to our change.

@vikasrathee-cs vikasrathee-cs changed the title Update schema mapping for Oracle Timestamp_LTZ data type to TIMESTAMP_MICROS for UCS use-case Update schema mapping for Oracle Timestamp_LTZ data type to TIMESTAMP_MICROS Oct 1, 2025
@vikasrathee-cs vikasrathee-cs changed the title Update schema mapping for Oracle Timestamp_LTZ data type to TIMESTAMP_MICROS [PLUGIN-1932] Add hidden treatTimestampLTZAsTimestamp flag to map Oracle TIMESTAMP WITH LOCAL TIME ZONE to TIMESTAMP Oct 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants