Skip to content
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

CDK: TypeTransformer - warning message more informative #16695

Merged
merged 6 commits into from
Sep 15, 2022

Conversation

grubberr
Copy link
Contributor

@grubberr grubberr commented Sep 14, 2022

Signed-off-by: Sergey Chvalyuk grubberr@gmail.com

What

Old TypeTransformer warning messages are less informative

OLD:
"'12' is not of type 'array'"

NEW:
"Failed to transform value '12' of type 'string' to 'array', key path: '.value'"

You can see that the OLD warning message contains data itself '12' but the NEW message contains type 'string'
the new message also contains key path: '.value' which allows to better spot problems later.

Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>
@grubberr grubberr requested a review from a team as a code owner September 14, 2022 11:00
@github-actions github-actions bot added the CDK Connector Development Kit label Sep 14, 2022
@grubberr grubberr self-assigned this Sep 14, 2022
Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>
Copy link
Contributor

@sherifnada sherifnada left a comment

Choose a reason for hiding this comment

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

thanks! one small request for change

airbyte-cdk/python/airbyte_cdk/sources/utils/transform.py Outdated Show resolved Hide resolved
Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>
@grubberr
Copy link
Contributor Author

just merging without publishing , I will publish together with #16636

@grubberr grubberr merged commit 0d55a89 into master Sep 15, 2022
@grubberr grubberr deleted the grubberr/15405-airbyte_cdk_transform_error_message branch September 15, 2022 07:24
letiescanciano added a commit that referenced this pull request Sep 15, 2022
* master: (200 commits)
  🪟 🧹 Display returned error messages on replication view (#16280)
  🎉 Source mixpanel: Use "Retry-After" header for backoff (#16770)
  🐛 Source google ads: mark custom query fields required (#15858)
  🪟 🔧Remove useRouter hook (#16598)
  CDK: improve TypeTransformer to convert simple types to array of simple types (#16636)
  CDK: TypeTransformer - warning message more informative (#16695)
  Source MySQL: Add Python SAT to detect backwards breaking changes (#16445)
  remove eager (#16756)
  bump com.networknt:json-schema-validator to latest version (#16619)
  Remove Cloud from Kafka docs (#16753)
  Normalization Summaries table and read/write methods (#16655)
  comment out flaky test suite while it is being investigated (#16752)
  Update ConfigRepository to read protocol version (#16670)
  Use LOG4J2 to wrap connectors logs to JSON format (#15668)
  Update connector catalog (#16749)
  🪟 🎨 Remove feedback modal from UI (#16548)
  Add missing env var for Kube overlays (#16747)
  Prepare for React v18 upgrade (#16694)
  🪟 🐛 Fix direct job linking to work with pagination (#16517)
  Fix formatting (#16743)
  ...
robbinhan pushed a commit to robbinhan/airbyte that referenced this pull request Sep 29, 2022
)

Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>
jhammarstedt pushed a commit to jhammarstedt/airbyte that referenced this pull request Oct 31, 2022
)

Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CDK Connector Development Kit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants