Skip to content

Doc: Describe proper use of long values in expressions #373

@psmf22

Description

@psmf22

The documentation currently does not describe how to properly filter on long values.
Using the syntax described for numeric values leads to the following error:

.\fcli.exe util sample-data list -q "longValue==9223372036854775807"
Invalid value for option '--query': Expression cannot be parsed; please check expression syntax
Message: EL1035E: The value '9223372036854775807' cannot be parsed as an int
Source: longValue==9223372036854775807

This seems to be caused by numbers being treated as integers by default. To achieve a proper comparison the number has to be followed by the letter "L". Both uppercase and lowercase notations work.

Working example:

.\fcli.exe util sample-data list -q "longValue==9223372036854775807L"

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort:lowEasy to implement/fixfcli-usageImprovements or additions to documentation, including command usage headers/descriptionsprio:mediumMedium priority

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions