Defining Data Type for a property

Issue #38 closed
Murray Bryant created an issue

I am getting an error when creating a property on a node.

The data is a mix of numeric and text in the column.

The error is

Thread 41: Values for result_text have inconsistent types. Expected type: Long, but current value is "3.34" at row 266518

Is is possible to force the data type of the property?

Comments (4)

  1. Vince Bickers repo owner

    Yes, you can use one of the built-in converters. In this case, your data is actually real-valued but the first few rows looked like integers, which is why you get the warning. So:

    "properties" : [
       { "name": "result_text",  "convert": "real" }
    ]
    
  2. Log in to comment