question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Renaming Postgres step parameter causes Data Mapper issues

See original GitHub issue

This is a…


[ ] Feature request
[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report  
[ ] Documentation issue or request

Description

If the SQL query in a Postgres step is changed so that an existing :# parameter is renamed, and when that particular parameter was already mapped in a previous Data Mapper step, a data type mismatch warning is shown on the Postgres step (understandably, since the input data changed). Opening the Data Mapper step shows an error about missing field (again, understandable). However, changing the mapping from the old to the new field name does not make the mismatch warning go away. In fact, the only way to make it go away is to rename the parameter back to its old name (a nuance here is that after renaming to the old name, no warning is shown, even though the mapping now references a non-existent parameter, with the new name).

Not sure this is only happening with the Postgres step, haven’t tried any other.

Steps to Reproduce

  1. Create a new API Provider from the Todo API, start implementing the Fetch Task operation
  2. Add a Postgres step, set the SQL to SELECT * FROM todo WHERE id = :#id
  3. Add a Data Mapper step between the start and Postgres steps, map id to id
  4. Open the Postgres step again, change the :#id to something else
  5. Observe the data type mismatch warning
  6. Try to fix the mapping

Screenshots

screenshot_2018-10-16_15-44-25 screenshot_2018-10-16_15-44-44 screenshot_2018-10-16_15-45-04

screenshot_2018-10-16_15-45-17 screenshot_2018-10-16_15-45-54 screenshot_2018-10-16_15-46-13

screenshot_2018-10-16_15-46-29

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
heiko-brauncommented, Oct 25, 2018

Not for 7.2, but we can explore the UX approaches in the 7.2 time frame and aim for implementation changes in 7.3

1reaction
gashcrumbcommented, Oct 16, 2018

Yep, in this case you just need to delete the data mapper step after changing the type, then add a new data mapper step. So I wouldn’t call it a blocker.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Documentation: 13: E.10. Release 13 - PostgreSQL
Rename configuration parameter wal_keep_segments to wal_keep_size (Fujii ... had a bug that could cause data loss during crash recovery.
Read more >
Troubleshoot connector and format issues in mapping data flows
Learn how to troubleshoot data flow problems related to connector and format in Azure Data Factory.
Read more >
Using a PostgreSQL database as a target for AWS Database ...
You can migrate data to PostgreSQL databases using AWS DMS, either from another PostgreSQL database or from one of the other supported databases....
Read more >
Entity Framework Migrations renaming tables and columns
I think you only need one migration, but still two steps. 1. Add attribute and create "rename migration" 2. Just change the property...
Read more >
Debezium connector for PostgreSQL
The values of the id , type , and data parameters in the command correspond to ... The connector uses the following convention...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found