Skip to content

read_int fails for int >=2^31 #7805

@MatthewMah

Description

@MatthewMah

The function read_int fails with file content "2147483648" (2^31) or larger, despite WDL Int being 64 bits.

Minimal WDL example:

version 1.0

workflow intake{
	input{
		File too_big
	}
	call A{ input:
		too_big = too_big
	}
}

task A{
	input{
		File too_big
	}
	Int x = read_int(too_big)
	
	command<<<
		echo "~{x}"
	>>>
}

Running in Cromwell 90:

Failed to evaluate input 'x' (reason 1 of 1): Failed to read_int("size_file") (reason 1 of 1): For input string: "2147483648"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions