-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: snowpipe streaming users table skipping
- Loading branch information
1 parent
ed9fe55
commit 19988fc
Showing
23 changed files
with
2,123 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,28 @@ | ||
module.exports = require('../snowflake/transform'); | ||
const transform = require('../snowflake/transform'); | ||
const { processWarehouseMessage } = require('../../../warehouse'); | ||
|
||
const provider = 'snowpipe_streaming'; | ||
|
||
function process(event) { | ||
const whSchemaVersion = event.request.query.whSchemaVersion || 'v1'; | ||
const whIDResolve = event.request.query.whIDResolve === 'true' || false; | ||
const whStoreEvent = event.destination.Config.storeFullEvent === true; | ||
const destJsonPaths = event.destination?.Config?.jsonPaths || ''; | ||
return processWarehouseMessage(event.message, { | ||
metadata: event.metadata, | ||
whSchemaVersion, | ||
whStoreEvent, | ||
whIDResolve, | ||
getDataTypeOverride: transform.getDataTypeOverride, | ||
provider, | ||
sourceCategory: event.metadata ? event.metadata.sourceCategory : null, | ||
destJsonPaths, | ||
destConfig: event.destination?.Config, | ||
}); | ||
} | ||
|
||
module.exports = { | ||
provider, | ||
process, | ||
getDataTypeOverride: transform.getDataTypeOverride, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.