Skip to content

HTTP API: INSERT#858

Merged
JinHai-CN merged 10 commits intoinfiniflow:mainfrom
JinHai-CN:fix56
Mar 22, 2024
Merged

HTTP API: INSERT#858
JinHai-CN merged 10 commits intoinfiniflow:mainfrom
JinHai-CN:fix56

Conversation

@JinHai-CN
Copy link
Copy Markdown
Contributor

What problem does this PR solve?

infiniflow=> create table t1(c1 int);
 OK 
----
(0 rows)
curl --request POST --url localhost:23820/databases/default/tables/t1/docs --header 'accept: application/json' --header 'content-type: application/json' --data '   [    
        {
            "c1": "1+1"
        },
        {
            "c1": "1+2"
        }
    ] '
infiniflow=> select * from t1;
 c1 
----
  2
  3
(2 rows)
curl --request POST --url localhost:23820/databases/default/tables/t1/docs --header 'accept: application/json' --header 'content-type: application/json' --data '   [    
        {
            "c1": 199  
        },
        {
            "c1": 99   
        }
    ] '
infiniflow=> select * from t1;
 c1  
-----
   2
   3
 199
  99
(4 rows)

Type of change

  • New Feature (non-breaking change which adds functionality)

@JinHai-CN JinHai-CN added the ci PR can be test label Mar 22, 2024
@JinHai-CN JinHai-CN mentioned this pull request Mar 22, 2024
23 tasks
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
@JinHai-CN JinHai-CN merged commit 1b78a5b into infiniflow:main Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci PR can be test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant