Skip to content

feat: use spark bq connector v1 #664

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

Merged
merged 15 commits into from
Apr 18, 2025
Merged

feat: use spark bq connector v1 #664

merged 15 commits into from
Apr 18, 2025

Conversation

tchow-zlai
Copy link
Collaborator

@tchow-zlai tchow-zlai commented Apr 17, 2025

Summary

  • We need to bring back the v1 version of Datasource for spark bigquery connector, since it supports partition pushdown. And alternative project_id's. The catalog version in the spark bigquery connector does not support that.

Checklist

  • Added Unit Tests
  • Covered by existing CI
  • Integration tested
  • Documentation update

Summary by CodeRabbit

Summary by CodeRabbit

  • New Features
    • Enhanced table reading capabilities with support for applying partition filters and combining multiple predicates for more flexible data queries.
  • Refactor
    • Improved internal handling of predicate filters and table loading logic for more consistent and maintainable data access.
    • Refined data filtering by explicitly incorporating partition column information for more precise queries.
  • Chores
    • Updated script to ensure temporary files are cleaned up more reliably during installation processes.

Copy link

coderabbitai bot commented Apr 17, 2025

Walkthrough

This update introduces enhancements to table reading and filtering logic across multiple Scala modules. A new table method is added to both the Format trait and the BigQueryNative object, enabling reading tables with optional partition filters. The TableUtils class updates its loadTable method to accept optional predicates and centralizes predicate combination logic. In a shell script, the trap command for cleanup is moved earlier to ensure proper file deletion on exit. No changes were made to exported entities other than the new and updated method signatures.

Changes

File(s) Change Summary
api/python/ai/chronon/resources/gcp/zipline-cli-install.sh Moved the trap cleanup command immediately after the wheel file is copied, ensuring earlier registration.
cloud_gcp/src/main/scala/ai/chronon/integrations/cloud_gcp/BigQueryNative.scala Added a table method to read tables with optional partition filters, using different formats based on input.
spark/src/main/scala/ai/chronon/spark/TableUtils.scala Updated loadTable to accept optional predicates; added andPredicates helper; changed filtering logic.
spark/src/main/scala/ai/chronon/spark/format/Format.scala Added a table method to the Format trait for reading tables with filter conditions.
spark/src/test/scala/ai/chronon/spark/test/ResultValidationAbilityTest.scala Updated mocks for loadTable to match new method signature with two parameters.
spark/src/main/scala/ai/chronon/spark/GroupBy.scala Modified call to tableUtils.whereClauses to include partition column argument.

Sequence Diagram(s)

sequenceDiagram
    participant Caller
    participant TableUtils
    participant Format
    participant SparkSession

    Caller->>TableUtils: loadTable(tableName, rangeWheres)
    TableUtils->>Format: table(tableName, combinedPredicates)
    Format->>SparkSession: read.table(tableName).where(combinedPredicates)
    SparkSession-->>Format: DataFrame
    Format-->>TableUtils: DataFrame
    TableUtils-->>Caller: DataFrame
Loading

Possibly related PRs

Suggested reviewers

  • nikhil-zlai
  • piyush-zlai
  • david-zlai

Poem

Tables filtered, predicates blend,
Scala’s new methods now extend.
Cleanup moves to an earlier bend,
Code refined, no loose end.
Cheers to progress we commend! 🚀

Warning

Review ran into problems

🔥 Problems

GitHub Actions and Pipeline Checks: Resource not accessible by integration - https://docs.github.com/rest/actions/workflow-runs#list-workflow-runs-for-a-repository.

Please grant the required permissions to the CodeRabbit GitHub App under the organization or repository settings.


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro (Legacy)

📥 Commits

Reviewing files that changed from the base of the PR and between 66b2dc1 and 1efa06f.

