Merged
Conversation
…mental_key Co-authored-by: Sabri Karagönen <[email protected]>
…tforms Co-authored-by: Sabri Karagönen <[email protected]>
Co-authored-by: Sabri Karagönen <[email protected]>
|
Cursor Agent can help with this pull request. Just |
Co-authored-by: Sabri Karagönen <[email protected]>
…uckDB Co-authored-by: Sabri Karagönen <[email protected]>
Co-authored-by: Sabri Karagönen <[email protected]>
Co-authored-by: Sabri Karagönen <[email protected]>
Co-authored-by: Sabri Karagönen <[email protected]>
…l-key connection Co-authored-by: Sabri Karagönen <[email protected]>
karakanb
approved these changes
Feb 22, 2026
|
|
||
| validFromExpr := "CURRENT_TIMESTAMP" | ||
| if asset.Materialization.IncrementalKey != "" { | ||
| validFromExpr = QuoteIdentifier(asset.Materialization.IncrementalKey) |
Contributor
There was a problem hiding this comment.
The quoted column name should be prefixed with the table alias for clarity
Suggested change
| validFromExpr = QuoteIdentifier(asset.Materialization.IncrementalKey) | |
| validFromExpr = "src." + QuoteIdentifier(asset.Materialization.IncrementalKey) |
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Prompt To Fix With AI
This is a comment left during a code review.
Path: pkg/postgres/materialization.go
Line: 332
Comment:
The quoted column name should be prefixed with the table alias for clarity
```suggestion
validFromExpr = "src." + QuoteIdentifier(asset.Materialization.IncrementalKey)
```
<sub>Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!</sub>
How can I resolve this? If you propose a fix, please make it concise.|
|
||
| validFromExpr := "CURRENT_TIMESTAMP()" | ||
| if asset.Materialization.IncrementalKey != "" { | ||
| validFromExpr = asset.Materialization.IncrementalKey |
Contributor
There was a problem hiding this comment.
Missing table alias prefix and type casting
Suggested change
| validFromExpr = asset.Materialization.IncrementalKey | |
| validFromExpr = fmt.Sprintf("CAST(src.%s AS TIMESTAMP)", asset.Materialization.IncrementalKey) |
Prompt To Fix With AI
This is a comment left during a code review.
Path: pkg/databricks/materialization.go
Line: 238
Comment:
Missing table alias prefix and type casting
```suggestion
validFromExpr = fmt.Sprintf("CAST(src.%s AS TIMESTAMP)", asset.Materialization.IncrementalKey)
```
How can I resolve this? If you propose a fix, please make it concise.|
|
||
| validFromExpr := "CURRENT_TIMESTAMP()" | ||
| if asset.Materialization.IncrementalKey != "" { | ||
| validFromExpr = fmt.Sprintf("CAST (%s AS TIMESTAMP)", asset.Materialization.IncrementalKey) |
Contributor
There was a problem hiding this comment.
Missing src. table alias prefix - column reference will fail
Suggested change
| validFromExpr = fmt.Sprintf("CAST (%s AS TIMESTAMP)", asset.Materialization.IncrementalKey) | |
| validFromExpr = fmt.Sprintf("CAST (src.%s AS TIMESTAMP)", asset.Materialization.IncrementalKey) |
Prompt To Fix With AI
This is a comment left during a code review.
Path: pkg/bigquery/materialization.go
Line: 523
Comment:
Missing `src.` table alias prefix - column reference will fail
```suggestion
validFromExpr = fmt.Sprintf("CAST (src.%s AS TIMESTAMP)", asset.Materialization.IncrementalKey)
```
How can I resolve this? If you propose a fix, please make it concise.|
|
||
| validFromExpr := "CURRENT_TIMESTAMP()" | ||
| if asset.Materialization.IncrementalKey != "" { | ||
| validFromExpr = fmt.Sprintf("CAST(%s AS TIMESTAMP)", asset.Materialization.IncrementalKey) |
Contributor
There was a problem hiding this comment.
Missing src. table alias prefix - column reference will fail
Suggested change
| validFromExpr = fmt.Sprintf("CAST(%s AS TIMESTAMP)", asset.Materialization.IncrementalKey) | |
| validFromExpr = fmt.Sprintf("CAST(src.%s AS TIMESTAMP)", asset.Materialization.IncrementalKey) |
Prompt To Fix With AI
This is a comment left during a code review.
Path: pkg/snowflake/materialization.go
Line: 395
Comment:
Missing `src.` table alias prefix - column reference will fail
```suggestion
validFromExpr = fmt.Sprintf("CAST(src.%s AS TIMESTAMP)", asset.Materialization.IncrementalKey)
```
How can I resolve this? If you propose a fix, please make it concise.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enable using a specified column via
incremental_keyfor_valid_fromand_valid_untilfields inscd2_by_columnmaterialization.Slack Thread