Skip to content

Conversation

@prince-cs
Copy link
Contributor

@prince-cs prince-cs commented Jun 12, 2025

cherrypick: #96

Current Issue:
It has been observed that when the display value type is selected, some values that are defined as integers in the schema appear as strings.

Code Changes:
The changes are made on how the schema is fetched. The API associated for fetching the schema is changed to use the column metadata api which now fetches the schema.
Schema API: baseUrl/api/now/doc/table/schema/tableName
Column Metadata API: baseUrl/api/now/ui/meta/tableName

In accordance with the response from the column metadata API, the SchemaResponse class is also changed to accommodate the changes. Before mapping the datatype, a check is applied that if the value type is display and if there is a mismatch between the internal_type and type then it needs to be mapped to the type otherwise internal_type.

Testing:
The code changes are verified by running unit tests and e2e tests. Also, did run the pipelines for some of the tables for Display and Actual value type.

JIRA Ticket: https://cdap.atlassian.net/browse/PLUGIN-1895

Copy link
Contributor

@itsankit-google itsankit-google left a comment

Choose a reason for hiding this comment

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

please add JIRA in the PR title, also add cherrypick in the title.

In the description, please mention the original PR.

For example, see this PR : data-integrations/google-cloud#1553

@prince-cs prince-cs changed the title Fixing datatype mismatch issue when value type is display [PLUGIN-1895] Fixing datatype mismatch issue when value type is display Jun 12, 2025
@prince-cs prince-cs changed the title [PLUGIN-1895] Fixing datatype mismatch issue when value type is display [🍒][PLUGIN-1895] Fixing datatype mismatch issue when value type is display Jun 12, 2025
@prince-cs prince-cs merged commit bf0c341 into release/1.2 Jun 12, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants