[SQL Processing] Error inserting records in BQ with DATETIME columns

Description

DAEN - Bug default text according to the team DoR (Definition of Ready)

01 - PERSON OF CONTACT (PERSON THAT CAN ANSWER QUESTIONS ABOUT THE PROBLEM):

@Breno Zipoli Monteiro Papa

02 - PROBLEM (GIVE MORE DETAILS HERE ABOUT SCENARIO OR PAIN TO BE RESOLVED?):

After deploy

, users are having problems loading data in datamodels.

In short, task ends with success, generates valid data but dataflow reports warns and errors while inserting data:

https://cloudlogging.app.goo.gl/Rke9FGXDLRqhyD7Y8

https://cloudlogging.app.goo.gl/ZqovTwENfyAY4DdVA

Red phone reason:

  • Data isn’t available on unified tenant.

More details:

https://totvscarol.slack.com/archives/C0199CU1BFD/p1700742267945429
03 - ORGANIZATION / TENANT ACCESS URL (REQUIRED ONLY FOR CAROL):
04 - VERSION (2C OR CAROL):
05 - PRODUCT (WHAT IS THE PRODUCT?):
06 - DATABASE (REQUIRED ONLY FOR 2C - WHAT IS THE CUSTOMER DATABASE?):
07 - FORWARDED INVITATIONS (ENVIRONMENT ADMINS):
08 - APP VERSION:
09 - OBSERVATIONS:
10 - WHAT ADDITIONAL INFORMATION COULD YOU PROVIDE?
11 - STEPS TO REPRODUCE (STEPS 1 TO N INCLUDING SCREENSHOTS, LOGS FOLDER, HEARTBEAT, ETC):
12 - EXPECTED BEHAVIOR (WHAT SHOULD BE THE DEFAULT BEHAVIOR LINKED WITH THE STEPS ABOVE):

Activity

Automation for Jira 30 November 2023, 22:02 Jira Internal Users

This issue was automatically transitioned to DONE after being deployed to production on Github.

Automation for Jira 30 November 2023, 22:02 Jira Internal Users

No associated issue on JIRA TOTVS BRAZIL.

Automation for Jira 30 November 2023, 22:02 Jira Internal Users

This issue was automatically transitioned to DONE after being deployed to production on Github.

https://github.com/totvslabs/mdm/releases/tag/v4.89.2

Automation for Jira 30 November 2023, 22:02 Jira Internal Users

No associated issue on JIRA TOTVS BRAZIL.

Automation for Jira 30 November 2023, 19:10 Jira Internal Users

This issue was automatically transitioned to WAITING DEPLOY, as its PR was just merged into master branch in Github.

Automation for Jira 30 November 2023, 18:57 Jira Internal Users

Github user douglascoimbra has just approved a PR (added as Shard Assignee in this Jira issue).

fix: Fix in SQL Processing to ignore case of field names

Douglas Coimbra Lopes 30 November 2023, 18:56 Jira Internal Users

Regression & OK + Manual tests Are OK for the branch cc @Gabriel DAmore Marciano @Cindy de Araujo Soares Moore

Automation for Jira 30 November 2023, 18:55 Jira Internal Users

This issue was automatically transitioned to QA REVIEW, as its PR was just approved in Github.

Automation for Jira 30 November 2023, 14:29 Jira Internal Users

:rotating_light: Deixei um cenario encontrado em tenants SQL processingOnly:false ao processarmos tasks de SQL processing qdo a task tem `savetoRealtime:true`
Detalhes no card . Para o BQ nao popula qdo o DM field eh Date Only.
:saluting_face: Jah confirmado que na master nao acontece.

Edited on Slack - platform-internal - Douglas Coimbra Lopes

Automation for Jira 30 November 2023, 14:22 Jira Internal Users

:rotating_light: Deixei um cenario encontrado em tenants SQL processingOnly:false ao processarmos tasks de SQL processing qdo a task tem `savetoRealtime:true`
Detalhes no card

Sent by Slack - platform-internal - Douglas Coimbra Lopes

Douglas Coimbra Lopes 30 November 2023, 14:20 Jira Internal Users

Many date formats sent by intake

@Cindy de Araujo Soares Moore When we reprocess the task for SQL processing only false tenants, few fields are being set as NULL on the RT layer

@Cindy de Araujo Soares Moore

  1. When we run a SQL Processing with the Query below, the records for RT are getting NULL on Explore, except by the field from the staging PK.

  2. FOR BQ THE DATE ONLY FIELD IS NOT BEING POPULATED

  • LOOK EDITOR’S EVIDENCE

Automation for Jira 29 November 2023, 00:21 Jira Internal Users

Message thread link on #red-phone channel:

https://totvscarol.slack.com/archives/C03NT4US9J9/p1701213681608609

Automation for Jira 29 November 2023, 00:20 Jira Internal Users

@Robson Thanael Poffo ,

@Geny Isam Hamud Herrera ,
This issue was planned to be delivered until 2023-12-11. You can check that by consulting the issue in the Due Date field.

Dates already planned for this issue: 2023-12-11

If External Issue Link field is filled, customer was also informed on JIRA TOTVS.