Граф коммитов

1644 Коммитов

Автор SHA1 Сообщение Дата
Debdatta Kunda 7839885dde
ClientRetryPolicy: Adds Cross Regional Retry Logic on 429/3092 (#4691)
* Initial code changes to throw 503 on 429/3092.

* Updated client retry policy. Added more tests to cover 429/3092.

* Code changes to update direct package version. Updating the tests.

* Code changes to refactor client retry policy.

* Minor code cleanup.

* Reverting the direct version bump up change.

* Code changes to address some of the review comments.

* Code changes to move failover logic in client retry policy.

* Minor code clean up.

* Code changes to clean up some cosmetic items.

* Further clean up.

* Code changes to address review comments.

* Minor refactor to address cosmetic update.

* Code changes to address cosmetic review comment.
2024-09-17 18:17:30 +00:00
Nalu Tripician b757f8c38a
Hedging: Fixes Typo (WithAvailibilityStrategy -> WithAvailabilityStrategy) in CosmosClientBuilder (#4684)
* Update CosmosClientBuilder.cs

fixed typo

* Update DotNetPreviewSDKAPI.json
2024-09-13 18:40:17 +00:00
Kiran Kumar Kolli d4c9438178
Dependencies: Fixes Pinning System.Net.Http and System.Text.RegularExpressions to latest patched versions (#4676)
* Pinning System.Net.Http and System.Text.RegularExpressions to latest patched versions

* Fixing the unit test
2024-09-12 12:49:49 +02:00
Nalu Tripician 0fdb5e4222
SDK 3.43.0: Adds version bump and changelog (#4666)
* added project refrence

* update changelog and version bump

* contracts

* removed unreleated change

* Update changelog.md

Co-authored-by: Kiran Kumar Kolli <kirankk@microsoft.com>

* Update changelog.md

Co-authored-by: Kiran Kumar Kolli <kirankk@microsoft.com>

* update heding description

---------

Co-authored-by: Kiran Kumar Kolli <kirankk@microsoft.com>
2024-09-04 20:08:59 +00:00
Nalu Tripician cbf69c6308
added project refrence (#4661) 2024-09-04 14:36:57 -04:00
Nalu Tripician d242b8582e
Hedging: Adds Read hedging PREVIEW contracts (#4598)
* Update contracts

* removed unneeded changes

* made other contracts public

* update enable method

* comments

* contract update

* changed eneabled to internal

* fixed internal method

* Revert "fixed internal method"

This reverts commit f7da9f06c4.

* revert + change methods to internal

* fixed internal

* changed to factory creation

* disabledstrat fix

* fixed test + contracts

* xml changes

* updated comments

* Fixed Tests

* requested changes

* added client options check and one region check

* fix get

* fixed test

* fixed set

* fix client options

* updatecontracts

* requested changes

* fixed validate method

* Delete MultiRegionSetupHelpers.cs

removed file

* update contracts

* fixed merge

* fixed check
2024-08-29 09:59:44 -04:00
Nalu Tripician 6d603f54bd
[Internal] Hedging: Refactors Tests (#4641)
* test improvements

* fixed other multiregion test

* requested changes

* test fix

* adds util function for multiregion setup

* fixed util method/class

* parallelize tasks
2024-08-23 08:19:02 -07:00
Philip Thomas a1144f4f08
CF/P AVAD: Fixes Deserialization of ChangeFeedItem and ChangeFeedMetadata to support System.Text.Json and Newtonsoft.Json (#4618)
* checkin in

* support for both STJ and NSJ

* update contracts.

* name change PreviousLsn

* STJ TypeConverter support for ChangeFeedMetadata

* adding bacl StringEnumConverter

* test for Writes ChangeFeedMetadata

* removing DateTimeOffset as results are inconsistent.

* trying to get GMT, not local

* static UnixEpoch

* static qualifier in tests

* PropertyNameCaseInsensitive = false tests. copy of True tests.

* setting PropertyNameCaseInsensitive correctly for tests

* removed duplication for propertyNameCaseInsensitive tests

* remove JsonStringEnumConverter(), from tests

---------

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>
2024-08-21 21:42:46 +00:00
Philip Thomas ee33928d18
CFP AVAD: Adds new FeedRange to ChangeFeedProcessorContext (#4621)
* checkin with test

* fix tests and run UpdateContracts

* Update Microsoft.Azure.Cosmos/src/ChangeFeedProcessor/FeedProcessing/ProcessorOptions.cs

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>

* add validation of feed range to exising tests. reemove other test.

* Update Microsoft.Azure.Cosmos/src/ChangeFeedProcessor/ChangeFeedProcessorContext.cs

Co-authored-by: Ruben Bartelink <ruben@bartelink.com>

* update summary for FeedRange.

* make validatecontext async

* adding back these tests

* remove return and asserts.

---------

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>
Co-authored-by: Ruben Bartelink <ruben@bartelink.com>
Co-authored-by: Kiran Kumar Kolli <kirankk@microsoft.com>
2024-08-14 15:10:23 +00:00
Matias Quaranta 7bc8e3ce88
FeedRanges: Fixes GetFeedRangesAsync throwing DocumentClientException (#4640)
* Fix

* tests

* Remove unused
2024-08-13 13:03:42 -04:00
Matias Quaranta 47596bd007
Documentation: Fixes AnalyticalStoreTimeToLiveInSeconds API documentation to list correct values (#4638)
* Updating API doc

* Wording
2024-08-12 21:30:03 +00:00
Nalu Tripician c2043ae85c
[Internal] Request Hedging: Refactors HedgeRegion diagnostics field to only show successful region (#4625)
* changed hedge region to only show sucessfull region

* added and updated tests

* discussion changes

* suggestions and test improvements

* test fix

* updated hedge context

* fix test

* no string conversion

* requested changes

* suggested changes

* remove and sort usings
2024-08-09 18:45:54 +00:00
Nalu Tripician c98e632170
[Internal] Request Hedging: Refactors Diagnostics Nesting so Hedge request show from RequestInvokerHandler Level (#4624)
* updated nesting

* made trace more resillient

* trace as input

* added beginning of test

* update test

* added wait for global replication

* using for FI client
2024-08-09 17:29:07 +00:00
Nalu Tripician 87b40da18c
[Internal] FaultInjection: Adds Fault Injection to main project (#4633)
* move files

* rename
2024-08-07 15:03:50 -07:00
Nalu Tripician 8c69757d36
[Internal] Request Hedging: Removes ExcludeRegions from Request Hedging Diagnostics (#4623)
* removed exclude region from hedging diagnostics

* ER will now show for hedging requests

* added test + nits

* moved test
2024-08-07 13:55:18 -04:00
Sourabh Jain 9deb6e5510
Open Telemetry: Adds Batchsize and Rename Batch Operation name in Operation Trace (#4622)
* Added batchsize and batchioperation name info
t p

* updated contracts

* checks

* changed logic

* cosmetic changes

* updated bacthc logic
2024-08-06 10:12:48 +00:00
Philip Thomas bdc4082c4f
CFP AVAD: Fixes issue where customers are allowed to use WithStartTime and WithStartFromBeginning with CFP AVAD. (#4619)
* checkin with tests

* Update Microsoft.Azure.Cosmos/src/ChangeFeedProcessor/ChangeFeedProcessorBuilder.cs

Co-authored-by: Kiran Kumar Kolli <kirankk@microsoft.com>

* Update Microsoft.Azure.Cosmos/src/ChangeFeedProcessor/ChangeFeedProcessorBuilder.cs

Co-authored-by: Kiran Kumar Kolli <kirankk@microsoft.com>

---------

Co-authored-by: Kiran Kumar Kolli <kirankk@microsoft.com>
2024-08-02 11:30:21 -07:00
neildsh aba2b2ce4c
Add new query feature for hybrid search (#4617) 2024-07-31 14:15:11 -07:00
Debdatta Kunda 908f037c8a
SystemTextJsonSerializer: Refactors Code to Introduce `SystemTextJsonSerializerOptions` to Set the Default STJ Serializer (#4589)
* Code changes to make STJ serializer public for preview.

* Code changes to make STJ serializer public for GA.

* Code changes to hide STJ serializer implementation behind a boolean flag.

* Code changes to fix tests.

* Revert "Code changes to fix tests."

This reverts commit c1ee171c22.

* Code changes to fix baseline test.

* Code changes to fix root cause.

* Code changes to update tests.

* Code changes to address review comments.

* Code changes to add serializer options as contract.

* Code changes to add serializer options as public contract in builder.

* Code changes to update contract to remove the STJ serializer boolean flag.

* Code changes to update summary.

* Code changes for minor cosmetic update.

* Code changes to fix xml comment.

* Code changes to move remarks to summary. Updated test.

* Code changes to move the validation logic in cosmos client options.

* Code changes to update contract.

* Code changes to remove client context core logic in cosmos client options.

* Code changes to update some tests.

* Code changes to update contract. Made cosmetic changes.
2024-07-30 08:51:51 -07:00
neildsh 7d7269bff0
[Internal] Query: Removes unused code and simplifies query pipeline classes (#4601)
* remove dead code

* Consolidate the pipeline stage classes

* Continue consolidating pipeline classes

* rename classes appropriately

* Fix build break
2024-07-26 13:06:52 -07:00
Nalu Tripician 38c89fd951
SDK 3.42.0: Adds version bump and changelog (#4603)
* update changelog and direcotry.build.props

* changelog

* changelog change

* api contracts

* changelog
2024-07-25 08:02:46 -07:00
Sourabh Jain 0f3e6ca366
[Internal] Client Telemetry: Fixes loggers (#4594)
* fix logger

* skipping latency record if it is in negative otherwise histogram will throw an exception, while recording it

* fix loggers
2024-07-24 06:28:26 -07:00
Aditya f277ce3428
[Internal] Query: Fixes ORDER BY issue when partial partition key is specified in RequestOptions in a query to sub-partitioned container (#4587)
* Initial commit.

* Addressed comments.

* Addressed remaining comments.

---------

Co-authored-by: neildsh <35383880+neildsh@users.noreply.github.com>
2024-07-18 08:34:48 -07:00
Debdatta Kunda 016e19f6de
[Internal] ClientRetryPolicy: Fixes Partition Failover on Next region when RG Fails with `HttpRequestException` (#4565)
* Code changes to fix some of the flakey tests.

* Code changes to fix client retry policy.

* Code changes to add tests to validate the scenario.
2024-07-16 09:45:39 -07:00
Nalu Tripician 6e1d40d339
ChangeFeed: Adds MalformedContinuationToken SubstatusCode to exception (#4583) 2024-07-15 13:40:20 -07:00
Nalu Tripician 3fd2ce6fe8
Routing: Adds Parallel Request Hedging (#4198)
* initial commit

* fix

* document client restore

* document client changes

* clientContextCore fix

* global endpoint manager fix

* pre test changes

* start of tests

* added dispose for cancellation token source

* test changes

* working test

* more testing

* removed unneeded changes

* revert changes to global endpoint manager (unneeded)

* requested changes

* requested changes

* moves logic into availability strategy

* adds disableStrategy type

* fixed test

* refactor should hedge

* refactor should hedge/adds can use availability strat

* fixed mocking test

* Update Microsoft.Azure.Cosmos/src/Handler/RequestInvokerHandler.cs

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>

* requested changes

* fix enabled

* added preview flag

* fixed XML

* fixed preview flags

* fixed bugs

* nit

* changed preview flags + update contracts

* revert file for whitespace

* changed file back after update contract

* removed using

* requested changes

* fixed small bug

* fixed bug

* removed options from client builder

* removed usings

* constructor check

* fixed test

* added exclude region to logs

* lazy task create

* rename + lazy

* improvements and fixes

* Added XML commentes

* fixed xml comments

* small tweeks

* added fixes + tests

* added item check to tests

* changed test regions to match with CI accounts

* query test

* update test for multiregion CI pipelines

* enviroment var null check

* null checks

* perf tests

* revert benchmark project

* possible memory saving

* Tests/improvements

* extensive testing improvements + bug fixes

* removed unneeded changes

* nits

* fix hedge regions

* update contracts

* fix updatecontract

* test fix

* fixed areequal asserts

* ALTERNATE METHOD

* added readfeed FI operation type to tests

* requested changes and improvemtns

* list optimization

* fixed edge case diagnostics

* small fix

* small fixes

* refactor code

* fixed null issues

* null refrence

* bug fixes

* changed header clone to internal

* fixed API doc + test change

* removed unused method

* changed to internal

* fixed internal

* removed contract changes

* updated abstract class

* suggested changes

* small bug fixes/improvements

* nits and fixes

* removed unused method

* test fix + applicable region fix + error handeling

* fixed test

* fixed test

* location cache change

* requested changes

* fixed test

* nits

* headers change

* Update Microsoft.Azure.Cosmos/src/Handler/RequestInvokerHandler.cs

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>

* simplifed method

* nit

* fixed change

* remove linq

* fixed faulty change

* reverted accidental test change

* removed tooManyRequests test - unlrelated bug

* removed tooManyRequests test - unlrelated bug

---------

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>
2024-07-12 13:25:22 -07:00
Kiran Kumar Kolli b478595f17
[Internal] Tests: Adds Coverage to validate Cosmos .NET SDK versioning strategy (#4567)
* Unit test coverage to validate Cosmos .NET SDK versioning strategy

* Updating logic to fix the build version comparision

* Renamed a method

* Great catch on exception catching, fixing it

* Using Tests Logger
2024-07-11 15:11:01 -07:00
leminh98 5bba9a05b0
Query: Adds support for multi-value Group By query for LINQ (#4481)
* init

* Added tests

* Preliminary code

* baseline

* add ordering ignore to test cases

* upate baseline

* address code review 1

* Changed the way comparison between Anonymoustype object worked. Also added handling of multivalue case to call directly to leaf layer visitors, instead of going through the top level scalar expression visitor to avoid changing binding and context scope

* addressed code review

* address code review

* addressed missing field

---------

Co-authored-by: Minh Le (from Dev Box) <leminh@microsoft.com>
2024-07-09 04:07:50 +00:00
Joris Eijmberts 7867f549e8
Change Feed: Fixes incorrect exception messages in VersionedAndRidCheckedCompositeToken (#4580)
Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>
2024-07-08 13:20:56 -07:00
Sourabh Jain 6d36c36bc8
VM Metadata API: Adds an option to disable VM metadata API call (#4568)
* add env variable

* fixed tests

* removed try-catch

* add doc

* remove else

* put try-catch around test

* remove debugger

* update env variable name and updated known issue section

* updstade doc
2024-07-08 09:34:36 -07:00
neildsh 5287ffb4ba
Query: Adds distributed query gateway client pipeline stage (#4556)
* Add a DistributedQuery gateway mode to the v3 sdk

Fix up bug in the continuation token and plumb the page size. Add an integration test

Make distributed query pipeline kick in only for document queries. Make it backwards compatible with older continuation tokens. Add integration tests.

Revert change in TransactionBatchOperationResult

Fix up missing include in OptimisticDirectExecutionQueryBaselineTests

* Incorporate code review feedback

Hack together a parity test for queries that require distribution

Add more partitioned parity tests

A tiny bit of code clean up

rename PaginationOptions to ExecutionOptions

Rename PaginationOptions to ExecutionOptions

rename pagination options to execution options

remove warning disable pragmas

Commit missed changes

* Fix up build issues due to bad merge

* Add another overload for NetworkAttachedDocumentContainer that does not take a distributed query client

* Incorporate code review feedback

* Fix up baseline to account for the class rename
2024-07-02 11:51:22 -07:00
neildsh 0ae182303d
Query: Adds a new QueryFeature flag for MakeList and MakeSet (#4559) 2024-07-01 14:59:04 +00:00
neildsh 68f9725e43
Query: Removes compute specific logic from query pipelines that is no longer required (#4558)
* remove ExecutionEnvironment and the Compute flavor of the query pipeline stages

* Add changes that were missed in the last commit

* Remove GetCosmosElementContinuationToken from FeedIterator
2024-06-26 18:27:37 -07:00
Debdatta Kunda 65ce9a942b
Code changes to fix some of the flakey tests. (#4554) 2024-06-21 09:37:53 -07:00
Ezra Haleva 179d9a4930
Query: Adds Distribution for MakeList and MakeSet (#4490)
* added MakeList and MakeSet aggregators

* Added MakeList and MakeSet to AggregateQueryTests.cs

* Adjust Aggregators

* Add Array Aggregate Continuation Token Test

* Added group by coverage for MakeList and MakeSet

* address comments

* cleaning

* Refactored test to better detect when to ignore result order

* cleaning

* cleaning, update baseline

* cleaning

* removed old comment

* cleaning/refactoring

* cleaning

* Add explicit cases to hit continuation token limit.

* Added additional case to GroupBy tests

* cleaning

* cleaning

* cleaning, updated baseline test

* cleaning, updated baseline test

* Added coverage to QueryPlanBaselineTests.cs

* refactored
2024-06-20 23:09:56 +00:00
Philip Thomas aab02e502e
Change Feed / Processor AVAD: Fixes timeToLiveExpired missing from metadata (#4523)
* longrunning cfp avad test for ttl

* add more to comment

* internal set

* other tests fail with higher ms

* run updatecontracts

* Update Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/ChangeFeed/GetChangeFeedProcessorBuilderWithAllVersionsAndDeletesTests.cs

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>

* Update Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/ChangeFeed/GetChangeFeedProcessorBuilderWithAllVersionsAndDeletesTests.cs

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>

* Update Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/ChangeFeed/GetChangeFeedProcessorBuilderWithAllVersionsAndDeletesTests.cs

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>

* Update Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/ChangeFeed/GetChangeFeedProcessorBuilderWithAllVersionsAndDeletesTests.cs

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>

* using Logger.LogLine

* change back over to ManualResetEvent. fixed assert to look at Previous. keeping stopwatch just for logging. timeout at 5 minutes.

* Update GetChangeFeedProcessorBuilderWithAllVersionsAndDeletesTests.cs

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>

* try/finally

* removing ctor. making all set internal to address serialization issue. later PRs to test STJ de/serialization.

* fixing de/serialziation issue

* Update GetChangeFeedProcessorBuilderWithAllVersionsAndDeletesTests.cs

change timeout

* Update ReEncryption.csproj

1.11.4

* internal set change to CanWrite:True;

---------

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>
2024-06-19 09:02:47 -07:00
Maya Painter c5ac103a63
[Internal] Query: Refactors ParallelCrossPartitionQueryPipelineStage to improve perf (#4548)
* init

* revert test

* remove sw

* nit

* cleanup
2024-06-18 19:25:44 +00:00
Debdatta Kunda 035d2297bf
[Internal] SystemTextJsonSerializer: Adds Default STJ Serializer (#4332)
* Code changes to add default STJ serializer.

* Code changes to add tests for STJ serializer.

* Code changes to rename files.

* Code changes to clean up files.

* Code changes to add more tests.

* Code changes to update respective contracts.

* Code changes to add more documentation.

* Code changes to add LINQ tests. Addressing few review comments.

* Code changes to fix build failures.

* Code changes to update contract files.

* Code changes to add more LINQ specific test cases.

* Code changes to address review comments.

* Code changes to port some of the optimizations from Maya.

* Code changes to update the remarks since the changes from maya will cover the property naming policy.

* Code changes to address review comments.

* Code changes to update preview and GA contracts.
2024-06-17 19:17:08 -07:00
neildsh 2b01585990
Change the serviceInterop call that was missed in the previous PR (#4550) 2024-06-14 22:04:05 +00:00
Kiran Kumar Kolli 397ffab6fd
Quarantine ClientTelemetryReleaseTests (#4539) 2024-06-12 07:17:27 -07:00
neildsh 8c8d3e955c
Query: Fixes plumbing VectorEmbeddingPolicy to ServiceInterop to choose correct default distance function (#4538)
* Plumb the collection VectorEmbeddingPolicy to ServiceInterop

* Add query plan baseline tests for vector search

* Correct typo in the query for baseline test

* Fix build errors

* fix runtime issue in mock setup due to the extra argument for vector embedding policy
2024-06-11 06:46:12 -07:00
hdornadula 5994b1608b
Adding new SDK changes for NzN (#4537)
* Adding new SDK changes for NzN

* Bumping up SDK version for a full release

* Fixing changelog.md
2024-06-07 23:35:54 +00:00
Aditya f1590f84a8
3.40.1: Adds new SDK versions and contract files (#4532)
* Initial commit

* Fixed version. Generated contract files off of 3.40.0 for which hotfix is being released.
2024-06-07 10:39:57 -07:00
Asier Isayas 087ed73fa9
[Internal] Visibility: Adds new Portal Backend to Microsoft.Azure.Cosmos InternalsVisibleTo (#4529)
Co-authored-by: Asier Isayas <aisayas@microsoft.com>
2024-06-05 12:50:01 -07:00
leminh98 18a677ace9
Query: Adds DOCUMENTID extension method for LINQ (#4489)
* Add extension method for doucmentid

* test coverage

* additional test

* update contract

* update dotnet api

* address code review

* update csproj file

* update missing baseline

---------

Co-authored-by: Minh Le (from Dev Box) <leminh@microsoft.com>
2024-06-04 13:06:16 -07:00
hdornadula fa354adc2f
Region Availability: Adds New Zealand North region for Public Usage. (#4520)
* Testing

* Revert "Testing"

This reverts commit 5e173a627e.

* Adding SDK changes for New Zealand North

* Corrected formatting to use LF line ending.
2024-05-31 22:31:24 -07:00
Aditya 673bf58573
[Internal] Query : Fixes response parsing error for ReadFeed by limiting binary format to query operations (#4515)
* Limit binary format to query operations

* Addressed comments, updated test.

* Updated coverage to include query stream API.

* Test Change.

* Test change 2

* ReadFeed Encryption tests only with project reference

* Revert

* Removed comment

---------

Co-authored-by: Matias Quaranta <ealsur@hotmail.com>
2024-05-29 03:16:05 +00:00
leminh98 504c2dfd8d
Add test (#4488)
Co-authored-by: Minh Le (from Dev Box) <leminh@microsoft.com>
2024-05-21 17:21:45 +00:00
Aditya dda9cb4933
Query : Fixes ORDER BY query issue when partial partition key is specified with hierarchical partition (#4507)
* Initial commit

* Initial commit

* Update.
2024-05-20 17:02:40 -07:00
Debdatta Kunda 618d120b44
3.40.0: Adds new SDK versions and contract files (#4505)
* Updated change log and bumped up the minor version.

* Updating the change log to remove some of the PRs.
2024-05-17 22:36:39 +00:00
neildsh d5f17f27b7
Query: Fixes non streaming OrderByCrossPartitionQueryPipelineStage to remove state and handle splits (#4493)
* simplify OrderByCrossPartitionQueryPipelineStage to remove state and be a static class.

* Add more test coverage for splits/merge and request charge

* Add more test coverage for splits

* incorporate code review feedback
2024-05-17 06:32:15 +00:00
Aditya 4746295c28
[Internal] Query : Fixes IndexMetrics Baselines (#4499)
* Initial commit

* Fixing the permission tests

* Disabled non-streaming order by for Trace Test.

---------

Co-authored-by: Kiran Kumar Kolli <kirankk@microsoft.com>
2024-05-17 05:11:02 +00:00
Debdatta Kunda a3c9d779f8
ContainerProperties: Refactors Vector Embedding and Indexing Policy Interfaces to Mark Them as Public for Preview (#4486)
* Code changes to mark internal vector interfaces as public.

* Code changes to update the public and preview modifiers.

* Code changes to update preview and ga contracts.

* Code changes to mark the policy definitions as public interface.

* Code changes to update GA contract and use #if all over.

* Code changes to fix some of the broken tests in preview.

* Code changes to update the preview contract too reflect the JSON Ignore.

* Code changes to upgrade direct version to 3.34.2
2024-05-15 15:57:23 -07:00
neildsh 3ae56dbc77
Query: Adds an environment config to suppress sending NonStreamingOrderBy in the list of query features sent to the gateway (#4492)
* Introduce an environment config to suppress sending NonStreamingOrderBy in the list of query features sent to the gateway

* Make sure that we dont leak state from the integration test.  Add the suppression environment variable for the test pipeline since we run against an old emulator

* Incorporate code review feedback
2024-05-15 01:33:50 -07:00
Jake e78e5dac7f
Diagnostics: Adds DurationInMs to StoreResult (#4462)
* Add StoreResponseStatistics startTime to diagnostics

* Add latency in ms to make it easier to read.

* Converted to DurationInMs

* Remove start time

* Update baseline file.

---------

Co-authored-by: jakewilley_microsoft <--global>
Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>
2024-05-09 17:32:56 +00:00
Matias Quaranta 14397b8160
Documentation: Fixes recommended OpenTcpConnetionTimeout value (#4469)
* Adding note

* rewording
2024-05-08 17:44:34 -04:00
Sourabh Jain dee9abaedf
Distributed Tracing: Adds Request charge and Payload size Threshold options (#4433)
* Added Request charge and Payload size options to generate request diagnostics

* Added default values

* add exception handling for payload size

* Added test

* update contract file

* added docs

* add null check

* added more docs

* updated contract

* changed event name

* remove unused import
2024-05-01 21:20:26 -07:00
Maya Painter f304e970c5
initial commit (#4253)
Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>
2024-05-01 12:21:11 -07:00
neildsh bda8290201
Switch non streaming order by to use flag from query plan instead of _streaming in the response (#4459) 2024-04-29 21:17:12 +00:00
Aditya 14633455d2
Query: Fixes Persisted continuationToken issue by turning off ODE by default (#4413)
* Turn of ODE by default.

* Updated tests

* Update

* Test fix

* Added test for query resumption with ODE token with partition split container (failure case).

* Update.

* Update Benchmark

* Addressed comments.
2024-04-24 06:42:46 -07:00
neildsh 85a8444b84
Add a new capability for non streaming order by in QueryFeatures and add a new flag to QueryInfo that will be used by ServiceInterop to indicate non streaming order by queries (#4446) 2024-04-23 10:25:49 -07:00
Maya Painter 61319986f1
Samples: Adds STJ LINQ Serializer Example (#4420)
* initial commit

* bump sample version

* update comments

* sln file fix

* update comment

* Update Microsoft.Azure.Cosmos/src/Serializer/CosmosLinqSerializer.cs

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>

* remarks fix

* xml fix

---------

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>
2024-04-18 22:03:54 +00:00
Debdatta Kunda de078b4ad1
[Internal] Flakey Tests: Fixes few Tests in `GatewayAddressCacheTests` (#4424)
* Code changes to fix one of the GW cache flakey tests.

* Code changes to fix some of the assertions.

* Code changes to use IsCompletedSuccessfully.
2024-04-17 22:50:23 +00:00
Philip Thomas c9de5a3557
ChangeFeedProcessor: Fixes ArgumentException when dealing with Legacy lease incremental documents that do not have a Mode property (#4426)
* fix for 4423

* fix comment

* some recommendation changes
2024-04-17 11:17:47 -07:00
leminh98 5efe2db046
[Internal] Query: Adds tests for LINQ GROUP BY Multi-value translations (#4403)
* init

* Added tests

---------

Co-authored-by: Minh Le (from Dev Box) <leminh@microsoft.com>
2024-04-17 00:14:06 +00:00
neildsh 08338af632
Fix bug in OrderByCrossPartitionQueryPipelineStage to ensure that failures in creating the inner pipeline stage are bubbled up to the higher stages (#4419) 2024-04-16 12:24:04 -07:00
Sourabh Jain ef719fb2ae
[Internal] Distributed Tracing: Fixes Client Config Test (#4406)
* Adds code to create activity even customer is not subscribed to the feature

* Added documentation
2024-04-12 05:36:49 +00:00
Nalu Tripician f335f6563b
update readme to make it more clear (#4399)
Co-authored-by: Kiran Kumar Kolli <kirankk@microsoft.com>
2024-04-12 01:06:54 +00:00
leminh98 0e066252cf
Query: Fixes ResponseMessage not parsing the IndexMetrics as text in latest sdk (#4397)
* Fix response message not parsing the index advice as text in latest sdk

* add test coverage

* address code review

---------

Co-authored-by: Minh Le (from Dev Box) <leminh@microsoft.com>
2024-04-11 19:09:05 +00:00
Philip Thomas 496ddba88b
SDK 3.39.0: Adds version bump and changelog. (#4391)
* SDK 3.40.0-preview.0: Adds version bump and changelog.

* SDK 3.40.0-preview.0: Adds version bump and changelog.

* SDK 3.40.0-preview.0: Adds version bump and changelog.

* change version for release; create diffs

* added query PRs to changelog

* add note for Rename refactoring of ChangeFeedItemChange<T> to changelog

* removing 4281 since it was mislabeled. it should have been treated as Internal

* grammar error

* formatting

* case change

* Update changelog.md

Co-authored-by: Justine Cocchi <jucocchi@microsoft.com>

* removing 4317 from change log. should be internal

* add new regions to changelog. also Direct Package version update

* fixed linked to DP PR

* more changes based on review

---------

Co-authored-by: Justine Cocchi <jucocchi@microsoft.com>
2024-04-09 20:17:24 +00:00
joegoldman2 4b2196bc60
Distributed Tracing: Update operation name for non-generic feed iterator read operation (#4374)
* Distributed Tracing: Update operation name for non-generic feed iterator read operation

* Update tests

---------

Co-authored-by: joegoldman2 <147369450+joegoldman@users.noreply.github.com>
Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>
2024-04-06 16:27:13 +00:00
Debdatta Kunda d1ff001bc9
[Internal] ContainerProperties: Adds Vector Embedding and Indexing Policy (#4379)
* Initial code changes to add vector embedding policy and index type in container.

* Code changes to add container builder for vector index type.

* Code changes to add and fix tests.

* Revert back client create and initialize test.

* Skipping some of the V2 tests for vector indexes.

* Code changes to fix GA and preview contracts.

* Code changes to address review comments part 1.

* Removed unnecessary JSON argument for vector index.

* Code changes to update contract changes.

* Code changes to update preview contract changes in tests.

* Code changes to address few review comments.

* Code changes to add few more tests to validate serialization and deserialization.

* Code changes to address some review comments for best practices.

* Code changes to fix test failures.
2024-04-05 15:39:17 -07:00
Aditya 90b852611a
[Internal] Query: Fixes Client QL exception by dropping ClientQLCompatibilityLevel (#4387)
* Initial commit

* Added Test Coverage.
2024-04-04 23:33:41 +00:00
Taylor 61230f9999
[Internal] Regions: Adds new USSec Region (#4386)
Co-authored-by: Taylor Hamilton <tahamilt@microsoft.com>
2024-04-04 08:41:17 -07:00
Nalu Tripician 80647baea2
[Internal] Direct Package: Adds Support for Direct package version 3.33.0 (#4353)
* upgraded direct package version

* added Taiwan regions

* update contracts

* fix contracts

* fixed more contracts

* contracts change

* contract change remove

* changed baseline files

* added space

* added region name check test for future verification

* nits

---------

Co-authored-by: Sourabh Jain <sourabhjain@microsoft.com>
2024-04-03 12:27:00 -07:00
Aditya 1106cd7cfe
[Internal] Query: Fixes occasional hang while querying using partial partition key against a sub-partitioned container (#4359)
* Initial commit

* Suite0 fixes.

* Updated Test.
2024-04-02 15:51:01 -07:00
kevin-montrose e04ce514f8
Performance: Refactors query prefetch mechanism (#4361)
* sketch out improved ParallelPrefetcher; focus is on reducing allocations, but we also can't be substantially slower to start all tasks

* little more cleanup to further reduce allocations, and save a tiny amount of CPU

* start on testing

* some tweaks and testing for buffer management

* test exception handling; fix a bug in high concurrency case that would swallow exceptions

* test cancellation

* more testing, a little bit of cleanup

* test the case where the enumerator faults; fixes a couple leaks of Tasks and buffers that could occur in that some places

* tiny bit of cleanup

* cleanup and expand comments; code is tricky, it needs documentation

* address a whole bunch of style nits, just to keep compiler Message counts down

* address some feedback on comment clarity

* don't rely on finalizers for testing, it's too brittle; hold up was not allocating more in the non-test cases, but found a field to reuse; needs benchmarking

* complete ITrace proxy for testing

* style nits and a bit more commentary

* explicit test for concurrent access to the inner IEnumerator

* explicit test that IEnumerator is disposed

* explicitly implement all ITrace members

* address feedback: internal class members should be public or private

* address feedback: break test-only bits of ParallelPrefetch out into a partial

* address feedback: move const above type declarations

* address feedback: naming nits

* address feedback: use the existing NoOpTrace

* address feedback: remove pointless using

* update baseline trace text for QueryAsync test

---------

Co-authored-by: neildsh <35383880+neildsh@users.noreply.github.com>
2024-04-01 21:34:37 +00:00
leminh98 15d83a7d08
Query: Adds translation support for single key single value select GROUP BY LINQ queries (#4074)
* preliminary change

* Add some more boiler plate code

* move all linq test to the same folder; add some groupBy test

* fix references error in test refactoring

add code for group by substitution. Still need to adjust binding post groupby

* preliminary for the groupby functions with key and value selector

* trying to change collection inputs for group by

* WIP bookmark

* Successfully ignore "key"

* clean up code

* Sucessfully bind the case of group by with only key selector and no value selector followed by an optional select clause

* enable one group by test

* add support for aggregate value selector

* added baseline

* working on adding support for multivalue value selector and key selector

* code clean up

* more clean up

* more clean up

* update test

* Move test to separate file

* code clean up

* remove baseline file that got moved

* fix merge issue

* Changes test infrastructure to reflect changes from Master

* address code review part 1

* Address code review 2 and adds code coverage

* Addressed code review and added tests. Still a couple of bugs to iron out

* Fix group by translation issue and add more test

* update comments

* address pr comment

---------

Co-authored-by: Minh Le <leminh@microsoft.com>
Co-authored-by: Aditya <adityasa@users.noreply.github.com>
2024-04-01 19:18:15 +00:00
neildsh 578832669c
Query: Adds support for non streaming ORDER BY (#4362)
* Initial prep for adding a non streaming order by query pipline stage

* Change TracingAsyncEnumerator to be an adapter class between ITracingAsyncEnumerator and IAsyncEnumerator

* Move TracingAsyncEnumerator to product code

* Change ITracingAsyncEnumerator.MoveNext to take a CancellationToken, thereby removing the awkward method SetCancellationToken from IQueryPipelineStage

* draft implementation of non streaming order by pipeline stage

* Fix bug that drops first record on an initialized page

* Add a test class for non streaming order by unit tests

* remove unnecessary usings

* Add an emulator test for non streaming order by. Also lay groundwork for an alternative implementation for non streaming order by

* Remove the ResponseLengthInBytes property from QueryPage. This was being calculated incorrectly, and seems to be unused to boot.

* Add an ItemCount property to the Page class

* Add a multi level heap implementation for non streaming order by

* Add infrastructure for writing parity tests

* Fix a bug that caused the page enumerator to be dropped when we reach flat heap sizze limit

* When cloning OrderByQueryPartitionRangePageAsyncEnumerator as a fully buffered enumerator, make sure that we set the page size to maximum for the backend requests

* Simplify the non streaming pipeline stage, and add performance test

* Revert the changes for Headers.ItemCount Keep it as a string

* Avoid an allocation each time the OrderByItems property of OrderByQueryResult is touched

* Fix up the OrderByPipelineSatgeBenchmark to use fully materialized CosmosElements in the oages returned from MockContainer

* Add a few more unit tests for non streaming order by

* Add emulator tests for non streaming order by

* Add a few more integration test cases

* Fix up broken unit test

* Add more test coverage for the non streaming order by

* If there is no continuationtoken, assume that the response is streaming

* Add stronger validation to the non streaming order by unit tests

* Fix up broken unit tests to account for ItemCount

* fix up plumbing for index utilization, and incorporate code review feedback

* Minor clean up

* revert bug introduced in pursuit of more elegant code :)

* fix up broken unit test

* Fix up broken perf test

* Fix up broken IndexMetricsParserBaselineTest

* Minor bug fixes for OrderByCrossPartitionEnumerator
2024-04-01 17:21:53 +00:00
Philip Thomas 4855a6afd7
ChangeFeedProcessor: Refactors AVAD metadata Contract (#4380)
* refactoring for name change

* more refactoring and run UpdateContracts
2024-03-29 19:48:48 +00:00
jiajunpeng-msft dfee5ad2b0
integrated cache: make BypassIntegratedCache API GA (#4377)
Co-authored-by: Jiajun Peng <jiajunpeng@microsoft.com>
2024-03-29 18:07:35 +00:00
Philip Thomas 71e58ee833
ChangeFeedProcessor: Adds AllVersionsAndDeletes support to ChangeFeedProcessor (#4370)
* preview cfp ffcf

* ran updatecontracts

* including this in Encryption

* fixing name onChangesDelegate

* sdkproject on encryptioncontainer

* try this again

* try, try, try again

* with impl
2024-03-26 20:32:13 +01:00
Nalu Tripician 75a2e5f98a
[Internal] Pipelines: Fixes Multi-Region CI pipeline to include env variable (#4363)
* Fixes Multi-Region CI pipeline to include env variable

* fixed space

* added validation test

* string conversion

* temp

* temp2

* Update Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/ClientTests.cs

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>

* Update Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/ClientTests.cs

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>

* changed env location

* temp

* test

* space

* remove env

* possible fix

* test fix

* clean up

* changed enviroment variable get

* test

* test fix

* ensure multiregion tests do not run with regular emulator tests

---------

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>
2024-03-25 14:19:04 -07:00
Philip Thomas dbdf8064f5
ChangeFeedProcessor: Fixes when ChangeFeedMode is switched should throw an exception. (#4334)
* test to prove no exception, no documents when change feed more is changed.

* renaming

* throwing exception when changeFeedMode change on CFP with same lease container

* removed PREVIEW tags under advisement. Well create a PR later

* removed usings

* revert to old summary

* defaulting change feed mode to latestversion

* change feed mode exception on switching and tests based on last recommendation.

* more changes based on discussions

* some refactoring

* fixed some tests

* more changes based on recommendations

* another refactor

* change from CosmosException to ArgumentException

* removed CosmosException from comments

* fixin tests to account for extra GetAllLeasesAsync call

* some recommendation changes
2024-03-22 14:39:33 +00:00
Sourabh Jain d1f879fed1
Distributed Tracing Documentation : Fixes the default value mentioned in code doc (#4357)
* Distributed Tracing Dcoumentation : Changed the default value mentioned in comment

* Update Microsoft.Azure.Cosmos/src/CosmosThresholdOptions.cs

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>

* Update Microsoft.Azure.Cosmos/src/CosmosThresholdOptions.cs

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>

---------

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>
2024-03-21 18:26:54 -07:00
Philip Thomas c064a79d29
[Internal] ChangeFeedEstimator: Fixes ChangeFeedProcessorState.EstimatedLag to 1 When CFP is Dormant after a Partition Split (#4324)
* adding a test to repro issue 4285

* fix plus e2e test

* not all request have cosmos exception

* add a quick unit test for ChangeFeedEstimatorIterator when Gone exception happens

* added a test description

* ignoring long running test. meant to be ran manually

* move long running tests to its own folder and category; check response and header for status/substatus

* one test category only, removed using, and exluding LongRunning category from build pipeline

* Update templates/build-test.yml

I am committing your suggestion. Also, the goal of this PR is not to executed long running tests. I will create a new PR for this. Because there are other unknowns that I need to answer. So for now, I just don't want it to be executed with the existing pipelines.

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>

* change name of connectionString ENV to something more intention revealing

---------

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>
Co-authored-by: Sourabh Jain <sourabhjain@microsoft.com>
2024-03-13 17:42:55 +00:00
Sourabh Jain deab135c9b
Distributed Tracing: Adds configuration to disable network level tracing in sdk permanently (#4333)
* disable network level tracing in sdk

* update sample

* remove network level tracing logic altogrther

* 'fix spelling
2024-03-06 17:58:49 -08:00
Sourabh Jain d1a7d49859
Diagnostics: Adds Client Configuration for Synchronization context cases (#4338)
* disable network level tracing in sdk

* Revert "disable network level tracing in sdk"

This reverts commit 627cba6404.

* Including Client Configuration in request Diagnostics for Sync calls also
2024-03-05 12:13:52 -05:00
Maya Painter bf0f6291f2
initial commit (#4323) 2024-02-23 07:19:27 +00:00
Sourabh Jain 23dac8b3f2
Client Telemetry: Refactors code to stop throwing an exception. (#4317)
* Remove all code related to throwing an exception from client telemetry module

* Update Microsoft.Azure.Cosmos/src/Telemetry/ClientTelemetryProcessor.cs

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>

* Update Microsoft.Azure.Cosmos/src/Telemetry/ClientTelemetryProcessor.cs

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>

* updated tests

* remove extra try catch

* updated message

* cosmetic changes

---------

Co-authored-by: Matias Quaranta <ealsur@users.noreply.github.com>
2024-02-16 23:52:30 +05:30
Aditya 40dfa25a8b
Initial commit (#4322) 2024-02-16 02:13:57 +00:00
Bala Perumalswamy cba93d3fad
[Internal] Query: Adds support for continuation using SqlQuerySpec (#3774)
* initial change to support sending continuation as resume value in query spec

* serialize resume value in continuation token.

* fix unit test that was failing. other minor refactors

* additional refactoring
update exception messages

* few minor changes

* additional tests

* code refactoring

* Create separate top level object to represent SqlQueryResumeValue. Different types of resume values are private in this object
Consolidate all the visitor and serialization of resume value to SqlQueryResumeValue
Other code review comments

* handle different continuation token for target partition

* update test for continuation from array and object values. other minor code refactors

* save resume value as CosmosElement instead of defining a separate derived objects.

update cosmosundefinedquerytests. other code review comments.

* support on CosmosNumber64. Other number types are not supported for resume value. unit tests for SqlQueryResumeValue.

* update cosmosundefinedquerytests to include arrays and object in order by and group by tests. reducing the document count to reduce execution time.

* revert change to have separate SqlQueryResumeValue objects as it is better symmetry for comparing arrays and objects.

* group resume value into 3 types: Undefined, Primitive and Complex

* minor fix

---------

Co-authored-by: Bala Perumalswamy <balaperu@ntdev.microsoft.com>
Co-authored-by: Aditya <adityasa@users.noreply.github.com>
2024-02-13 12:33:44 -08:00
Sourabh Jain caa1aebe84
Distributed Tracing: Refactors code to rename net.peer.name attribute to server.address (#4316)
* Marking Distributed tracing feature as stable and changed an attribute name

* remove it from emulator test

* marked stable as false

* fix tests

* updated changefeedxml

* remove statuscode and subsstatus from staic list

* regenerated xml files

* remove event counters events
2024-02-13 22:12:12 +05:30
Debdatta Kunda 0589e8a30d
CosmosClientOptions: Adds Private Custom Account Endpoints (#4265)
* Code changes to add regional endpoints for account metadata calls.

* Code changes to refactor some codes.

* Code changes to add unit tests.

* Code changes to make minor code clean-up.

* Code changes to fix tests. Refactored API.

* Code changes to refactor the enumeration logic inside global endpoint manager.

* Code changes to address review comments.

* Code changes to fix minor API parameter.

* Code changes to update the API naming.

* Code changes to update some attribute names.

* Code changes to refactor service endpoint creation logic.

* Code changes to address review comments.

* Code changes to address review comments.

* Code changes to update the API contract.

* Cosmetic code changes.

* Code changes to address review comments.
2024-02-09 16:04:48 +01:00
Nalu Tripician a9599bd648
FaultInjection: Adds Fault Injection Library (#4281)
* initial commit

* add files

* restructure + some cleanup

* fixed await for chaos interceptor creation

* added default operation/conntection type values

* threshold to thresholdpercentage

* more threshold changes

* changed application to rule application for clarity

* changed method names in application context

* spelling fix

* addressed comments

* tests/csproj fixes

* requested changes

* requested changes

* added comments arrount duration

* added comments arrount duration

* application context changes to avoid bounded staleness problem

* requested changes and test fixes

* removed unused code

* update contracts

* Revert "update contracts"

This reverts commit 8df331713f.
2024-02-08 11:58:07 -08:00
leminh98 f6609eeccb
[Internal] Query: Fixes Aggregate Pipelines resetting headers (#4303)
* Init commit

* address code review

* address code review part 2

* fix formating

---------

Co-authored-by: Minh Le <leminh@microsoft.com>
2024-02-07 00:55:21 +00:00
Aditya 03a617eed0
Bypass distribution plan parsing. (#4293) 2024-02-06 15:53:16 -08:00
Philip Thomas e827b6bdb0
[Internal] Change Feed Processor: Adds AllVersionsAndDeletes support (#4264)
* porting Ian changes to new branch

* changing DynamicTests back to its original state. Create a new test class for AllVersionsAndDeletes

* including tests for AllVersionsAndDeletes DynamicTests

* get master version of DynamicTests

* testing changefeedprocessor with allversionsanddeletes

* tests for changefeedprocessor with allversionsanddeletes

* need to change name here also

* adding example documentation to the GetChangeFeedProcessorBuilderWithAllVersionsAndDeletes

* removed a line from example that was not necessary

* removed ChangeFeedMode from Create signature and using what is in ChangeFeedProcessorOptions

* undoing file

* default to LatestVersion, not Incremental

* change Incremental to LatestVersion on tests

* change access modifier and remove PREVIEW gate for internal classes

* more removal of unnecessary mode on Create for PartitionController and PartitionSupervisor

* change access modifiers and moving methods around due to PREVIEW

* adding GetChangeFeedProcessorBuilderWithAllVersionsAndDeletes to EncryptionContainer since it inherits Container

* running UpdateContract powershell

* override instead of abstract

* fixing override, but not sure about how this works

* taking guessing on this

* lets try this again

* once more

* once more

* internal on new change feed builder

* making it public to test

* internalizing the GetChangeFeedProcessorBuilderWithAllVersionsAndDeletes

* removed DecryptChangeFeedDocumentAsync

* undoing this file

* removing commented code

* moved to ContainerCore.Items.cs

* removing and undoing some files created or updated by UpdateContracts.ps1

* removed space and undoing a file
2024-02-05 23:29:41 +00:00
Sourabh Jain 8d74003ac5
[Internal] Direct Version Upgrade: Fixes code to make it compatible with 3.32.1 of direct package (#4282)
* upgrade direct package to 3.32.1

* degrade core and add doagnosticspource 6.0.1

* updated otel contract

* update otel factory

* update contract

* fix test

* fixed tests

* fixed tests

* fixed tests

* fixed source name and operation name in tests

* fix tests

* changed add tag fucn for integer fields

* updated tests

* unmask status code and substatuscode

* updated contracts

* fix query contract

* update contracts after ordered operation activity

* removed optional attributes

* fix versioning

* remove exception creation on request fail

* changed message

---------

Co-authored-by: Nalu Tripician <27316859+NaluTripician@users.noreply.github.com>
2024-02-05 22:13:52 +00:00
Maya Painter 792dc39923
[Internal] Query: Adds Handling of STJ ExtensionData to Sample Custom Serializer (#4306)
* Initial commit

* Revert "Initial commit"

This reverts commit f826457476.

* sample custom serializer update

* update docs
2024-02-05 11:55:58 -08:00