fix(alicloud)!: Add billing_date and instance_id to alicloud_bss_bill_details primary key#9639
Conversation
add alicloud daily bill table.
Co-authored-by: candiduslynx <candiduslynx@users.noreply.github.com>
Co-authored-by: candiduslynx <candiduslynx@users.noreply.github.com>
…tch.go Co-authored-by: candiduslynx <candiduslynx@users.noreply.github.com>
…tch.go copy from bill_fetch.go. u are right Co-authored-by: candiduslynx <candiduslynx@users.noreply.github.com>
alicloud_bss_bill_details
|
@easayliu you would also need to run |
This PR has the following changes to source plugin(s) tables:
|
alicloud_bss_bill_detailsbilling_date and instance_id to alicloud_bss_bill_details primary key
|
@easayliu thanks once again for the PR!
Would you mind taking look at them, too? (asking as you clearly have much more experience with AliCloud than us) |
🤖 I have created a release *beep* *boop* --- ## [2.0.0](plugins-source-alicloud-v1.2.0...plugins-source-alicloud-v2.0.0) (2023-04-04) ### ⚠ BREAKING CHANGES * **alicloud:** Add `billing_date` and `instance_id` to `alicloud_bss_bill_details` primary key ([#9639](#9639)) ### This Release has the Following Changes to Tables - Table `alicloud_bss_bill_details`: primary key constraint added to column `billing_date` (:warning: breaking) - Table `alicloud_bss_bill_details`: primary key constraint added to column `instance_id` (:warning: breaking) - Table `alicloud_ecs_instances`: column added with name `instance_owner_id` and type `Int` ### Bug Fixes * **alicloud:** Add `billing_date` and `instance_id` to `alicloud_bss_bill_details` primary key ([#9639](#9639)) ([c68cf92](c68cf92)) * **deps:** Update golang.org/x/exp digest to 10a5072 ([#9587](#9587)) ([31f913f](31f913f)) * **deps:** Update module github.com/aliyun/alibaba-cloud-sdk-go to v1.62.266 ([#9601](#9601)) ([f7135db](f7135db)) * **deps:** Update module github.com/aliyun/aliyun-oss-go-sdk to v2.2.7 ([#9602](#9602)) ([81f1cb7](81f1cb7)) * **deps:** Update module github.com/cloudquery/plugin-sdk to v1.44.1 ([#9520](#9520)) ([202c31b](202c31b)) * **deps:** Update module github.com/cloudquery/plugin-sdk to v1.44.2 ([#9661](#9661)) ([a27dc84](a27dc84)) * **deps:** Update module github.com/mattn/go-isatty to v0.0.18 ([#9609](#9609)) ([5b2908e](5b2908e)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
i will check this . |
Replay with my accout, i get the same |
|
@easayliu thanks for looking into the possible PK issues! Would you mind creating a PR for For the Would you mind testing with cat output.json | jq -S -c '.Data.Items.Item[] | { SubscriptionType, CommodityCode, ProductCode, ProductType, PipCode, RecordID, OwnerID, SubOrderId }' | wc -l
cat output.json | jq -S -c '.Data.Items.Item[] | { SubscriptionType, CommodityCode, ProductCode, ProductType, PipCode, RecordID, OwnerID, SubOrderId }' | sort | uniq | wc -lIf the numbers are the same, it means that the uniqueness key is enough. |
I`m sorry too late to reply this. |
Summary