Skip to content

Add value info struct to join schema response to pull feature -> key mapping #728

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 5 commits into from
May 12, 2025

Conversation

piyush-zlai
Copy link
Contributor

@piyush-zlai piyush-zlai commented May 2, 2025

Summary

Updating the JoinSchemaResponse to include a mapping from feature -> listing key. This PR updates our JoinSchemaResponse to include a value info case class with these details.

Checklist

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

Summary by CodeRabbit

Summary by CodeRabbit

  • New Features
    • Added detailed metadata for join value fields, including feature names, group names, prefixes, left keys, and schema descriptions, now available in join schema responses.
  • Bug Fixes
    • Improved consistency and validation between join configuration keys and value field metadata.
  • Tests
    • Enhanced and added tests to validate the presence and correctness of value field metadata in join schema responses.
    • Introduced new test suites covering fetcher failure scenarios and metadata store functionality.
    • Refactored existing fetcher tests to use external utility methods for data generation.
    • Added utility methods for generating deterministic, random, and event-only test data configurations.

Copy link

coderabbitai bot commented May 2, 2025

Walkthrough

A new valueInfos metadata structure was introduced and propagated through the join schema response pipeline. This includes updates to Java and Scala classes, constructors, and conversion methods to handle the new field. The join codec and fetcher logic were modified to collect and return detailed metadata about each value field involved in a join. Tests were updated and added to validate the presence and correctness of the valueInfos array in both Java and Scala test suites.

Changes

File(s) Change Summary
online/src/main/java/ai/chronon/online/JavaJoinSchemaResponse.java Added valueInfos field, nested ValueInfo class, updated constructors and Scala conversion methods.
online/src/main/scala/ai/chronon/online/JoinCodec.scala Added valueInfos parameter and nested ValueInfo case class to JoinCodec.
online/src/main/scala/ai/chronon/online/fetcher/Fetcher.scala Extended JoinSchemaResponse with valueInfos field; updated schema fetching logic.
online/src/main/scala/ai/chronon/online/fetcher/MetadataStore.scala Enhanced buildJoinCodec to collect and pass valueInfos metadata for join value fields.
service/src/test/java/ai/chronon/service/handlers/JoinSchemaHandlerTest.java Updated test to check for valueInfos in the join schema response.
spark/src/test/scala/ai/chronon/spark/test/fetcher/FetcherTest.scala Removed some tests and data generators; updated remaining tests to use external data generators.
spark/src/test/scala/ai/chronon/spark/test/fetcher/FetcherFailureTest.scala Added new test suite for fetcher failure scenarios (empty request, KVStore partial failure).
spark/src/test/scala/ai/chronon/spark/test/fetcher/FetcherMetadataTest.scala Added new test suite for metadata store functionality and join value info validation.
spark/src/test/scala/ai/chronon/spark/test/fetcher/FetcherTestUtil.scala Added utility methods to generate mutation, random, and event-only test data and join configurations.

Sequence Diagram(s)

sequenceDiagram
    participant Client
    participant Service
    participant MetadataStore
    participant JoinCodec

    Client->>Service: Request join schema
    Service->>MetadataStore: Fetch join config
    MetadataStore->>JoinCodec: Build join codec (collect valueInfos)
    JoinCodec-->>MetadataStore: Return codec with valueInfos
    MetadataStore-->>Service: Return join schema with valueInfos
    Service-->>Client: Respond with join schema (includes valueInfos)
Loading

Poem

🎉
A schema grew with infos new,
Each join field now tells its tale—
Full names, keys, and groups in view,
Tests ensure they never fail.
With valueInfos marching through,
The join is strong, robust, and hale!

Tip

⚡️ Faster reviews with caching
  • CodeRabbit now supports caching for code and dependencies, helping speed up reviews. This means quicker feedback, reduced wait times, and a smoother review experience overall. Cached data is encrypted and stored securely. This feature will be automatically enabled for all accounts on May 16th. To opt out, configure Review - Disable Cache at either the organization or repository level. If you prefer to disable all data retention across your organization, simply turn off the Data Retention setting under your Organization Settings.

