Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
00e9a9c
Added PostgresSchemaRegistry.java
suddendust Dec 28, 2025
31846e9
Spotless
suddendust Dec 28, 2025
2fdbf0e
WIP
suddendust Dec 29, 2025
1727dd0
Spotless
suddendust Dec 29, 2025
a62fbc2
Remove unused method in SchemaRegistry
suddendust Dec 29, 2025
6b7595b
Remove unused method in ColumnMetadata
suddendust Dec 29, 2025
7b4ef2a
WIP
suddendust Dec 29, 2025
598cb25
WIP
suddendust Dec 29, 2025
9c173b9
Configure cache expiry and cooldown
suddendust Dec 29, 2025
7bf77c5
Added PostgresMetadataFetcherTest
suddendust Dec 29, 2025
6d03cd5
WIP
suddendust Dec 29, 2025
c3f5f7e
Added docs on thread safety
suddendust Dec 29, 2025
827381f
Added PostgresSchemaRegistryIntegrationTest.java
suddendust Dec 29, 2025
602037b
WIP
suddendust Dec 29, 2025
c8a53eb
WIP
suddendust Dec 30, 2025
31f16e2
Refactor
suddendust Jan 4, 2026
c139bee
Merge branch 'schema_cache' into pg_write_create
suddendust Jan 4, 2026
75150e3
Merge branch 'main' of github.com:hypertrace/document-store into sche…
suddendust Jan 11, 2026
5412f9b
Merge branch 'schema_cache' into pg_write_create
suddendust Jan 12, 2026
bf5ca5c
WIP
suddendust Jan 12, 2026
57b623a
Implement create for flat collections
suddendust Jan 12, 2026
233c9c4
Merge branch 'main' of github.com:hypertrace/document-store into pg_w…
suddendust Jan 12, 2026
9f8811e
Fix compilation issue
suddendust Jan 12, 2026
bfd6651
Refactor
suddendust Jan 14, 2026
70ec4b3
Enhanced CreateResult.java and others
suddendust Jan 14, 2026
6d1c277
Added more test cases
suddendust Jan 14, 2026
910ef8c
Spotless
suddendust Jan 14, 2026
3e2c178
WIP
suddendust Jan 14, 2026
9061e24
Add more test coverage
suddendust Jan 14, 2026
c3024b0
Added `bestEfforts` configuration to PG custom parameters.
suddendust Jan 16, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
package org.hypertrace.core.documentstore;

import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Getter;

/*
* Represent the result object for CREATE operation of document store APIs.
* */
@AllArgsConstructor
@Getter
public class CreateResult {
private boolean succeed;
private boolean isSucceed;
private boolean onRetry;
private List<String> skippedFields;

public CreateResult(boolean succeed) {
this.succeed = succeed;
public CreateResult(boolean isSucceed) {
this.isSucceed = isSucceed;
}

public boolean isSucceed() {
return succeed;
public boolean isPartial() {
return !skippedFields.isEmpty();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,9 @@ public interface ColumnMetadata {
* @return whether this column can be set to NULL
*/
boolean isNullable();

/**
* @return whether this column is an array type
*/
boolean isArray();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package org.hypertrace.core.documentstore.model.exception;

import java.io.IOException;

/**
* Exception thrown when a document field doesn't match the expected schema. This can occur when:
*
* <ul>
* <li>A field in the document doesn't exist in the schema
* <li>A field's value type doesn't match the expected schema type
* </ul>
*/
public class SchemaMismatchException extends IOException {

public SchemaMismatchException(String message) {
super(message);
}

public SchemaMismatchException(String message, Throwable cause) {
super(message, cause);
}
}
Loading
Loading