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

fix: populate users fields for sentAt, timestamp and originalTimestamp #3753

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

achettyiitr
Copy link
Member

@achettyiitr achettyiitr commented Sep 23, 2024

What are the changes introduced in this PR?

  • Populate users fields sent_at, timestamp and original_timestamp for non-datalake warehouses,

What is the related Linear task?

  • Resolves PIPE-1352
  • Resolves PIPE-1421

Developer checklist

  • My code follows the style guidelines of this project
  • No breaking changes are being introduced.
  • All related docs linked with the PR?
  • All changes manually tested?
  • Any documentation changes needed with this change?
  • Is the PR limited to 10 file changes?
  • Is the PR limited to one linear task?
  • Are relevant unit and component test cases added in new readability format?

Reviewer checklist

  • Do you know if the type of change in the PR title is appropriate according to the changes?
  • Verified that there are no credentials or confidential data exposed with the changes.

@achettyiitr achettyiitr requested review from a team as code owners September 23, 2024 14:24
@achettyiitr achettyiitr changed the base branch from develop to main September 23, 2024 14:24
@devops-github-rudderstack
Copy link
Contributor

Copy link

codecov bot commented Sep 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.70%. Comparing base (d70ac5d) to head (6c60d1c).
Report is 4 commits behind head on hotfix/24092024.

Additional details and impacted files
@@               Coverage Diff                @@
##           hotfix/24092024    #3753   +/-   ##
================================================
  Coverage            88.69%   88.70%           
================================================
  Files                  594      594           
  Lines                32413    32416    +3     
  Branches              7727     7728    +1     
================================================
+ Hits                 28750    28753    +3     
- Misses                3342     3372   +30     
+ Partials               321      291   -30     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

@@ -987,11 +987,23 @@ function processWarehouseMessage(message, options) {

const usersEvent = { ...commonProps };
const usersColumnTypes = {};
let userColumnMappingRules = whUserColumnMappingRules;
if (!isDataLakeProvider(options.provider)) {
Copy link
Member Author

@achettyiitr achettyiitr Sep 23, 2024

Choose a reason for hiding this comment

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

We are populating it for all non Datalake destinations because there are few destinations like CLICKHOUSE, RS, POSTGRES where load files are being used in certain configurations to load the data. Here we can see there are 3 empty fields present which are sentAt, timestamp and originalTimestamp.

  1. UploadJobUsersAppendRecordsUsingUsersLoadFiles
  2. UploadJobUsersRecordsUsingUsersLoadFilesForClickhouse

Once these changes are merged we would need to update these test cases as well in rudder-server.

@achettyiitr achettyiitr changed the base branch from main to hotfix/24092024 September 24, 2024 04:02
@achettyiitr achettyiitr merged commit f50effe into hotfix/24092024 Sep 24, 2024
28 of 31 checks passed
@achettyiitr achettyiitr deleted the fix.populate-users-fields branch September 24, 2024 07:29
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

Successfully merging this pull request may close these issues.

3 participants