Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jobily
Questdb
提交
8f67d0ab
Q
Questdb
项目概览
jobily
/
Questdb
10 个月 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Q
Questdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
8f67d0ab
编写于
3月 03, 2021
作者:
F
Francesco
提交者:
GitHub
3月 03, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(maven): Make output directory configurable (#835)
上级
eb67491a
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
18 addition
and
12 deletion
+18
-12
benchmarks/pom.xml
benchmarks/pom.xml
+2
-0
core/pom.xml
core/pom.xml
+3
-0
core/src/main/java/io/questdb/cairo/sql/InsertMethod.java
core/src/main/java/io/questdb/cairo/sql/InsertMethod.java
+3
-1
core/src/main/java/io/questdb/cairo/sql/VirtualRecord.java
core/src/main/java/io/questdb/cairo/sql/VirtualRecord.java
+1
-1
core/src/main/java/io/questdb/cutlass/pgwire/PGConnectionContext.java
...n/java/io/questdb/cutlass/pgwire/PGConnectionContext.java
+1
-1
core/src/main/java/io/questdb/griffin/SqlCompiler.java
core/src/main/java/io/questdb/griffin/SqlCompiler.java
+2
-1
core/src/main/java/io/questdb/std/Unsafe.java
core/src/main/java/io/questdb/std/Unsafe.java
+2
-4
core/src/test/java/io/questdb/cairo/TableWriterTest.java
core/src/test/java/io/questdb/cairo/TableWriterTest.java
+1
-1
core/src/test/java/io/questdb/griffin/CopyTest.java
core/src/test/java/io/questdb/griffin/CopyTest.java
+3
-3
未找到文件。
benchmarks/pom.xml
浏览文件 @
8f67d0ab
...
...
@@ -68,6 +68,7 @@
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<benchmarks.outputPath>
target
</benchmarks.outputPath>
<!--
JMH version to use with this project.
...
...
@@ -86,6 +87,7 @@
</properties>
<build>
<directory>
${benchmarks.outputPath}
</directory>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
...
...
core/pom.xml
浏览文件 @
8f67d0ab
...
...
@@ -30,6 +30,7 @@
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<outputPath>
target
</outputPath>
<nodejs.npm.cmd>
npm
</nodejs.npm.cmd>
<nodejs.version>
v12.16.2
</nodejs.version>
<runtime.assembly>
none
</runtime.assembly>
...
...
@@ -76,6 +77,7 @@
</distributionManagement>
<build>
<directory>
${outputPath}
</directory>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
...
...
@@ -157,6 +159,7 @@
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-deploy-plugin
</artifactId>
<version>
2.8.2
</version>
<configuration>
<skip>
true
</skip>
</configuration>
...
...
core/src/main/java/io/questdb/cairo/sql/InsertMethod.java
浏览文件 @
8f67d0ab
...
...
@@ -29,7 +29,9 @@ import io.questdb.cairo.TableWriter;
import
java.io.Closeable
;
public
interface
InsertMethod
extends
Closeable
{
// return inserted row count
/**
* @return inserted row count
*/
long
execute
();
void
commit
();
...
...
core/src/main/java/io/questdb/cairo/sql/VirtualRecord.java
浏览文件 @
8f67d0ab
...
...
@@ -161,7 +161,7 @@ public class VirtualRecord implements ColumnTypes, DelegatingRecord {
@Override
public
int
getColumnType
(
int
columnIndex
)
{
return
functions
.
getQuick
(
columnIndex
).
getType
();
return
getFunction
(
columnIndex
).
getType
();
}
public
ObjList
<?
extends
Function
>
getFunctions
()
{
...
...
core/src/main/java/io/questdb/cutlass/pgwire/PGConnectionContext.java
浏览文件 @
8f67d0ab
...
...
@@ -1707,7 +1707,7 @@ public class PGConnectionContext implements IOContext, Mutable, WriterSource {
this
.
username
=
e
.
toImmutable
();
}
LOG
.
info
().
$
(
"propert
r
y [name="
).
$
(
dbcs
.
of
(
nameLo
,
nameHi
)).
$
(
", value="
).
$
(
dbcs
.
of
(
valueLo
,
valueHi
)).
$
(
']'
).
$
();
LOG
.
info
().
$
(
"property [name="
).
$
(
dbcs
.
of
(
nameLo
,
nameHi
)).
$
(
", value="
).
$
(
dbcs
.
of
(
valueLo
,
valueHi
)).
$
(
']'
).
$
();
}
characterStore
.
clear
();
...
...
core/src/main/java/io/questdb/griffin/SqlCompiler.java
浏览文件 @
8f67d0ab
...
...
@@ -1761,7 +1761,8 @@ public class SqlCompiler implements Closeable {
throw
SqlException
.
$
(
tableName
.
position
,
"literal expected"
);
}
if
(
model
.
getColumnSet
().
size
()
>
0
&&
model
.
getColumnSet
().
size
()
!=
model
.
getColumnValues
().
size
())
{
int
columnSetSize
=
model
.
getColumnSet
().
size
();
if
(
columnSetSize
>
0
&&
columnSetSize
!=
model
.
getColumnValues
().
size
())
{
throw
SqlException
.
$
(
model
.
getColumnPosition
(
0
),
"value count does not match column count"
);
}
...
...
core/src/main/java/io/questdb/std/Unsafe.java
浏览文件 @
8f67d0ab
...
...
@@ -100,11 +100,9 @@ public final class Unsafe {
public
static
long
getFieldOffset
(
Class
<?>
clazz
,
String
name
)
{
try
{
Field
f
=
clazz
.
getDeclaredField
(
name
);
// f.setAccessible(true);
return
UNSAFE
.
objectFieldOffset
(
f
);
return
UNSAFE
.
objectFieldOffset
(
clazz
.
getDeclaredField
(
name
));
}
catch
(
NoSuchFieldException
e
)
{
throw
new
RuntimeException
(
e
);
throw
new
ExceptionInInitializerError
(
e
);
}
}
...
...
core/src/test/java/io/questdb/cairo/TableWriterTest.java
浏览文件 @
8f67d0ab
...
...
@@ -1747,7 +1747,7 @@ public class TableWriterTest extends AbstractCairoTest {
populateTable
(
new
FilesFacadeImpl
()
{
@Override
public
long
getPageSize
()
{
return
super
.
getPageSize
()
*
super
.
getPageSize
()
;
return
super
.
getPageSize
()
*
500
;
}
},
PartitionBy
.
MONTH
);
}
...
...
core/src/test/java/io/questdb/griffin/CopyTest.java
浏览文件 @
8f67d0ab
...
...
@@ -435,7 +435,7 @@ public class CopyTest extends AbstractCairoTest {
public
void
testSimpleCopy
()
throws
Exception
{
assertMemoryLeak
(()
->
{
compiler
.
compile
(
"copy x from '/
target/test-class
es/csv/test-import.csv'"
,
sqlExecutionContext
);
compiler
.
compile
(
"copy x from '/
src/test/resourc
es/csv/test-import.csv'"
,
sqlExecutionContext
);
final
String
expected
=
"StrSym\tIntSym\tIntCol\tDoubleCol\tIsoDate\tFmt1Date\tFmt2Date\tPhone\tboolean\tlong\n"
+
"CMP1\t1\t6992\t2.12060110410675\t2015-01-05T19:15:09.000Z\t2015-01-05T19:15:09.000Z\t2015-01-05T00:00:00.000Z\t6992\ttrue\t4952743\n"
+
...
...
@@ -581,7 +581,7 @@ public class CopyTest extends AbstractCairoTest {
public
void
testSimpleCopyForceHeader
()
throws
Exception
{
assertMemoryLeak
(()
->
{
compiler
.
compile
(
"copy x from '/
target/test-class
es/csv/test-numeric-headers.csv' with header true"
,
sqlExecutionContext
);
compiler
.
compile
(
"copy x from '/
src/test/resourc
es/csv/test-numeric-headers.csv' with header true"
,
sqlExecutionContext
);
final
String
expected
=
"type\tvalue\tactive\tdesc\t_1\n"
+
"ABC\txy\ta\tbrown fox jumped over the fence\t10\n"
+
...
...
@@ -601,7 +601,7 @@ public class CopyTest extends AbstractCairoTest {
public
void
testSimpleCopyForceHeader2
()
throws
Exception
{
assertMemoryLeak
(()
->
{
compiler
.
compile
(
"copy x from '/
target/test-class
es/csv/test-numeric-headers.csv' with header false"
,
sqlExecutionContext
);
compiler
.
compile
(
"copy x from '/
src/test/resourc
es/csv/test-numeric-headers.csv' with header false"
,
sqlExecutionContext
);
final
String
expected
=
"f0\tf1\tf2\tf3\tf4\n"
+
"type\tvalue\tactive\tdesc\t1\n"
+
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录