Skip to content

SK-245 development get by unique values in JAVA SDK#63

Merged
skyflow-vivek merged 6 commits intorelease/23.1.1.2from
SK-245-development-get-by-unique-column-in-java-sdk
Jan 9, 2023
Merged

SK-245 development get by unique values in JAVA SDK#63
skyflow-vivek merged 6 commits intorelease/23.1.1.2from
SK-245-development-get-by-unique-column-in-java-sdk

Conversation

@skyflow-vivek
Copy link
Collaborator

@skyflow-vivek skyflow-vivek commented Jan 3, 2023

Development of get method in JAVA SDK

Introduced new Get interface to support get method which can be invoked by

  1. either using skyflow_ids in request params
  2. or using column details (column_name and column_values) in request params

Added validation according to the requirements of the API on top of existing validation

  1. throws error when neither skyflow_ids nor column details (column_name and column_values) are passed
  2. throws error when only column_values are passed without column_name
  3. throws error when only column_name is passed without column_values

Unit Tests for Get interface In Java SDK

Wrote unit test for get method in JAVA SDK and covered scenarios like

  • when method successfully returns data
  • when invalid input is passed (e.g. invalid records key)
  • when records are not passed (e.g. empty/null)
  • when table name is not passed (e.g. empty/null)
  • when wrong table name is passed
  • when multiple record objects are passed
  • when column details and ids, both are passed
  • when column details and ids, both are not passed
  • when column name is passed but not column values
  • when column values are passed but not column name

Unit Tests for Update By Id method in JAVA SDK

Added two more unit tests for updateById to cover

  • IOException
  • ParseException

@skyflow-vivek skyflow-vivek changed the title SK - 245 development get by unique values in JAVA SDK SK-245 development get by unique values in JAVA SDK Jan 3, 2023
@skyflow-vivek skyflow-vivek force-pushed the SK-245-development-get-by-unique-column-in-java-sdk branch from 8fda15a to 16a6c7a Compare January 3, 2023 06:58
@skyflow-vivek skyflow-vivek changed the base branch from release/23.1.2.2 to release/23.1.1.2 January 3, 2023 07:08
1. Modified current `getById` method to call the method by
	a. either using `skyflow_ids` in request params
	b. or using column details (`column_name` and `column_values`) in request params
2. Added validation according to the requirements of the API on top of existing validation
	a. throws error when neither `skyflow_ids` nor column details (`column_name` and `column_values`) are passed
	b. throws error when only `column_values` are passed without `column_name`
	c. throws error when only `comumn_name` is passed without `column_values`
@skyflow-vivek skyflow-vivek force-pushed the SK-245-development-get-by-unique-column-in-java-sdk branch from 16a6c7a to 96be494 Compare January 4, 2023 13:04
1. Wrote unit test for `getByUniqueValues` in JAVA SDK and covered scenarios like
	- when method successfully returns data
	- when table name is not passed
	- when column details and ids, both are passed
	- when column details and ids, both are not passed
	- when column name is passed but not column values
	- when column values are pased but not column name
Added two more unit tests for `updateById` to cover
	- IOException
	- ParseException
@skyflow-vivek skyflow-vivek force-pushed the SK-245-development-get-by-unique-column-in-java-sdk branch from 2bcebba to e6485d1 Compare January 9, 2023 10:14
1. restored the `getById` to its original state
2. introduced the new `Get` interface to support both `getById` and `getbyUniqueValues`
3. Modified previously written unit tests for Get By Unique Values
4. Introduced a couple more test cases for better coverage of Get interface
@skyflow-vivek skyflow-vivek force-pushed the SK-245-development-get-by-unique-column-in-java-sdk branch from e6485d1 to d332654 Compare January 9, 2023 12:50
@skyflow-vivek skyflow-vivek merged commit eb13719 into release/23.1.1.2 Jan 9, 2023
@skyflow-shravan skyflow-shravan deleted the SK-245-development-get-by-unique-column-in-java-sdk branch June 18, 2025 08:11
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.

4 participants