📒 Files selected for processing (2)
  • cloud_gcp/src/main/scala/ai/chronon/integrations/cloud_gcp/BigQueryNative.scala (1 hunks)
  • spark/src/main/scala/ai/chronon/spark/GroupBy.scala (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • cloud_gcp/src/main/scala/ai/chronon/integrations/cloud_gcp/BigQueryNative.scala
🧰 Additional context used
🧬 Code Graph Analysis (1)
spark/src/main/scala/ai/chronon/spark/GroupBy.scala (2)
spark/src/main/scala/ai/chronon/spark/TableUtils.scala (1)
  • whereClauses (616-620)
spark/src/main/scala/ai/chronon/spark/Extensions.scala (1)
  • partitionColumn (289-291)
⏰ Context from checks skipped due to timeout of 90000ms (35)
  • GitHub Check: service_tests
  • GitHub Check: cloud_aws_tests
  • GitHub Check: hub_tests
  • GitHub Check: service_tests
  • GitHub Check: cloud_gcp_tests
  • GitHub Check: service_commons_tests
  • GitHub Check: cloud_aws_tests
  • GitHub Check: hub_tests
  • GitHub Check: api_tests
  • GitHub Check: cloud_gcp_tests
  • GitHub Check: online_tests
  • GitHub Check: online_tests
  • GitHub Check: flink_tests
  • GitHub Check: api_tests
  • GitHub Check: aggregator_tests
  • GitHub Check: flink_tests
  • GitHub Check: streaming_tests
  • GitHub Check: aggregator_tests
  • GitHub Check: orchestration_tests
  • GitHub Check: scala_compile_fmt_fix
  • GitHub Check: spark_tests
  • GitHub Check: orchestration_tests
  • GitHub Check: streaming_tests
  • GitHub Check: join_tests
  • GitHub Check: join_tests
  • GitHub Check: groupby_tests
  • GitHub Check: groupby_tests
  • GitHub Check: fetcher_tests
  • GitHub Check: fetcher_tests
  • GitHub Check: analyzer_tests
  • GitHub Check: spark_tests
  • GitHub Check: batch_tests
  • GitHub Check: analyzer_tests
  • GitHub Check: batch_tests
  • GitHub Check: enforce_triggered_workflows
🔇 Additional comments (1)
spark/src/main/scala/ai/chronon/spark/GroupBy.scala (1)

658-658: Properly passing source-specific partition column

This change enables source-specific partition filtering by explicitly passing the partition column from the source.


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
cloud_gcp/src/main/scala/ai/chronon/integrations/cloud_gcp/DelegatingBigQueryMetastoreCatalog.scala (1)

124-135: Consider using DEBUG level for table column logs.

Logging at INFO may be too verbose for regular operation.

-              logger.info("Table columns:")
-              logger.info(f"${nativeTable.columns()}")
+              logger.debug("Table columns:")
+              logger.debug(f"${nativeTable.columns()}")
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro (Legacy)

📥 Commits

Reviewing files that changed from the base of the PR and between 900a7a1 and 9269a22.

📒 Files selected for processing (2)
  • api/python/ai/chronon/resources/gcp/zipline-cli-install.sh (1 hunks)
  • cloud_gcp/src/main/scala/ai/chronon/integrations/cloud_gcp/DelegatingBigQueryMetastoreCatalog.scala (3 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (22)
  • GitHub Check: service_tests
  • GitHub Check: cloud_gcp_tests
  • GitHub Check: service_commons_tests
  • GitHub Check: service_tests
  • GitHub Check: cloud_gcp_tests
  • GitHub Check: hub_tests
  • GitHub Check: hub_tests
  • GitHub Check: cloud_aws_tests
  • GitHub Check: online_tests
  • GitHub Check: api_tests
  • GitHub Check: cloud_aws_tests
  • GitHub Check: online_tests
  • GitHub Check: flink_tests
  • GitHub Check: scala_compile_fmt_fix
  • GitHub Check: flink_tests
  • GitHub Check: orchestration_tests
  • GitHub Check: aggregator_tests
  • GitHub Check: orchestration_tests
  • GitHub Check: python_tests
  • GitHub Check: aggregator_tests
  • GitHub Check: api_tests
  • GitHub Check: enforce_triggered_workflows
🔇 Additional comments (3)
api/python/ai/chronon/resources/gcp/zipline-cli-install.sh (1)

52-53: Good improvement moving trap earlier.

Moving cleanup trap after download ensures file removal on any exit.

cloud_gcp/src/main/scala/ai/chronon/integrations/cloud_gcp/DelegatingBigQueryMetastoreCatalog.scala (2)

27-27: LGTM: Added SLF4J import.

Import needed for logging functionality.


51-52: LGTM: Added logger instantiation.

Standard pattern for SLF4J logger in Scala.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (2)
spark/src/main/scala/ai/chronon/spark/TableUtils.scala (2)

118-124: Update error message for consistency.

The error message mentions "partition filter" but the parameter is named "rangeWheres".

def loadTable(tableName: String, rangeWheres: Seq[String] = List.empty[String]): DataFrame = {
  tableFormatProvider
    .readFormat(tableName)
    .map(_.table(tableName, combinePredicates(rangeWheres))(sparkSession))
    .getOrElse(
-      throw new RuntimeException(s"Could not load table: ${tableName} with partition filter: ${rangeWheres}"))
+      throw new RuntimeException(s"Could not load table: ${tableName} with range predicates: ${rangeWheres}"))
}

571-575: Remove duplicate logging.

The combined predicate string is logged both here and in scanDfBase method.

private def combinePredicates(predicates: Seq[String]): String = {
  val whereStr = predicates.map(p => s"($p)").mkString(" AND ")
-  logger.info(s"""Where str: $whereStr""")
  whereStr
}
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro (Legacy)

📥 Commits

Reviewing files that changed from the base of the PR and between ff7d6df and 68d7e34.

📒 Files selected for processing (3)
  • cloud_gcp/src/main/scala/ai/chronon/integrations/cloud_gcp/BigQueryNative.scala (1 hunks)
  • spark/src/main/scala/ai/chronon/spark/TableUtils.scala (3 hunks)
  • spark/src/main/scala/ai/chronon/spark/format/Format.scala (1 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (2)
cloud_gcp/src/main/scala/ai/chronon/integrations/cloud_gcp/BigQueryNative.scala (1)
spark/src/main/scala/ai/chronon/spark/format/Format.scala (1)
  • table (11-15)
spark/src/main/scala/ai/chronon/spark/TableUtils.scala (4)
cloud_gcp/src/main/scala/ai/chronon/integrations/cloud_gcp/GcpFormatProvider.scala (1)
  • readFormat (24-46)
spark/src/main/scala/ai/chronon/spark/format/DefaultFormatProvider.scala (1)
  • readFormat (15-23)
spark/src/main/scala/ai/chronon/spark/format/Format.scala (1)
  • table (11-15)
cloud_gcp/src/main/scala/ai/chronon/integrations/cloud_gcp/BigQueryNative.scala (1)
  • table (16-27)
⏰ Context from checks skipped due to timeout of 90000ms (35)
  • GitHub Check: service_commons_tests
  • GitHub Check: cloud_gcp_tests
  • GitHub Check: cloud_aws_tests
  • GitHub Check: flink_tests
  • GitHub Check: service_tests
  • GitHub Check: online_tests
  • GitHub Check: hub_tests
  • GitHub Check: api_tests
  • GitHub Check: aggregator_tests
  • GitHub Check: streaming_tests
  • GitHub Check: service_tests
  • GitHub Check: join_tests
  • GitHub Check: hub_tests
  • GitHub Check: groupby_tests
  • GitHub Check: online_tests
  • GitHub Check: fetcher_tests
  • GitHub Check: flink_tests
  • GitHub Check: analyzer_tests
  • GitHub Check: cloud_gcp_tests
  • GitHub Check: spark_tests
  • GitHub Check: cloud_aws_tests
  • GitHub Check: batch_tests
  • GitHub Check: scala_compile_fmt_fix
  • GitHub Check: api_tests
  • GitHub Check: aggregator_tests
  • GitHub Check: orchestration_tests
  • GitHub Check: orchestration_tests
  • GitHub Check: streaming_tests
  • GitHub Check: spark_tests
  • GitHub Check: join_tests
  • GitHub Check: analyzer_tests
  • GitHub Check: batch_tests
  • GitHub Check: groupby_tests
  • GitHub Check: fetcher_tests
  • GitHub Check: enforce_triggered_workflows
🔇 Additional comments (4)
spark/src/main/scala/ai/chronon/spark/format/Format.scala (1)

5-5: Import added for new method return type.

Adding the DataFrame import supports the new table method's return type.

cloud_gcp/src/main/scala/ai/chronon/integrations/cloud_gcp/BigQueryNative.scala (2)

9-9: Import added for method return type.

Adding the DataFrame import supports the overridden table method's return type.


16-27: Good implementation with proper filter handling.

The implementation correctly handles empty filters with different approaches and properly formats the filter string for BigQuery.

spark/src/main/scala/ai/chronon/spark/TableUtils.scala (1)

599-603: Filter logic refactoring looks good.

Moving the rangeWheres filtering to loadTable and using combinePredicates for wheres improves code organization.

@tchow-zlai tchow-zlai changed the title wip feat: use spark bq connector for reads Apr 18, 2025
@tchow-zlai tchow-zlai changed the title feat: use spark bq connector for reads feat: spark bq connector v1 Apr 18, 2025
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
spark/src/test/scala/ai/chronon/spark/test/ResultValidationAbilityTest.scala (1)

63-75: Consider testing partition filtering functionality

The test verifies basic validation but doesn't test the new partition filtering capability introduced by the updated loadTable method.

Consider adding a test case that verifies partition predicates are properly applied:

  it should "successful validation" in {
    val args = new TestArgs(Seq("--conf-path", confPath, "--expected-result-table", "a_table").toArray)

    // simple testing, more comprehensive testing are already done in CompareTest.scala
    val leftData = Seq((1, Some(1), 1.0, "a", "2021-04-10"), (2, Some(2), 2.0, "b", "2021-04-10"))
    val columns = Seq("serial", "value", "rating", "keyId", "ds")
    val rdd = args.sparkSession.sparkContext.parallelize(leftData)
    val df = args.sparkSession.createDataFrame(rdd).toDF(columns: _*)

    when(mockTableUtils.loadTable(any(), any())).thenReturn(df)

    assertTrue(args.validateResult(df, Seq("keyId", "ds"), mockTableUtils))
  }
+
+  it should "apply partition filters when validating" in {
+    val args = new TestArgs(Seq("--conf-path", confPath, "--expected-result-table", "a_table").toArray)
+    val columns = Seq("serial", "value", "rating", "keyId", "ds")
+    val data = Seq((1, Some(1), 1.0, "a", "2021-04-10"))
+    val rdd = args.sparkSession.sparkContext.parallelize(data)
+    val df = args.sparkSession.createDataFrame(rdd).toDF(columns: _*)
+
+    // Verify that partition filters are passed correctly
+    when(mockTableUtils.loadTable(any(), any())).thenAnswer(invocation => {
+      val filters = invocation.getArguments()(1).asInstanceOf[Seq[String]]
+      assert(filters.contains("ds = '2021-04-10'"))
+      df
+    })
+
+    assertTrue(args.validateResult(df, Seq("keyId", "ds"), mockTableUtils))
+  }
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro (Legacy)

📥 Commits

Reviewing files that changed from the base of the PR and between b0668d8 and 87f2f73.

📒 Files selected for processing (1)
  • spark/src/test/scala/ai/chronon/spark/test/ResultValidationAbilityTest.scala (2 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (1)
spark/src/test/scala/ai/chronon/spark/test/ResultValidationAbilityTest.scala (1)
spark/src/main/scala/ai/chronon/spark/TableUtils.scala (1)
  • loadTable (118-124)
⏰ Context from checks skipped due to timeout of 90000ms (35)
  • GitHub Check: streaming_tests
  • GitHub Check: analyzer_tests
  • GitHub Check: join_tests
  • GitHub Check: service_commons_tests
  • GitHub Check: groupby_tests
  • GitHub Check: cloud_gcp_tests
  • GitHub Check: service_tests
  • GitHub Check: batch_tests
  • GitHub Check: cloud_aws_tests
  • GitHub Check: hub_tests
  • GitHub Check: service_tests
  • GitHub Check: fetcher_tests
  • GitHub Check: cloud_gcp_tests
  • GitHub Check: spark_tests
  • GitHub Check: online_tests
  • GitHub Check: cloud_aws_tests
  • GitHub Check: hub_tests
  • GitHub Check: api_tests
  • GitHub Check: flink_tests
  • GitHub Check: online_tests
  • GitHub Check: orchestration_tests
  • GitHub Check: api_tests
  • GitHub Check: flink_tests
  • GitHub Check: aggregator_tests
  • GitHub Check: join_tests
  • GitHub Check: aggregator_tests
  • GitHub Check: python_tests
  • GitHub Check: streaming_tests
  • GitHub Check: groupby_tests
  • GitHub Check: fetcher_tests
  • GitHub Check: batch_tests
  • GitHub Check: analyzer_tests
  • GitHub Check: spark_tests
  • GitHub Check: scala_compile_fmt_fix
  • GitHub Check: orchestration_tests
🔇 Additional comments (2)
spark/src/test/scala/ai/chronon/spark/test/ResultValidationAbilityTest.scala (2)

72-72: Updated mocking to match new TableUtils.loadTable signature

Correctly updated to use two parameters to align with the enhanced loadTable method that now accepts partition filters.


88-88: Mock updated correctly for failed validation test case

Properly updated mock to use two parameters for loadTable method.

tchow-zlai and others added 11 commits April 18, 2025 06:23
Co-authored-by: Thomas Chow <[email protected]>

Co-authored-by: Thomas Chow <[email protected]>

Co-authored-by: Thomas Chow <[email protected]>

Co-authored-by: Thomas Chow <[email protected]>
Co-authored-by: Thomas Chow <[email protected]>

Co-authored-by: Thomas Chow <[email protected]>

Co-authored-by: Thomas Chow <[email protected]>

Co-authored-by: Thomas Chow <[email protected]>
Co-authored-by: Thomas Chow <[email protected]>

Co-authored-by: Thomas Chow <[email protected]>

Co-authored-by: Thomas Chow <[email protected]>

Co-authored-by: Thomas Chow <[email protected]>
Co-authored-by: Thomas Chow <[email protected]>

Co-authored-by: Thomas Chow <[email protected]>

Co-authored-by: Thomas Chow <[email protected]>

Co-authored-by: Thomas Chow <[email protected]>
Co-authored-by: Thomas Chow <[email protected]>

Co-authored-by: Thomas Chow <[email protected]>

Co-authored-by: Thomas Chow <[email protected]>

Co-authored-by: Thomas Chow <[email protected]>
Co-authored-by: Thomas Chow <[email protected]>

Co-authored-by: Thomas Chow <[email protected]>

Co-authored-by: Thomas Chow <[email protected]>

Co-authored-by: Thomas Chow <[email protected]>
Co-authored-by: Thomas Chow <[email protected]>

Co-authored-by: Thomas Chow <[email protected]>

Co-authored-by: Thomas Chow <[email protected]>

Co-authored-by: Thomas Chow <[email protected]>
Co-authored-by: Thomas Chow <[email protected]>

Co-authored-by: Thomas Chow <[email protected]>

Co-authored-by: Thomas Chow <[email protected]>

Co-authored-by: Thomas Chow <[email protected]>
Co-authored-by: Thomas Chow <[email protected]>

Co-authored-by: Thomas Chow <[email protected]>

Co-authored-by: Thomas Chow <[email protected]>

Co-authored-by: Thomas Chow <[email protected]>
Co-authored-by: Thomas Chow <[email protected]>

Co-authored-by: Thomas Chow <[email protected]>

Co-authored-by: Thomas Chow <[email protected]>

Co-authored-by: Thomas Chow <[email protected]>
Co-authored-by: Thomas Chow <[email protected]>

Co-authored-by: Thomas Chow <[email protected]>
@tchow-zlai tchow-zlai changed the title feat: spark bq connector v1 feat: use spark bq connector v1 Apr 18, 2025
@@ -564,6 +568,12 @@ class TableUtils(@transient val sparkSession: SparkSession) extends Serializable
}
}

private def andPredicates(predicates: Seq[String]): String = {
val whereStr = predicates.map(p => s"($p)").mkString(" AND ")
logger.info(s"""Where str: $whereStr""")
Copy link
Contributor

Choose a reason for hiding this comment

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

can remove as you're printing on line 601 right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'll remove that one actually.

tchow-zlai and others added 4 commits April 18, 2025 08:52
@@ -655,7 +655,7 @@ object GroupBy {
|""".stripMargin)
metaColumns ++= timeMapping

val partitionConditions = tableUtils.whereClauses(intersectedRange)
val partitionConditions = tableUtils.whereClauses(intersectedRange, source.partitionColumn(tableUtils))
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@tchow-zlai tchow-zlai merged commit 610c8fe into main Apr 18, 2025
39 checks passed
@tchow-zlai tchow-zlai deleted the tchow/debugging branch April 18, 2025 19:36
kumar-zlai pushed a commit that referenced this pull request Apr 25, 2025
## Summary

- We need to bring back the v1 version of Datasource for spark bigquery
connector, since it supports partition pushdown. And alternative
project_id's. The catalog version in the spark bigquery connector does
not support that.

## Checklist
- [ ] Added Unit Tests
- [ ] Covered by existing CI
- [ ] Integration tested
- [ ] Documentation update
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Summary by CodeRabbit

- **New Features**
- Enhanced table reading capabilities with support for applying
partition filters and combining multiple predicates for more flexible
data queries.
- **Refactor**
- Improved internal handling of predicate filters and table loading
logic for more consistent and maintainable data access.
- Refined data filtering by explicitly incorporating partition column
information for more precise queries.
- **Chores**
- Updated script to ensure temporary files are cleaned up more reliably
during installation processes.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

<!-- av pr metadata
This information is embedded by the av CLI when creating PRs to track
the status of stacks when using Aviator. Please do not delete or edit
this section of the PR.
```
{"parent":"main","parentHead":"","trunk":"main"}
```
-->

---------

Co-authored-by: Thomas Chow <[email protected]>
kumar-zlai pushed a commit that referenced this pull request Apr 29, 2025
## Summary

- We need to bring back the v1 version of Datasource for spark bigquery
connector, since it supports partition pushdown. And alternative
project_id's. The catalog version in the spark bigquery connector does
not support that.

## Checklist
- [ ] Added Unit Tests
- [ ] Covered by existing CI
- [ ] Integration tested
- [ ] Documentation update
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Summary by CodeRabbit

- **New Features**
- Enhanced table reading capabilities with support for applying
partition filters and combining multiple predicates for more flexible
data queries.
- **Refactor**
- Improved internal handling of predicate filters and table loading
logic for more consistent and maintainable data access.
- Refined data filtering by explicitly incorporating partition column
information for more precise queries.
- **Chores**
- Updated script to ensure temporary files are cleaned up more reliably
during installation processes.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

<!-- av pr metadata
This information is embedded by the av CLI when creating PRs to track
the status of stacks when using Aviator. Please do not delete or edit
this section of the PR.
```
{"parent":"main","parentHead":"","trunk":"main"}
```
-->

---------

Co-authored-by: Thomas Chow <[email protected]>
chewy-zlai pushed a commit that referenced this pull request May 15, 2025
## Summary

- We need to bring back the v1 version of Datasource for spark bigquery
connector, since it supports partition pushdown. And alternative
project_id's. The catalog version in the spark bigquery connector does
not support that.

## Checklist
- [ ] Added Unit Tests
- [ ] Covered by existing CI
- [ ] Integration tested
- [ ] Documentation update
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Summary by CodeRabbit

- **New Features**
- Enhanced table reading capabilities with support for applying
partition filters and combining multiple predicates for more flexible
data queries.
- **Refactor**
- Improved internal handling of predicate filters and table loading
logic for more consistent and maintainable data access.
- Refined data filtering by explicitly incorporating partition column
information for more precise queries.
- **Chores**
- Updated script to ensure temporary files are cleaned up more reliably
during installation processes.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

<!-- av pr metadata
This information is embedded by the av CLI when creating PRs to track
the status of stacks when using Aviator. Please do not delete or edit
this section of the PR.
```
{"parent":"main","parentHead":"","trunk":"main"}
```
-->

---------

Co-authored-by: Thomas Chow <[email protected]>
chewy-zlai pushed a commit that referenced this pull request May 15, 2025
## Summary

- We need to bring back the v1 version of Datasource for spark bigquery
connector, since it supports partition pushdown. And alternative
project_id's. The catalog version in the spark bigquery connector does
not support that.

## Checklist
- [ ] Added Unit Tests
- [ ] Covered by existing CI
- [ ] Integration tested
- [ ] Documentation update
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Summary by CodeRabbit

- **New Features**
- Enhanced table reading capabilities with support for applying
partition filters and combining multiple predicates for more flexible
data queries.
- **Refactor**
- Improved internal handling of predicate filters and table loading
logic for more consistent and maintainable data access.
- Refined data filtering by explicitly incorporating partition column
information for more precise queries.
- **Chores**
- Updated script to ensure temporary files are cleaned up more reliably
during installation processes.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

<!-- av pr metadata
This information is embedded by the av CLI when creating PRs to track
the status of stacks when using Aviator. Please do not delete or edit
this section of the PR.
```
{"parent":"main","parentHead":"","trunk":"main"}
```
-->

---------

Co-authored-by: Thomas Chow <[email protected]>
chewy-zlai pushed a commit that referenced this pull request May 16, 2025
## Summary

- We need to bring baour clients the v1 version of Datasource for spark bigquery
connector, since it supports partition pushdown. And alternative
project_id's. The catalog version in the spark bigquery connector does
not support that.

## Cheour clientslist
- [ ] Added Unit Tests
- [ ] Covered by existing CI
- [ ] Integration tested
- [ ] Documentation update
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Summary by CodeRabbit

- **New Features**
- Enhanced table reading capabilities with support for applying
partition filters and combining multiple predicates for more flexible
data queries.
- **Refactor**
- Improved internal handling of predicate filters and table loading
logic for more consistent and maintainable data access.
- Refined data filtering by explicitly incorporating partition column
information for more precise queries.
- **Chores**
- Updated script to ensure temporary files are cleaned up more reliably
during installation processes.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

<!-- av pr metadata
This information is embedded by the av CLI when creating PRs to traour clients
the status of staour clientss when using Aviator. Please do not delete or edit
this section of the PR.
```
{"parent":"main","parentHead":"","trunk":"main"}
```
-->

---------

Co-authored-by: Thomas Chow <[email protected]>
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