Uploaded image for project: 'Talend Component Kit'
  1. Talend Component Kit
  2. TCOMP-1031

DiscoverSchema parameters are not correctly mapped in Studio GuessSchema runtime

Apply templateInsert Lucidchart Diagram
    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 1.1.0
    • None
    • None
    • All
    • Small

    Description

      need to fix mapping in buildActionConfig()
      https://github.com/Talend/component-runtime/blob/master/component-studio/component-runtime-di/src/main/java/org/talend/sdk/component/runtime/di/schema/TaCoKitGuessSchema.java#L188-L190

      The problem appears, when dataset is not root Configuration.
      Consider following configuration option:
      config.dataset.someProp

      Dataset prefix will be "dataset"
      But during resolving properties from configuration

      return configuration.entrySet().stream().collect(toMap(
                      e -> prefix + "." + e.getKey().substring(dotIndex + 1, e.getKey().length()), Map.Entry::getValue));
      

      it will create a path like: dataset.dataset.someProp

      Attachments

        There are no Sub-Tasks for this issue.

        Activity

          People

            Unassigned Unassigned
            igonchar Ivan Gonchar
            Ivan Gonchar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: