Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-7810

Improvement for 'Translate Field Names' for PutDatabaseRecord and ConvertJSONToSQL

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Extensions
    • None

    Description

      'Translate Field Names' in PutDatabaseRecord and ConvertJSONToSQL can help us map the field and column by

      private static String normalizeColumnName(final String colName, final boolean translateColumnNames) {
              return translateColumnNames ? colName.toUpperCase().replace("_", "") : colName;
       }
      

      but this rule `colName.toUpperCase().replace("_", "")` is fixed. I think maybe we can define the rule using Expression Language.

      It's vary useful for 'Translate Field Names', but sometimes, there will be column names such as 'AB' and 'A_B' in the table, and `colName.toUpperCase().replace("_", "")` can not help

      Attachments

        Issue Links

          Activity

            People

              Ku_Cheng ZhangCheng
              Ku_Cheng ZhangCheng
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m