Skip to content

JsonSerializationException when receive NaN values in the response #12

Description

@stelmukhov

Prerequisites

Steps to Reproduce

  1. Create two empty tables:
    create table memory.default.source_table (id bigint)
    create table memory.default.target_table (id bigint)
  2. Try to insert data from one table to another:
insert into memory.default.target_table (id) select id from memory.default.target_table

Executing the above query results in the following error: Newtonsoft.Json.JsonSerializationException: Error converting value "NaN" to type 'System.Int64'. Path 'stats.progressPercentage', line 1, position 472.

This occurs because Trino can sometimes return NaN for progressPercentage and runningPercentage, which leads to deserialization issues

Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions