This topic describes the syntax of the --incrementalUpdate flag.
./data_processing_CLI --incrementalUpdate <dsKey> <filter>or
./data_processing_CLI --incrementalUpdate <dsKey> <filter> --table <tableName>or
./data_processing_CLI --incrementalUpdate <dsKey> <filter> --table <tableName> --database <dbName>
The dsKey value is available in the Data Set Key property in Studio. For details, see Obtaining data set keys.
"columnName operator filterValue"where:
You should enclose the entire filter predicate in either double quotes or single quotes. If you need to use quotes within the filter predicate, use the other quotation format. For example, if you use double quotes to enclose the filter predicate, then use single quotes within the predicate itself.
columnName operator unix_timestamp(dateValue) columnName operator unix_timestamp(dateValue, dateFormat)
// date-time format: yyyy-MM-dd HH:mm:ss // time-only format: HH:mm:ss
The date-time format is used for columns that map to Dgraph mdex:dateTime attributes, while the time-only format is used for columns that map to Dgraph mdex:time attributes.
If dateFormat is specified, use a pattern described here: http://docs.oracle.com/javase/tutorial/i18n/format/simpleDateFormat.html
./data_processing_CLI --incrementalUpdate edp_cli_edp_f35ddabb-f011 "birthyear > 1970"In the example, only the records of persons born after 1970 are processed.
./data_processing_CLI --incrementalUpdate edp_cli_edp_f35ddabb-f011-427f-b4ff-a2e6e3f3f016_12266
"factsales_shipdatekey_date >= unix_timestamp('2006-01-01 00:00:00', 'yyy-MM-dd HH:mm:ss')"
./data_processing_CLI --incrementalUpdate edp_cli_edp_a4d38974-3bab-4ced-8166-9b0f46a59d2c_10163
"creation_date >= unix_timestamp('2015-06-01 20:00:00', 'yyyy-MM-dd HH:mm:ss')"
./data_processing_CLI --incrementalUpdate edp_cli_edp_a4d38974-3bab-4ced-8166-9b0f46a59d2c_10163
"claim_date >= unix_timestamp('2000-01-01')"
16:41:29.375 main ERROR: Failed to parse date / time value '2000-01-01' using the format 'yyyy-MM-dd HH:mm:ss'