Enjoy the performance boost—your workflow just got faster.


🪧 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.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

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 generate sequence diagram to generate a sequence diagram of the changes in this 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.

@piyush-zlai piyush-zlai force-pushed the piyush/value_infos branch 2 times, most recently from c42ee3b to ebf12b7 Compare May 3, 2025 00:04
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

🔭 Outside diff range comments (1)
spark/src/test/scala/ai/chronon/spark/test/fetcher/FetcherTestUtil.scala (1)

88-90: ⚠️ Potential issue

Wait timeout is 10 000 seconds

Duration(10000, SECONDS) ≈ 2.7 h; comment says “change back to millis”. Use seconds in single digits or milliseconds.

-val result = Await.result(future, Duration(10000, SECONDS)) // todo: change back to millis
+val result = Await.result(future, Duration("10s"))
🧹 Nitpick comments (4)
spark/src/test/scala/ai/chronon/spark/test/fetcher/FetcherMetadataTest.scala (1)

28-30: Executor never shutdown

ExecutionContext backed by a fixed pool is left running; tests may leak threads.

-implicit val executionContext: ExecutionContext = ExecutionContext.fromExecutor(Executors.newFixedThreadPool(1))
+val exec = Executors.newFixedThreadPool(1)
+implicit val executionContext: ExecutionContext = ExecutionContext.fromExecutor(exec)
+try {
+  // test body …
+} finally {
+  exec.shutdownNow()
+}
spark/src/test/scala/ai/chronon/spark/test/fetcher/FetcherFailureTest.scala (1)

39-41: Thread leak in test

Same fixed-thread pool not closed. Wrap in try/finally and call shutdownNow().

spark/src/test/scala/ai/chronon/spark/test/fetcher/FetcherTest.scala (1)

67-70: Close executor

newFixedThreadPool(1) created per test run; not shut down. Add finally { exec.shutdownNow() }.

spark/src/test/scala/ai/chronon/spark/test/fetcher/FetcherTestUtil.scala (1)

122-134: Large string ops

Repeated logger.info with multiline string inside loop may flood logs. Consider debug level or guard.

📜 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 ebf12b7 and e6a4d27.

