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 DiagramXMLWordPrintable

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

      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

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

              Created:
              Updated:
              Resolved: