Skip to content

Commit

Permalink
Revert "fix: update data type to Int64 for detect schema (#83)" (#86)
Browse files Browse the repository at this point in the history
This reverts commit 4fbf8b4.
  • Loading branch information
nitisht authored Dec 18, 2024
1 parent 4fbf8b4 commit 015fbd7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 192 deletions.
191 changes: 0 additions & 191 deletions model.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,197 +265,6 @@ const FlogJsonSchema string = `{
],
"metadata": {}
}`
const DetectSchema_SchemaBody string = `{
"fields": [
{
"name": "app_meta",
"data_type": "Utf8",
"nullable": true,
"dict_id": 0,
"dict_is_ordered": false,
"metadata": {}
},
{
"name": "device_id",
"data_type": "Int64",
"nullable": true,
"dict_id": 0,
"dict_is_ordered": false,
"metadata": {}
},
{
"name": "host",
"data_type": "Utf8",
"nullable": true,
"dict_id": 0,
"dict_is_ordered": false,
"metadata": {}
},
{
"name": "level",
"data_type": "Utf8",
"nullable": true,
"dict_id": 0,
"dict_is_ordered": false,
"metadata": {}
},
{
"name": "location",
"data_type": "Utf8",
"nullable": true,
"dict_id": 0,
"dict_is_ordered": false,
"metadata": {}
},
{
"name": "message",
"data_type": "Utf8",
"nullable": true,
"dict_id": 0,
"dict_is_ordered": false,
"metadata": {}
},
{
"name": "os",
"data_type": "Utf8",
"nullable": true,
"dict_id": 0,
"dict_is_ordered": false,
"metadata": {}
},
{
"name": "p_metadata",
"data_type": "Utf8",
"nullable": true,
"dict_id": 0,
"dict_is_ordered": false,
"metadata": {}
},
{
"name": "p_tags",
"data_type": "Utf8",
"nullable": true,
"dict_id": 0,
"dict_is_ordered": false,
"metadata": {}
},
{
"name": "p_timestamp",
"data_type": {
"Timestamp": [
"Millisecond",
null
]
},
"nullable": true,
"dict_id": 0,
"dict_is_ordered": false,
"metadata": {}
},
{
"name": "process_id",
"data_type": "Int64",
"nullable": true,
"dict_id": 0,
"dict_is_ordered": false,
"metadata": {}
},
{
"name": "request_body",
"data_type": "Utf8",
"nullable": true,
"dict_id": 0,
"dict_is_ordered": false,
"metadata": {}
},
{
"name": "response_time",
"data_type": "Int64",
"nullable": true,
"dict_id": 0,
"dict_is_ordered": false,
"metadata": {}
},
{
"name": "runtime",
"data_type": "Utf8",
"nullable": true,
"dict_id": 0,
"dict_is_ordered": false,
"metadata": {}
},
{
"name": "session_id",
"data_type": "Utf8",
"nullable": true,
"dict_id": 0,
"dict_is_ordered": false,
"metadata": {}
},
{
"name": "source_time",
"data_type": {
"Timestamp": [
"Millisecond",
null
]
},
"nullable": true,
"dict_id": 0,
"dict_is_ordered": false,
"metadata": {}
},
{
"name": "status_code",
"data_type": "Int64",
"nullable": true,
"dict_id": 0,
"dict_is_ordered": false,
"metadata": {}
},
{
"name": "timezone",
"data_type": "Utf8",
"nullable": true,
"dict_id": 0,
"dict_is_ordered": false,
"metadata": {}
},
{
"name": "user_agent",
"data_type": "Utf8",
"nullable": true,
"dict_id": 0,
"dict_is_ordered": false,
"metadata": {}
},
{
"name": "user_id",
"data_type": "Int64",
"nullable": true,
"dict_id": 0,
"dict_is_ordered": false,
"metadata": {}
},
{
"name": "uuid",
"data_type": "Utf8",
"nullable": true,
"dict_id": 0,
"dict_is_ordered": false,
"metadata": {}
},
{
"name": "version",
"data_type": "Utf8",
"nullable": true,
"dict_id": 0,
"dict_is_ordered": false,
"metadata": {}
}
],
"metadata": {}
}`

const SchemaBody string = `{
"fields": [
Expand Down
2 changes: 1 addition & 1 deletion quest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func TestSmokeCreateStream(t *testing.T) {
}

func TestSmokeDetectSchema(t *testing.T) {
DetectSchema(t, NewGlob.QueryClient, SampleJson, DetectSchema_SchemaBody)
DetectSchema(t, NewGlob.QueryClient, SampleJson, SchemaBody)
}

func TestSmokeIngestEventsToStream(t *testing.T) {
Expand Down

0 comments on commit 015fbd7

Please sign in to comment.