📒 Files selected for processing (4)
  • spark/src/test/scala/ai/chronon/spark/test/fetcher/FetcherFailureTest.scala (1 hunks)
  • spark/src/test/scala/ai/chronon/spark/test/fetcher/FetcherMetadataTest.scala (1 hunks)
  • spark/src/test/scala/ai/chronon/spark/test/fetcher/FetcherTest.scala (3 hunks)
  • spark/src/test/scala/ai/chronon/spark/test/fetcher/FetcherTestUtil.scala (2 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (1)
spark/src/test/scala/ai/chronon/spark/test/fetcher/FetcherTestUtil.scala (8)
aggregator/src/test/scala/ai/chronon/aggregator/test/DataGen.scala (1)
  • Column (177-205)
api/src/main/scala/ai/chronon/api/DataType.scala (7)
  • BooleanType (148-148)
  • DoubleType (142-142)
  • IntType (138-138)
  • ListType (158-158)
  • LongType (140-140)
  • StringType (152-152)
  • StructField (163-163)
api/src/main/scala/ai/chronon/api/Builders.scala (4)
  • Builders (27-371)
  • Source (106-140)
  • Selects (29-39)
  • MetaData (261-315)
api/src/main/scala/ai/chronon/api/TsUtils.scala (2)
  • TsUtils (23-42)
  • datetimeToTs (36-38)
spark/src/main/scala/ai/chronon/spark/Extensions.scala (3)
  • Extensions (37-299)
  • save (141-151)
  • withTimeBasedColumn (227-232)
online/src/main/scala/ai/chronon/online/serde/SparkConversions.scala (1)
  • SparkConversions (56-159)
spark/src/main/scala/ai/chronon/spark/catalog/TableUtils.scala (4)
  • TableUtils (43-613)
  • TableUtils (615-617)
  • sql (289-317)
  • createDatabase (125-138)
spark/src/test/scala/ai/chronon/spark/test/DataFrameGen.scala (4)
  • DataFrameGen (39-158)
  • entities (65-72)
  • events (52-62)
  • mutations (83-157)
⏰ Context from checks skipped due to timeout of 90000ms (31)
  • GitHub Check: service_tests
  • GitHub Check: streaming_tests
  • GitHub Check: cloud_aws_tests
  • GitHub Check: online_tests
  • GitHub Check: analyzer_tests
  • GitHub Check: service_tests
  • GitHub Check: streaming_tests
  • GitHub Check: flink_tests
  • GitHub Check: spark_tests
  • GitHub Check: service_commons_tests
  • GitHub Check: spark_tests
  • GitHub Check: cloud_gcp_tests
  • GitHub Check: online_tests
  • GitHub Check: join_tests
  • GitHub Check: join_tests
  • GitHub Check: cloud_aws_tests
  • GitHub Check: flink_tests
  • GitHub Check: groupby_tests
  • GitHub Check: groupby_tests
  • GitHub Check: api_tests
  • GitHub Check: fetcher_tests
  • GitHub Check: cloud_gcp_tests
  • GitHub Check: fetcher_tests
  • GitHub Check: aggregator_tests
  • GitHub Check: batch_tests
  • GitHub Check: api_tests
  • GitHub Check: batch_tests
  • GitHub Check: analyzer_tests
  • GitHub Check: aggregator_tests
  • GitHub Check: scala_compile_fmt_fix
  • GitHub Check: enforce_triggered_workflows

Comment on lines +51 to +55
val singleFilePut: Seq[Future[scala.collection.Seq[Boolean]]] = singleFileKvMap.toSeq.map { case (_, kvMap) =>
singleFileMetadataStore.put(kvMap, singleFileDataSet)
}
singleFilePut.flatMap(putRequests => Await.result(putRequests, Duration.Inf))

Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

Unbounded Await

Await.result(..., Duration.Inf) can hang forever, hiding failures.

-singleFilePut.flatMap(putRequests => Await.result(putRequests, Duration.Inf))
+singleFilePut.flatMap(putRequests => Await.result(putRequests, Duration("30s")))
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
val singleFilePut: Seq[Future[scala.collection.Seq[Boolean]]] = singleFileKvMap.toSeq.map { case (_, kvMap) =>
singleFileMetadataStore.put(kvMap, singleFileDataSet)
}
singleFilePut.flatMap(putRequests => Await.result(putRequests, Duration.Inf))
val singleFilePut: Seq[Future[scala.collection.Seq[Boolean]]] = singleFileKvMap.toSeq.map { case (_, kvMap) =>
singleFileMetadataStore.put(kvMap, singleFileDataSet)
}
singleFilePut.flatMap(putRequests => Await.result(putRequests, Duration("30s")))

@piyush-zlai piyush-zlai force-pushed the piyush/value_infos branch from e6a4d27 to 429edb2 Compare May 12, 2025 15:03
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: 3

♻️ Duplicate comments (1)
spark/src/test/scala/ai/chronon/spark/test/fetcher/FetcherMetadataTest.scala (1)

54-54: Fix unbounded Await durations.

Multiple Await.result calls with Duration.Inf can lead to hangs if failures occur.

Apply this diff:

-singleFilePut.flatMap(putRequests => Await.result(putRequests, Duration.Inf))
+singleFilePut.flatMap(putRequests => Await.result(putRequests, Duration("30s")))
🧹 Nitpick comments (2)
spark/src/test/scala/ai/chronon/spark/test/fetcher/FetcherMetadataTest.scala (2)

34-34: Replace println with proper logging.

Use SLF4J logger instead of println for consistent logging.

-  println(s"conf resource path for dir walker: ${confResource.getPath}")
+  // Add logger definition at class level: private val logger = LoggerFactory.getLogger(getClass)
+  logger.debug(s"conf resource path for dir walker: ${confResource.getPath}")

47-50: Consider removing or clarifying the configuration comment.

Developer note about IntelliJ configuration could be misleading.

-  // set the working directory to /chronon instead of $MODULE_DIR in configuration if Intellij fails testing
+  // Note: If tests fail in IntelliJ, set working directory to /chronon instead of $MODULE_DIR
📜 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 e6a4d27 and 429edb2.

📒 Files selected for processing (9)
  • online/src/main/java/ai/chronon/online/JavaJoinSchemaResponse.java (1 hunks)
  • online/src/main/scala/ai/chronon/online/JoinCodec.scala (2 hunks)
  • online/src/main/scala/ai/chronon/online/fetcher/Fetcher.scala (2 hunks)
  • online/src/main/scala/ai/chronon/online/fetcher/MetadataStore.scala (3 hunks)
  • service/src/test/java/ai/chronon/service/handlers/JoinSchemaHandlerTest.java (3 hunks)
  • spark/src/test/scala/ai/chronon/spark/test/fetcher/FetcherFailureTest.scala (1 hunks)
  • spark/src/test/scala/ai/chronon/spark/test/fetcher/FetcherMetadataTest.scala (1 hunks)
  • spark/src/test/scala/ai/chronon/spark/test/fetcher/FetcherTest.scala (3 hunks)
  • spark/src/test/scala/ai/chronon/spark/test/fetcher/FetcherTestUtil.scala (2 hunks)
🚧 Files skipped from review as they are similar to previous changes (7)
  • service/src/test/java/ai/chronon/service/handlers/JoinSchemaHandlerTest.java
  • online/src/main/scala/ai/chronon/online/JoinCodec.scala
  • online/src/main/scala/ai/chronon/online/fetcher/Fetcher.scala
  • spark/src/test/scala/ai/chronon/spark/test/fetcher/FetcherFailureTest.scala
  • online/src/main/scala/ai/chronon/online/fetcher/MetadataStore.scala
  • online/src/main/java/ai/chronon/online/JavaJoinSchemaResponse.java
  • spark/src/test/scala/ai/chronon/spark/test/fetcher/FetcherTestUtil.scala
⏰ Context from checks skipped due to timeout of 90000ms (31)
  • GitHub Check: streaming_tests
  • GitHub Check: cloud_aws_tests
  • GitHub Check: service_tests
  • GitHub Check: spark_tests
  • GitHub Check: service_tests
  • GitHub Check: streaming_tests
  • GitHub Check: analyzer_tests
  • GitHub Check: join_tests
  • GitHub Check: online_tests
  • GitHub Check: online_tests
  • GitHub Check: groupby_tests
  • GitHub Check: flink_tests
  • GitHub Check: spark_tests
  • GitHub Check: service_commons_tests
  • GitHub Check: join_tests
  • GitHub Check: fetcher_tests
  • GitHub Check: flink_tests
  • GitHub Check: cloud_gcp_tests
  • GitHub Check: api_tests
  • GitHub Check: groupby_tests
  • GitHub Check: batch_tests
  • GitHub Check: api_tests
  • GitHub Check: scala_compile_fmt_fix
  • GitHub Check: analyzer_tests
  • GitHub Check: cloud_aws_tests
  • GitHub Check: cloud_gcp_tests
  • GitHub Check: fetcher_tests
  • GitHub Check: aggregator_tests
  • GitHub Check: batch_tests
  • GitHub Check: aggregator_tests
  • GitHub Check: enforce_triggered_workflows
🔇 Additional comments (3)
spark/src/test/scala/ai/chronon/spark/test/fetcher/FetcherMetadataTest.scala (1)

125-131: Verify valueInfos implementation matches requirements.

The PR aims to add valueInfos to map features to keys, so this test is critical.

The test correctly validates that:

  1. All left keys are present in valueInfos
  2. Value schema fields match value info fields
spark/src/test/scala/ai/chronon/spark/test/fetcher/FetcherTest.scala (2)

200-200: Code refactoring improves maintainability.

Moving data generation to FetcherTestUtil simplifies this test class.

The refactoring makes tests more maintainable by centralizing test data generation.

Also applies to: 206-206, 216-216


130-130:

✅ Verification successful

Verify FetcherTestUtil implementation handles all test cases.

Make sure utility methods support all previous test scenarios.

Also applies to: 151-152, 157-157


🏁 Script executed:

#!/bin/bash
# Check if FetcherTestUtil implements all necessary methods

# First check if the file exists
if fd -t f "FetcherTestUtil.scala" --exec cat {} \; | grep -q "object FetcherTestUtil"; then
  echo "FetcherTestUtil exists"
  
  # Check for required methods
  fd -t f "FetcherTestUtil.scala" --exec cat {} \; | grep -E "def generate(Random|Mutation|EventOnly)Data"
  fd -t f "FetcherTestUtil.scala" --exec cat {} \; | grep "def joinResponses"
  
  echo "Checking references to FetcherTestUtil methods:"
  rg "FetcherTestUtil\." --type scala
else
  echo "FetcherTestUtil.scala not found!"
fi

Length of output: 2898


FetcherTestUtil verification complete

Verified that FetcherTestUtil defines all utility methods used across tests—generateRandomData, generateMutationData, generateEventOnlyData, and joinResponses—and that each invocation in ChainingFetcherTest, FetcherMetadataTest, FetcherFailureTest, and FetcherTest.scala is supported. No missing methods; no further action needed.

val joinKeyName = "joins/team.example_join.v1"

val response = inMemoryKvStore.get(GetRequest(joinKeyName.getBytes(), singleFileDataSet))
val res = Await.result(response, Duration.Inf)
Copy link

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Replace all unbounded Await durations.

These additional Await.result calls also use Duration.Inf.

-  val res = Await.result(response, Duration.Inf)
+  val res = Await.result(response, Duration("30s"))

-  directoryPut.flatMap(putRequests => Await.result(putRequests, Duration.Inf))
+  directoryPut.flatMap(putRequests => Await.result(putRequests, Duration("30s")))

-  val dirRes = Await.result(dirResponse, Duration.Inf)
+  val dirRes = Await.result(dirResponse, Duration("30s"))

-  val emptyRes = Await.result(emptyResponse, Duration.Inf)
+  val emptyRes = Await.result(emptyResponse, Duration("30s"))

Also applies to: 78-78, 82-82, 92-92

val spark: SparkSession = submission.SparkSessionBuilder.build(sessionName, local = true)

it should "test metadata store" in {
implicit val executionContext: ExecutionContext = ExecutionContext.fromExecutor(Executors.newFixedThreadPool(1))
Copy link

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Add resource cleanup for ExecutionContext.

Thread pool is never shut down.

-  implicit val executionContext: ExecutionContext = ExecutionContext.fromExecutor(Executors.newFixedThreadPool(1))
+  val executor = Executors.newFixedThreadPool(1)
+  implicit val executionContext: ExecutionContext = ExecutionContext.fromExecutor(executor)
+  // Add in "after" or "tearDown" block: executor.shutdown()
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
implicit val executionContext: ExecutionContext = ExecutionContext.fromExecutor(Executors.newFixedThreadPool(1))
// allocate a dedicated thread pool and make it the implicit context
val executor = Executors.newFixedThreadPool(1)
implicit val executionContext: ExecutionContext = ExecutionContext.fromExecutor(executor)
// TODO: in your “after”/“tearDown” (e.g. afterAll) block, add:
// executor.shutdown()

val namespace = "join_schema"
val tableUtils: TableUtils = TableUtils(spark)
val joinConf = FetcherTestUtil.generateEventOnlyData(namespace, tableUtils, spark)
implicit val executionContext: ExecutionContext = ExecutionContext.fromExecutor(Executors.newFixedThreadPool(1))
Copy link

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Add resource cleanup for second ExecutionContext.

Thread pool in second test method is also never shut down.

-  implicit val executionContext: ExecutionContext = ExecutionContext.fromExecutor(Executors.newFixedThreadPool(1))
+  val executor = Executors.newFixedThreadPool(1)
+  implicit val executionContext: ExecutionContext = ExecutionContext.fromExecutor(executor)
+  // Remember to shut down in cleanup/teardown: executor.shutdown()
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
implicit val executionContext: ExecutionContext = ExecutionContext.fromExecutor(Executors.newFixedThreadPool(1))
val executor = Executors.newFixedThreadPool(1)
implicit val executionContext: ExecutionContext = ExecutionContext.fromExecutor(executor)
// Remember to shut down in cleanup/teardown: executor.shutdown()

Copy link
Collaborator

@varant-zlai varant-zlai left a comment

Choose a reason for hiding this comment

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

LGTM

@piyush-zlai piyush-zlai merged commit 98c616e into main May 12, 2025
34 checks passed
@piyush-zlai piyush-zlai deleted the piyush/value_infos branch May 12, 2025 15:48
chewy-zlai pushed a commit that referenced this pull request May 15, 2025
…mapping (#728)

## Summary

Updating the JoinSchemaResponse to include a mapping from feature ->
listing key. This PR updates our JoinSchemaResponse to include a value
info case class with these details.

## Checklist
- [X] Added Unit Tests
- [X] 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**
- Added detailed metadata for join value fields, including feature
names, group names, prefixes, left keys, and schema descriptions, now
available in join schema responses.
- **Bug Fixes**
- Improved consistency and validation between join configuration keys
and value field metadata.
- **Tests**
- Enhanced and added tests to validate the presence and correctness of
value field metadata in join schema responses.
- Introduced new test suites covering fetcher failure scenarios and
metadata store functionality.
- Refactored existing fetcher tests to use external utility methods for
data generation.
- Added utility methods for generating deterministic, random, and
event-only test data configurations.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
chewy-zlai pushed a commit that referenced this pull request May 15, 2025
…mapping (#728)

## Summary

Updating the JoinSchemaResponse to include a mapping from feature ->
listing key. This PR updates our JoinSchemaResponse to include a value
info case class with these details.

## Checklist
- [X] Added Unit Tests
- [X] 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**
- Added detailed metadata for join value fields, including feature
names, group names, prefixes, left keys, and schema descriptions, now
available in join schema responses.
- **Bug Fixes**
- Improved consistency and validation between join configuration keys
and value field metadata.
- **Tests**
- Enhanced and added tests to validate the presence and correctness of
value field metadata in join schema responses.
- Introduced new test suites covering fetcher failure scenarios and
metadata store functionality.
- Refactored existing fetcher tests to use external utility methods for
data generation.
- Added utility methods for generating deterministic, random, and
event-only test data configurations.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
chewy-zlai pushed a commit that referenced this pull request May 16, 2025
…mapping (#728)

## Summary

Updating the JoinSchemaResponse to include a mapping from feature ->
listing key. This PR updates our JoinSchemaResponse to include a value
info case class with these details.

## Cheour clientslist
- [X] Added Unit Tests
- [X] 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**
- Added detailed metadata for join value fields, including feature
names, group names, prefixes, left keys, and schema descriptions, now
available in join schema responses.
- **Bug Fixes**
- Improved consistency and validation between join configuration keys
and value field metadata.
- **Tests**
- Enhanced and added tests to validate the presence and correctness of
value field metadata in join schema responses.
- Introduced new test suites covering fetcher failure scenarios and
metadata store functionality.
- Refactored existing fetcher tests to use external utility methods for
data generation.
- Added utility methods for generating deterministic, random, and
event-only test data configurations.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
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