Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
Iotdb
提交
d8dca059
I
Iotdb
项目概览
apache
/
Iotdb
大约 1 年 前同步成功
通知
25
Star
3344
Fork
916
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
I
Iotdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d8dca059
编写于
12月 31, 2020
作者:
B
Boris
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update test
上级
c4659ad0
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
1 addition
and
10 deletion
+1
-10
cli/src/main/java/org/apache/iotdb/tool/MonitorTool.java
cli/src/main/java/org/apache/iotdb/tool/MonitorTool.java
+1
-4
server/src/test/java/org/apache/iotdb/db/query/dataset/ListDataSetTest.java
...va/org/apache/iotdb/db/query/dataset/ListDataSetTest.java
+0
-2
server/src/test/java/org/apache/iotdb/db/query/dataset/SingleDataSetTest.java
.../org/apache/iotdb/db/query/dataset/SingleDataSetTest.java
+0
-4
未找到文件。
cli/src/main/java/org/apache/iotdb/tool/MonitorTool.java
浏览文件 @
d8dca059
...
@@ -48,12 +48,11 @@ public class MonitorTool {
...
@@ -48,12 +48,11 @@ public class MonitorTool {
private
static
String
url
;
private
static
String
url
;
private
static
final
String
LINE
=
"---- "
;
private
static
final
String
LINE
=
"---- "
;
private
static
final
String
DEFAULT_PASSWORD
=
"root"
;
public
static
void
main
(
String
[]
args
)
public
static
void
main
(
String
[]
args
)
throws
ParseException
,
IoTDBConnectionException
,
IOException
,
StatementExecutionException
{
throws
ParseException
,
IoTDBConnectionException
,
IOException
,
StatementExecutionException
{
int
port
=
6667
;
int
port
=
6667
;
String
password
=
null
;
String
password
=
"root"
;
Options
options
=
new
Options
();
Options
options
=
new
Options
();
Option
optHelp
=
new
Option
(
"help"
,
"help"
,
false
,
"print help message"
);
Option
optHelp
=
new
Option
(
"help"
,
"help"
,
false
,
"print help message"
);
optHelp
.
setRequired
(
false
);
optHelp
.
setRequired
(
false
);
...
@@ -83,8 +82,6 @@ public class MonitorTool {
...
@@ -83,8 +82,6 @@ public class MonitorTool {
}
}
if
(
commandLine
.
hasOption
(
"pw"
))
{
if
(
commandLine
.
hasOption
(
"pw"
))
{
password
=
commandLine
.
getOptionValue
(
"pw"
);
password
=
commandLine
.
getOptionValue
(
"pw"
);
}
else
{
password
=
DEFAULT_PASSWORD
;
}
}
Session
session
=
new
Session
(
"127.0.0.1"
,
port
,
"root"
,
password
);
Session
session
=
new
Session
(
"127.0.0.1"
,
port
,
"root"
,
password
);
session
.
open
();
session
.
open
();
...
...
server/src/test/java/org/apache/iotdb/db/query/dataset/ListDataSetTest.java
浏览文件 @
d8dca059
...
@@ -136,7 +136,5 @@ public class ListDataSetTest {
...
@@ -136,7 +136,5 @@ public class ListDataSetTest {
.
processQuery
(
plan
,
EnvironmentUtils
.
TEST_QUERY_CONTEXT
);
.
processQuery
(
plan
,
EnvironmentUtils
.
TEST_QUERY_CONTEXT
);
Assert
.
assertTrue
(
dataSet
instanceof
ListDataSet
);
Assert
.
assertTrue
(
dataSet
instanceof
ListDataSet
);
Assert
.
assertEquals
(
"[key, value]"
,
dataSet
.
getPaths
().
toString
());
Assert
.
assertEquals
(
"[key, value]"
,
dataSet
.
getPaths
().
toString
());
RowRecord
record
=
dataSet
.
next
();
Assert
.
assertEquals
(
"0\treadonly\tfalse"
,
record
.
toString
());
}
}
}
}
server/src/test/java/org/apache/iotdb/db/query/dataset/SingleDataSetTest.java
浏览文件 @
d8dca059
...
@@ -142,10 +142,6 @@ public class SingleDataSetTest {
...
@@ -142,10 +142,6 @@ public class SingleDataSetTest {
.
processQuery
(
plan
,
EnvironmentUtils
.
TEST_QUERY_CONTEXT
);
.
processQuery
(
plan
,
EnvironmentUtils
.
TEST_QUERY_CONTEXT
);
Assert
.
assertTrue
(
dataSet
instanceof
SingleDataSet
);
Assert
.
assertTrue
(
dataSet
instanceof
SingleDataSet
);
Assert
.
assertEquals
(
"[count]"
,
dataSet
.
getPaths
().
toString
());
Assert
.
assertEquals
(
"[count]"
,
dataSet
.
getPaths
().
toString
());
while
(
dataSet
.
hasNext
())
{
RowRecord
record
=
dataSet
.
next
();
Assert
.
assertEquals
(
"0\t0"
,
record
.
toString
());
}
}
}
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录