Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop table #456

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/case_failed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Case Failed
about: Report a failed case.
title: "[2023 Case Failed]: "
labels: case_failed
---

**base on**: <!-- commit ID -->

**description**: description <!-- bug desc, code block, diff result, how to reproduce, reasons -->
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/others.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
name: Others
about: Other issues.
title: "[2023 Others]: "
labels: others
---

**description**: description
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/topic.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Topic
about: I want to do a topic.
title: "[2023 Topic]: "
labels: topic
---

**topic**: <!-- topic name or topic url -->

**description**: description
51 changes: 47 additions & 4 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"program": "${workspaceFolder}/${defaultBuildTask}/bin/observer",
"args": ["-f", "${workspaceFolder}/etc/observer.ini", "-P", "cli"],
"cwd": "${workspaceFolder}/${defaultBuildTask}/",
"externalConsole":true,
"internalConsoleOptions": "openOnSessionStart",
"osx": {
"MIMode": "lldb",
"externalConsole":true
"MIMode": "lldb"
}
},
{
Expand All @@ -24,6 +24,49 @@
"program": "${workspaceFolder}/${defaultBuildTask}/bin/observer",
"args": ["-f", "${workspaceFolder}/etc/observer.ini", "-P", "cli"],
"cwd": "${workspaceFolder}/${defaultBuildTask}/"
}
},
{
"name": "(gdb) Attach",
"type": "cppdbg",
"request": "attach",
"program": "${workspaceFolder}/${defaultBuildTask}/bin/observer",
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Set Disassembly Flavor to Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
]
},
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/${defaultBuildTask}/bin/observer",
"args": ["-f", "${workspaceFolder}/etc/observer.ini", "-P", "cli"],
"cwd": "${workspaceFolder}/${defaultBuildTask}/",
"stopAtEntry": false,
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Set Disassembly Flavor to Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
]
},
]
}
}
129 changes: 123 additions & 6 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,144 @@
{
"label": "init",
"type": "shell",
"command": "sudo -E env PATH=$PATH bash ${workspaceFolder}/build.sh init"
"command": "env PATH=$PATH bash ${workspaceFolder}/build.sh init",
"problemMatcher": [],
"presentation": {
"focus": true,
},
},
{
"label": "build_debug",
"type": "shell",
"command": "bash build.sh debug",
"command": "bash ${workspaceFolder}/build.sh debug",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
},
"presentation": {
"focus": true,
},
},
{
"label": "build_release",
"type": "shell",
"command": "bash build.sh release"
"command": "bash ${workspaceFolder}/build.sh release",
"problemMatcher": [],
"presentation": {
"focus": true,
},
},
{
"label": "gen_parser",
"type": "shell",
"command": "cd ${workspaceFolder}/src/observer/sql/parser && bash gen_parser.sh"
"command": "cd ${workspaceFolder}/src/observer/sql/parser && bash gen_parser.sh",
"problemMatcher": [],
"presentation": {
"focus": true,
},
},
{
"label": "make",
"type": "shell",
"command": "bash ${workspaceFolder}/build.sh make",
"problemMatcher": [],
"presentation": {
"focus": true,
},
},
{
"label": "test all cases",
"type": "shell",
"command": "bash ${workspaceFolder}/build.sh test",
"group": {
"kind": "test",
"isDefault": true
},
"problemMatcher": [],
"presentation": {
"focus": true,
},
},
{
"label": "test single case",
"type": "shell",
"command": "bash ${workspaceFolder}/build.sh test ${input:single_test_case}",
"problemMatcher": [],
"presentation": {
"focus": true,
},
},
{
"label": "test some cases",
"type": "shell",
"command": "bash ${workspaceFolder}/build.sh test ${input:test_some_cases}",
"problemMatcher": [],
"presentation": {
"focus": true,
},
},
{
"label": "diff single case",
"type": "shell",
"command": "bash ${workspaceFolder}/build.sh diff ${input:single_test_case} -u",
"problemMatcher": [],
"presentation": {
"focus": true,
},
},
{
"label": "unittest",
"type": "shell",
"command": "bash ${workspaceFolder}/build.sh unittest",
"problemMatcher": [],
"presentation": {
"focus": true,
},
},
{
"label": "Run observer",
"type": "shell",
"command": "/root/miniob/build/bin/observer -s/root/miniob-test.sock -f /root/miniob/etc/observer.ini"
},
{
"label": "Run obclient",
"type": "shell",
"command": "/root/miniob/build/bin/obclient -s/root/miniob-test.sock"
},
],
"inputs": [
{
"type": "pickString",
"id": "single_test_case",
"description": "Please pick one case",
"options": [
"basic",
"primary-aggregation-func",
"primary-complex-sub-query",
"primary-date",
"primary-drop-table",
"primary-expression",
"primary-group-by",
"primary-insert",
"primary-join-tables",
"primary-multi-index",
"primary-null",
"primary-order-by",
"primary-select-meta",
"primary-select-tables",
"primary-simple-sub-query",
"primary-text",
"primary-unique",
"primary-update",
],
"default": "basic"
},
{
"type": "promptString",
"id": "test_some_cases",
"description": "Please enter some test cases with separated by commas",
"default": "basic,primary-select-meta"
}
]
}
}
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
add_definitions("-Wall -g")
cmake_minimum_required(VERSION 3.10)
set(CMAKE_CXX_STANDARD 20)

Expand Down
Loading
Loading