-
Notifications
You must be signed in to change notification settings - Fork 501
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(aws)!: Migrate to arrow native SDK (#10797)
BEGIN_COMMIT_OVERRIDE feat: Update to use [Apache Arrow](https://arrow.apache.org/) type system BREAKING-CHANGE: This release introduces an internal change to our type system to use [Apache Arrow](https://arrow.apache.org/). This should not have any visible breaking changes, however due to the size of the change we are introducing it under a major version bump to communicate that it might have some bugs that we weren't able to catch during our internal tests. If you encounter an issue during the upgrade, please submit a [bug report](https://github.com/cloudquery/cloudquery/issues/new/choose). You will also need to update destinations depending on which one you use: Azure Blob Storage >= v3.2.0 BigQuery >= v3.0.0 ClickHouse >= v3.1.1 DuckDB >= v1.1.6 Elasticsearch >= v2.0.0 File >= v3.2.0 Firehose >= v2.0.2 GCS >= v3.2.0 Gremlin >= v2.1.10 Kafka >= v3.0.1 Meilisearch >= v2.0.1 MSSQL >= v4.2.0 MongoDB >= v2.0.1 MySQL >= v2.0.2 Neo4j >= v3.0.0 PostgreSQL >= v4.2.0 S3 >= v4.4.0 Snowflake >= v2.1.1 SQLite >= v2.2.0 END_COMMIT_OVERRIDE --------- Co-authored-by: Herman Schaaf <hermanschaaf@gmail.com> Co-authored-by: bbernays <ben@cloudquery.io>
- Loading branch information
1 parent
8fbcbae
commit e355d14
Showing
1,631 changed files
with
15,659 additions
and
15,580 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,33 @@ | ||
package client | ||
|
||
import ( | ||
"github.com/cloudquery/plugin-sdk/v2/schema" | ||
"github.com/apache/arrow/go/v13/arrow" | ||
"github.com/cloudquery/plugin-sdk/v3/schema" | ||
) | ||
|
||
func DefaultAccountIDColumn(pk bool) schema.Column { | ||
return schema.Column{ | ||
Name: "account_id", | ||
Type: schema.TypeString, | ||
Resolver: ResolveAWSAccount, | ||
CreationOptions: schema.ColumnCreationOptions{ | ||
PrimaryKey: pk, | ||
}, | ||
Name: "account_id", | ||
Type: arrow.BinaryTypes.String, | ||
Resolver: ResolveAWSAccount, | ||
PrimaryKey: pk, | ||
} | ||
} | ||
|
||
func DefaultRegionColumn(pk bool) schema.Column { | ||
return schema.Column{ | ||
Name: "region", | ||
Type: schema.TypeString, | ||
Resolver: ResolveAWSRegion, | ||
CreationOptions: schema.ColumnCreationOptions{ | ||
PrimaryKey: pk, | ||
}, | ||
Name: "region", | ||
Type: arrow.BinaryTypes.String, | ||
Resolver: ResolveAWSRegion, | ||
PrimaryKey: pk, | ||
} | ||
} | ||
|
||
func LanguageCodeColumn(pk bool) schema.Column { | ||
return schema.Column{ | ||
Name: "language_code", | ||
Type: schema.TypeString, | ||
Resolver: ResolveLanguageCode, | ||
CreationOptions: schema.ColumnCreationOptions{ | ||
PrimaryKey: pk, | ||
}, | ||
Name: "language_code", | ||
Type: arrow.BinaryTypes.String, | ||
Resolver: ResolveLanguageCode, | ||
PrimaryKey: pk, | ||
} | ||
} |
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
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
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
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.