Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test fixing with a side of BigQuery features #673

Merged
merged 13 commits into from
Nov 23, 2023
Merged

Conversation

heavycrystal
Copy link
Contributor

@heavycrystal heavycrystal commented Nov 16, 2023

Tests have now been unparallelized, will parallelize later through a different mechanism.
BigQuery supports local staging, using it for all tests now for better cleanup.
Added option to compress via Snappy and Deflate along with some cleanup, doesn't work for BQ yet

@@ -274,7 +274,7 @@ func (s *SnowflakeAvroSyncMethod) writeToAvroFile(
) (int, string, error) {
var numRecords int
if s.config.StagingPath == "" {
ocfWriter := avro.NewPeerDBOCFWriterWithCompression(s.connector.ctx, stream, avroSchema)
ocfWriter := avro.NewPeerDBOCFWriter(s.connector.ctx, stream, avroSchema, avro.CompressZstd, qvalue.QDWHTypeSnowflake)
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 [golangci] reported by reviewdog 🐶
line is 126 characters (lll)

@@ -274,7 +274,7 @@ func (s *SnowflakeAvroSyncMethod) writeToAvroFile(
) (int, string, error) {
var numRecords int
if s.config.StagingPath == "" {
ocfWriter := avro.NewPeerDBOCFWriterWithCompression(s.connector.ctx, stream, avroSchema)
ocfWriter := avro.NewPeerDBOCFWriter(s.connector.ctx, stream, avroSchema, avro.CompressZstd, qvalue.QDWHTypeSnowflake)
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 [golangci] reported by reviewdog 🐶
line is 126 characters (lll)

@@ -21,31 +21,32 @@ type QRecordBatch struct {
// Equals checks if two QRecordBatches are identical.
func (q *QRecordBatch) Equals(other *QRecordBatch) bool {
if other == nil {
fmt.Printf("other is nil")
Copy link
Contributor

Choose a reason for hiding this comment

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

remove some of these logs and revert the rest to log.Infof

Copy link
Contributor Author

Choose a reason for hiding this comment

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

log.Infof doesn't show up in the logs sometimes when it fails

@iskakaushik
Copy link
Contributor

@heavycrystal flow tests ran in 1 minute which seems wrong

@heavycrystal
Copy link
Contributor Author

@heavycrystal flow tests ran in 1 minute which seems wrong

Seems to be cached from when I rebased, previous run took 25+ mins

@iskakaushik iskakaushik merged commit 08e72c1 into main Nov 23, 2023
12 checks passed
@serprex serprex mentioned this pull request Nov 24, 2023
@serprex serprex deleted the unflake-test-pls branch July 19, 2024 15:23
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.

2 participants