Skip to content

Conversation

@nathanmoon
Copy link
Contributor

Be a bit more verbose in naming, to attempt to improve readability

Be a bit more verbose in naming, to attempt to improve readability
@nathanmoon nathanmoon requested a review from pearsonryan March 28, 2023 15:06
Copy link

@pearsonryan pearsonryan left a comment

Choose a reason for hiding this comment

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

Looks good most just one description comment I have.

Comment on lines +65 to +67
"joinOn": [
"joinTargetTable"
]

Choose a reason for hiding this comment

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

I like this name a lot more.

Comment on lines -180 to +240
"targetTable": {
"description": "Target table.",
"destinationTable": {
"description": "Destination table where denormalized data will be stored.",

Choose a reason for hiding this comment

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

I think this makes much more sense to me. We have a table that joins to the targetTable and the denormalized data is put in a destinationTable if I have been reading this correctly.

"$ref": "#/definitions/column"
},
"default": null,
"description": "Columns to select from table.",

Choose a reason for hiding this comment

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

This may be a little confusing of a description here. Maybe something like "Columns to watch for changes. If null then all columns will be watched." just to let people know this field gets used when you only want denorm to pick up changes to specific columns.

Copy link
Member

Choose a reason for hiding this comment

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

You might include the word "source" as well, as in "source table" or "source data."

@nathanmoon nathanmoon requested a review from mjswensen April 18, 2023 20:45
"destinationKeyExpr": {
"default": null,
"description": "SQL expressions for target key values.",
"description": "SQL expressions for this table's columns that make up the destination table's key columns ([this table name].[column name]).",
Copy link
Member

Choose a reason for hiding this comment

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

👏

"description": "Name of table.",
"title": "Name",
"type": "string"
"description": "Columns. Must match columns from destinationQuery select (?)",
Copy link
Member

Choose a reason for hiding this comment

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

Reminder to remove the (?)

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