embulk-filter-calcite 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/CHANGELOG.md +12 -0
- data/README.md +7 -0
- data/build.gradle +7 -11
- data/config/checkstyle/README.md +6 -0
- data/config/checkstyle/checkstyle-suppressions.xml +8 -0
- data/config/checkstyle/checkstyle.xml +195 -104
- data/config/checkstyle/google_checks.xml +218 -0
- data/src/main/java/org/embulk/filter/calcite/CalciteFilterPlugin.java +111 -118
- data/src/main/java/org/embulk/filter/calcite/PageConverter.java +19 -36
- data/src/main/java/org/embulk/filter/calcite/adapter/page/PageEnumerator.java +14 -15
- data/src/main/java/org/embulk/filter/calcite/adapter/page/PageFieldType.java +9 -15
- data/src/main/java/org/embulk/filter/calcite/adapter/page/PageSchema.java +4 -9
- data/src/main/java/org/embulk/filter/calcite/adapter/page/PageSchemaFactory.java +7 -8
- data/src/main/java/org/embulk/filter/calcite/adapter/page/PageTable.java +23 -14
- data/src/main/java/org/embulk/filter/calcite/getter/FilterColumnGetterFactory.java +23 -11
- data/src/main/java/org/embulk/filter/calcite/getter/FilterTimestampColumnGetter.java +10 -14
- data/src/test/java/org/embulk/filter/calcite/TestCalciteFilterPlugin.java +81 -55
- data/src/test/resources/org/embulk/filter/calcite/test/test_timestamp_conv_expected.csv +4 -0
- data/src/test/resources/org/embulk/filter/calcite/test/test_timestamp_conv_filter.yml +3 -0
- data/src/test/resources/org/embulk/filter/calcite/test/test_timestamp_conv_in.yml +18 -0
- data/src/test/resources/org/embulk/filter/calcite/test/test_timestamp_conv_source.csv +5 -0
- metadata +14 -7
- data/config/checkstyle/default.xml +0 -108
@@ -0,0 +1,18 @@
|
|
1
|
+
type: file
|
2
|
+
parser:
|
3
|
+
charset: UTF-8
|
4
|
+
newline: LF
|
5
|
+
type: csv
|
6
|
+
delimiter: ','
|
7
|
+
quote: '"'
|
8
|
+
escape: '"'
|
9
|
+
trim_if_not_quoted: false
|
10
|
+
skip_header_lines: 1
|
11
|
+
allow_extra_columns: false
|
12
|
+
allow_optional_columns: false
|
13
|
+
columns:
|
14
|
+
- {name: id, type: long}
|
15
|
+
- {name: account, type: long}
|
16
|
+
- {name: time, type: timestamp, format: '%Y-%m-%d %H:%M:%S'}
|
17
|
+
- {name: purchase, type: string}
|
18
|
+
- {name: comment, type: string}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk-filter-calcite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Muga Nishizawa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -50,8 +50,10 @@ files:
|
|
50
50
|
- CHANGELOG.md
|
51
51
|
- README.md
|
52
52
|
- build.gradle
|
53
|
+
- config/checkstyle/README.md
|
54
|
+
- config/checkstyle/checkstyle-suppressions.xml
|
53
55
|
- config/checkstyle/checkstyle.xml
|
54
|
-
- config/checkstyle/
|
56
|
+
- config/checkstyle/google_checks.xml
|
55
57
|
- gradle/wrapper/gradle-wrapper.jar
|
56
58
|
- gradle/wrapper/gradle-wrapper.properties
|
57
59
|
- gradlew
|
@@ -79,6 +81,10 @@ files:
|
|
79
81
|
- src/test/resources/org/embulk/filter/calcite/test/test_string_ops_filter.yml
|
80
82
|
- src/test/resources/org/embulk/filter/calcite/test/test_string_ops_in.yml
|
81
83
|
- src/test/resources/org/embulk/filter/calcite/test/test_string_ops_source.csv
|
84
|
+
- src/test/resources/org/embulk/filter/calcite/test/test_timestamp_conv_expected.csv
|
85
|
+
- src/test/resources/org/embulk/filter/calcite/test/test_timestamp_conv_filter.yml
|
86
|
+
- src/test/resources/org/embulk/filter/calcite/test/test_timestamp_conv_in.yml
|
87
|
+
- src/test/resources/org/embulk/filter/calcite/test/test_timestamp_conv_source.csv
|
82
88
|
- src/test/resources/org/embulk/filter/calcite/test/test_where_int_cond_expected.csv
|
83
89
|
- src/test/resources/org/embulk/filter/calcite/test/test_where_int_cond_filter.yml
|
84
90
|
- src/test/resources/org/embulk/filter/calcite/test/test_where_int_cond_in.yml
|
@@ -90,8 +96,8 @@ files:
|
|
90
96
|
- classpath/aggdesigner-algorithm-6.0.jar
|
91
97
|
- classpath/avatica-core-1.9.0.jar
|
92
98
|
- classpath/avatica-metrics-1.9.0.jar
|
93
|
-
- classpath/calcite-core-1.
|
94
|
-
- classpath/calcite-linq4j-1.
|
99
|
+
- classpath/calcite-core-1.12.0.jar
|
100
|
+
- classpath/calcite-linq4j-1.12.0.jar
|
95
101
|
- classpath/commons-codec-1.9.jar
|
96
102
|
- classpath/commons-compiler-2.7.6.jar
|
97
103
|
- classpath/commons-dbcp-1.4.jar
|
@@ -99,15 +105,16 @@ files:
|
|
99
105
|
- classpath/commons-lang3-3.2.jar
|
100
106
|
- classpath/commons-logging-1.2.jar
|
101
107
|
- classpath/commons-pool-1.5.4.jar
|
102
|
-
- classpath/embulk-filter-calcite-0.1.
|
108
|
+
- classpath/embulk-filter-calcite-0.1.2.jar
|
103
109
|
- classpath/embulk-input-jdbc-0.8.2.jar
|
110
|
+
- classpath/guava-19.0.jar
|
104
111
|
- classpath/httpclient-4.5.2.jar
|
105
112
|
- classpath/httpcore-4.4.4.jar
|
106
113
|
- classpath/jackson-annotations-2.6.3.jar
|
107
114
|
- classpath/jackson-core-2.6.3.jar
|
108
115
|
- classpath/jackson-databind-2.6.3.jar
|
109
116
|
- classpath/janino-2.7.6.jar
|
110
|
-
- classpath/jsr305-
|
117
|
+
- classpath/jsr305-3.0.1.jar
|
111
118
|
- classpath/protobuf-java-3.1.0.jar
|
112
119
|
- classpath/slf4j-api-1.7.13.jar
|
113
120
|
homepage: https://github.com/muga/embulk-filter-calcite
|
@@ -1,108 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<!DOCTYPE module PUBLIC
|
3
|
-
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
|
4
|
-
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
|
5
|
-
<!--
|
6
|
-
This is a subset of ./checkstyle.xml which allows some loose styles
|
7
|
-
-->
|
8
|
-
<module name="Checker">
|
9
|
-
<module name="FileTabCharacter"/>
|
10
|
-
<module name="NewlineAtEndOfFile">
|
11
|
-
<property name="lineSeparator" value="lf"/>
|
12
|
-
</module>
|
13
|
-
<module name="RegexpMultiline">
|
14
|
-
<property name="format" value="\r"/>
|
15
|
-
<property name="message" value="Line contains carriage return"/>
|
16
|
-
</module>
|
17
|
-
<module name="RegexpMultiline">
|
18
|
-
<property name="format" value=" \n"/>
|
19
|
-
<property name="message" value="Line has trailing whitespace"/>
|
20
|
-
</module>
|
21
|
-
<module name="RegexpMultiline">
|
22
|
-
<property name="format" value="\n\n\n"/>
|
23
|
-
<property name="message" value="Multiple consecutive blank lines"/>
|
24
|
-
</module>
|
25
|
-
<module name="RegexpMultiline">
|
26
|
-
<property name="format" value="\n\n\Z"/>
|
27
|
-
<property name="message" value="Blank line before end of file"/>
|
28
|
-
</module>
|
29
|
-
|
30
|
-
<module name="TreeWalker">
|
31
|
-
<module name="EmptyBlock">
|
32
|
-
<property name="option" value="text"/>
|
33
|
-
<property name="tokens" value="
|
34
|
-
LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_IF,
|
35
|
-
LITERAL_FOR, LITERAL_TRY, LITERAL_WHILE, INSTANCE_INIT, STATIC_INIT"/>
|
36
|
-
</module>
|
37
|
-
<module name="EmptyStatement"/>
|
38
|
-
<module name="EmptyForInitializerPad"/>
|
39
|
-
<module name="EmptyForIteratorPad">
|
40
|
-
<property name="option" value="space"/>
|
41
|
-
</module>
|
42
|
-
<module name="MethodParamPad">
|
43
|
-
<property name="allowLineBreaks" value="true"/>
|
44
|
-
<property name="option" value="nospace"/>
|
45
|
-
</module>
|
46
|
-
<module name="ParenPad"/>
|
47
|
-
<module name="TypecastParenPad"/>
|
48
|
-
<module name="NeedBraces"/>
|
49
|
-
<module name="LeftCurly">
|
50
|
-
<property name="option" value="nl"/>
|
51
|
-
<property name="tokens" value="CLASS_DEF, CTOR_DEF, INTERFACE_DEF, METHOD_DEF"/>
|
52
|
-
</module>
|
53
|
-
<module name="LeftCurly">
|
54
|
-
<property name="option" value="eol"/>
|
55
|
-
<property name="tokens" value="
|
56
|
-
LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_FOR,
|
57
|
-
LITERAL_IF, LITERAL_SWITCH, LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE"/>
|
58
|
-
</module>
|
59
|
-
<module name="RightCurly">
|
60
|
-
<property name="option" value="alone"/>
|
61
|
-
</module>
|
62
|
-
<module name="GenericWhitespace"/>
|
63
|
-
<module name="WhitespaceAfter"/>
|
64
|
-
<module name="NoWhitespaceBefore"/>
|
65
|
-
|
66
|
-
<module name="UpperEll"/>
|
67
|
-
<module name="DefaultComesLast"/>
|
68
|
-
<module name="ArrayTypeStyle"/>
|
69
|
-
<module name="MultipleVariableDeclarations"/>
|
70
|
-
<module name="ModifierOrder"/>
|
71
|
-
<module name="OneStatementPerLine"/>
|
72
|
-
<module name="StringLiteralEquality"/>
|
73
|
-
<module name="MutableException"/>
|
74
|
-
<module name="EqualsHashCode"/>
|
75
|
-
<module name="InnerAssignment"/>
|
76
|
-
<module name="InterfaceIsType"/>
|
77
|
-
<module name="HideUtilityClassConstructor"/>
|
78
|
-
|
79
|
-
<module name="MemberName"/>
|
80
|
-
<module name="LocalVariableName"/>
|
81
|
-
<module name="LocalFinalVariableName"/>
|
82
|
-
<module name="TypeName"/>
|
83
|
-
<module name="PackageName"/>
|
84
|
-
<module name="ParameterName"/>
|
85
|
-
<module name="StaticVariableName"/>
|
86
|
-
<module name="ClassTypeParameterName">
|
87
|
-
<property name="format" value="^[A-Z][0-9]?$"/>
|
88
|
-
</module>
|
89
|
-
<module name="MethodTypeParameterName">
|
90
|
-
<property name="format" value="^[A-Z][0-9]?$"/>
|
91
|
-
</module>
|
92
|
-
|
93
|
-
<module name="WhitespaceAround">
|
94
|
-
<property name="allowEmptyConstructors" value="true"/>
|
95
|
-
<property name="allowEmptyMethods" value="true"/>
|
96
|
-
<property name="ignoreEnhancedForColon" value="false"/>
|
97
|
-
<property name="tokens" value="
|
98
|
-
ASSIGN, BAND, BAND_ASSIGN, BOR, BOR_ASSIGN, BSR, BSR_ASSIGN,
|
99
|
-
BXOR, BXOR_ASSIGN, COLON, DIV, DIV_ASSIGN, EQUAL, GE, GT, LAND, LE,
|
100
|
-
LITERAL_ASSERT, LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE,
|
101
|
-
LITERAL_FINALLY, LITERAL_FOR, LITERAL_IF, LITERAL_RETURN,
|
102
|
-
LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE,
|
103
|
-
LOR, LT, MINUS, MINUS_ASSIGN, MOD, MOD_ASSIGN, NOT_EQUAL,
|
104
|
-
PLUS, PLUS_ASSIGN, QUESTION, SL, SLIST, SL_ASSIGN, SR, SR_ASSIGN,
|
105
|
-
STAR, STAR_ASSIGN, TYPE_EXTENSION_AND"/>
|
106
|
-
</module>
|
107
|
-
</module>
|
108
|
-
</module>
|