[ 
https://issues.apache.org/jira/browse/NIFI-1651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15203421#comment-15203421
 ] 

ASF GitHub Bot commented on NIFI-1651:
--------------------------------------

Github user pvillard31 commented on the pull request:

    https://github.com/apache/nifi/pull/291#issuecomment-198982574
  
    Sorry for the delay... I am on a different computer than usual and forgot 
to check the git property. Did a full clone again (so slow with airport 
wifi...) and checked the schema (looks OK to me). The git property solved most 
of the issues, but some are remaining:
    
    ```
    Running org.apache.nifi.processors.kite.TestAvroRecordConverter
    Tests run: 4, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.377 sec 
<<< FAILURE! - in org.apache.nifi.processors.kite.TestAvroRecordConverter
    
testDefaultConversion(org.apache.nifi.processors.kite.TestAvroRecordConverter)  
Time elapsed: 0.011 sec  <<< ERROR!
    
org.apache.nifi.processors.kite.AvroRecordConverter$AvroConversionException: 
Cannot convert 5.5 to double
            at 
org.apache.nifi.processors.kite.AvroRecordConverter.convertData(AvroRecordConverter.java:246)
            at 
org.apache.nifi.processors.kite.AvroRecordConverter.convert(AvroRecordConverter.java:170)
            at 
org.apache.nifi.processors.kite.TestAvroRecordConverter.testDefaultConversion(TestAvroRecordConverter.java:98)
    
    Running org.apache.nifi.processors.kite.TestConfigurationProperty
    Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.849 sec - 
in org.apache.nifi.processors.kite.TestConfigurationProperty
    Running org.apache.nifi.processors.kite.TestConvertAvroSchema
    Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.22 sec 
<<< FAILURE! - in org.apache.nifi.processors.kite.TestConvertAvroSchema
    testBasicConversion(org.apache.nifi.processors.kite.TestConvertAvroSchema)  
Time elapsed: 0.21 sec  <<< FAILURE!
    java.lang.AssertionError: Should convert 2 rows expected:<2> but was:<1>
            at org.junit.Assert.fail(Assert.java:88)
            at org.junit.Assert.failNotEquals(Assert.java:834)
            at org.junit.Assert.assertEquals(Assert.java:645)
            at 
org.apache.nifi.processors.kite.TestConvertAvroSchema.testBasicConversion(TestConvertAvroSchema.java:78)
    ```



> nifi-kite-processors unit tests broken on windows
> -------------------------------------------------
>
>                 Key: NIFI-1651
>                 URL: https://issues.apache.org/jira/browse/NIFI-1651
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: 0.5.0, 0.5.1
>         Environment: windows 10
>            Reporter: Tony Kurc
>            Assignee: Tony Kurc
>            Priority: Blocker
>             Fix For: 0.6.0
>
>
> {noformat}
> Failed tests:
>   TestInferAvroSchema.inferAvroSchemaFromCSVFile:133 FlowFile content differs 
> from input at byte 1 with input having value 10 and FlowFile having value 13
>   TestInferAvroSchema.inferAvroSchemaFromHeaderDefinitionOfCSVFile:77 
> FlowFile content differs from input at byte 1 with input having value 10 and 
> FlowFile having value 13
>   
> TestInferAvroSchema.inferAvroSchemaFromHeaderDefinitionOfCSVTabDelimitedFile:194
>  FlowFile content differs from input at byte 1 with input having value 10 and 
> FlowFile having value 13
>   TestInferAvroSchema.inferAvroSchemaFromJSONFile:105 expected:<{[
>   "type" : "record",
>   "name" : "contact",
>   "namespace" : "com.jeremydyer",
>   "fields" : [ {
>     "name" : "shapes",
>     "type" : {
>       "type" : "array",
>       "items" : {
>         "type" : "record",
>         "name" : "shapes",
>         "namespace" : "",
>         "fields" : [ {
>           "name" : "shape",
>           "type" : "string",
>           "doc" : "Type inferred from '\"circle\"'"
>         }, {
>           "name" : "color",
>           "type" : "string",
>           "doc" : "Type inferred from '\"red\"'"
>         }, {
>           "name" : "width",
>           "type" : "int",
>           "doc" : "Type inferred from '100'"
>         }, {
>           "name" : "height",
>           "type" : "int",
>           "doc" : "Type inferred from '100'"
>         } ]
>       }
>     },
>     "doc" : "Type inferred from 
> '[{\"shape\":\"circle\",\"color\":\"red\",\"width\":100,\"height\":100},{\"shape\":\"square\",\"color\":\"red\",\"width\":100,\"height\":100},{\"shape\":\"sphere\",\"color\":\"red\",\"width\":100,\"height\":100},{\"shape\":\"triangle\",\"color\":\"red\",\"width\":100,\"height\":100},{\"shape\":\"rectangle\",\"color\":\"red\",\"width\":100,\"height\":100}]'"
> ] } ]
> }> but was:<{[
>   "type" : "record",
>   "name" : "contact",
>   "namespace" : "com.jeremydyer",
>   "fields" : [ {
>     "name" : "shapes",
>     "type" : {
>       "type" : "array",
>       "items" : {
>         "type" : "record",
>         "name" : "shapes",
>         "namespace" : "",
>         "fields" : [ {
>           "name" : "shape",
>           "type" : "string",
>           "doc" : "Type inferred from '\"circle\"'"
>         }, {
>           "name" : "color",
>           "type" : "string",
>           "doc" : "Type inferred from '\"red\"'"
>         }, {
>           "name" : "width",
>           "type" : "int",
>           "doc" : "Type inferred from '100'"
>         }, {
>           "name" : "height",
>           "type" : "int",
>           "doc" : "Type inferred from '100'"
>         } ]
>       }
>     },
>     "doc" : "Type inferred from 
> '[{\"shape\":\"circle\",\"color\":\"red\",\"width\":100,\"height\":100},{\"shape\":\"square\",\"color\":\"red\",\"width\":100,\"height\":100},{\"shape\":\"sphere\",\"color\":\"red\",\"width\":100,\"height\":100},{\"shape\":\"triangle\",\"color\":\"red\",\"width\":100,\"height\":100},{\"shape\":\"rectangle\",\"color\":\"red\",\"width\":100,\"height\":100}]'"
>   } ]]
> }>
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to