Github user patricker commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/1281#discussion_r90278625
  
    --- Diff: 
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/AbstractDatabaseFetchProcessor.java
 ---
    @@ -161,7 +161,7 @@
                     .description("The type/flavor of database, used for 
generating database-specific code. In many cases the Generic type "
                             + "should suffice, but some databases (such as 
Oracle) require custom SQL clauses. ")
                     .allowableValues(dbAdapters.keySet())
    -                
.defaultValue(dbAdapters.values().stream().findFirst().get().getName())
    +                .defaultValue("Generic")
    --- End diff --
    
    @mattyb149 In case your curious, I found that `Generic` may or may not be 
selected as the default after you start adding new DBAdapters. I ran into this 
exact issue when I added a new `Hive` DBAdapter, so I just hard coded it rather 
then having the default value possibly change.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to