[ 
https://issues.apache.org/jira/browse/IGNITE-22873?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Maksim Zhuravkov reassigned IGNITE-22873:
-----------------------------------------

    Assignee: Maksim Zhuravkov

> InvalidTypeException should not include a value in its error message
> --------------------------------------------------------------------
>
>                 Key: IGNITE-22873
>                 URL: https://issues.apache.org/jira/browse/IGNITE-22873
>             Project: Ignite
>          Issue Type: Bug
>          Components: sql
>            Reporter: Maksim Zhuravkov
>            Assignee: Maksim Zhuravkov
>            Priority: Major
>              Labels: ignite-3
>
> 1. Create a table (int, string).
> 2. Attempt to write a multi megabyte string. 
> 3. Error is not returned immediately. 
> This happens because Column::validate includes a value that caused a 
> validation error into a message.
> Example:
> {noformat}
>   @Test
>     public void test() {
>         igniteSql().execute(null, "CREATE TABLE t (id INT PRIMARY KEY, data 
> VARCHAR)").close();
>         Table table = table("T");
>         KeyValueView<Tuple, Tuple> kv = table.keyValueView();
>         String s = "a".repeat(50*1024*1024);
>         kv.put(null, Tuple.create().set("id", 1), Tuple.create().set("data", 
> s));
>     }
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to