-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Destination Clickhouse - 1.0, remove normalization #34637
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
Merged
octavia-approvington
merged 113 commits into
master
from
joseph.bell/32528/remove-clickhouse-normalization
Feb 22, 2024
Merged
Changes from 87 commits
Commits
Show all changes
113 commits
Select commit
Hold shift + click to select a range
cdb1238
...
jbfbell 6f7c28c
conflicts
jbfbell 08f0173
all sorts of stuff
jbfbell d2cb631
working sync
jbfbell 6443554
merge conflict
jbfbell 35c3493
add breaking change metadata
jbfbell 8004b50
formatting
jbfbell ecaf881
pr self review
jbfbell e5cfdf4
formatting
jbfbell 7f7bd8f
merge conflict
jbfbell 372edd2
merge conflict
jbfbell 3a005d7
AirbyteLib: Installation improvements and improved error handling (#3…
aaronsteers 98d760f
Revert Default Cloud Version (#34646)
jbfbell 6408023
AirbyteLib: Progress Printer (#34588)
aaronsteers a4738b9
AirbyteLib: DuckDB Perf Boost (#34589)
aaronsteers 923fcc5
airbyte-ci: Switch to prod pypi (#34606)
8f72720
airbyte-lib: Refactor connectors (#34552)
bd0a877
airbyte-lib: Fix validation (#34599)
b551732
📝Destination Astra DB Connector Name Update, Icon Update, Spec format…
cc1f1a2
airbyte-lib: Refactor follow-up (#34649)
70b05a6
Publish pokeapi to pypi (#34650)
b5e268e
:bug: Source Microsoft OneDrive: Fix Oauth (#34478)
tolik0 d7ddc77
Publish to pypi (#34652)
8cef869
Emit state when no partitions are generated for ccdk (#34605)
maxi297 8932636
Have StateBuilder return our actual state object and not simply a dic…
maxi297 b7a39ce
Publish to pypi batch 2 (#34656)
6a6b89c
Fix Cursor interface change + FileBased change at the same time (#34653)
maxi297 e3c14c7
Publish to pypi batch3 (#34657)
e808c51
🤖 Bump patch version of Python CDK
maxi297 15efffe
Revert "Publish to pypi batch3 (#34657)" (#34659)
ae3a028
airbyte-lib: Prepare for published connectors (#34651)
4ccdf36
Recreate pypi publish batch3 (#34660)
4136e9c
Update cdc.md - Add MongoDB support (#34671)
rwask 82b7e5d
Pin file-based sources to airbyte-cdk version 0.59.2 (#34661)
clnoll 7f2fddf
Fix log4j-slf4j-impl version conflicts (#34669)
c391e2e
Source Faker: Declare primary keys (#34644)
aaronsteers d13b7c9
Destination Redshift - Bump CDK version to 0.16.3 (#34680)
jbfbell 3bd0acd
Destination Teradata: make connector avaialble on Airbyte Cloud (#28667)
marcosmarxm 73cda9a
Support resuming initial snapshot when id type is String, Int, Long (…
rodireich 1da8866
Publish to pypi batch4 (#34666)
b8a806d
airbyte-ci: Test pypi published properly (#34689)
b8e4871
Publish to pypi batch5 (#34668)
c881fe0
Publish to pypi batch6 (#34672)
410fc8a
Publish to pypi batch7 (#34673)
0c2d92e
Kubernetes docs: update instructions to use external database (#34604)
marcosmarxm 045ce95
Update file-based connectors for compatibility with concurrent CDK (#…
clnoll 65a7f42
🚨🚨🐛Source Hubspot: update marketing_emails stream schema (#34492)
1e80b8d
Publish to pypi batch8 (#34690)
a5d3bad
Source Azure Table Storage: CDK Update (#34576)
ChristoGrab 2cff690
Publish to pypi batch9 (#34691)
1ba7b21
Build a resume token with a pipeline consisting of selected streams (…
rodireich c6bc976
Publish to pypi batch10 (#34692)
a2e4026
Destination Postgres: Upgrade CDK with fixed dependency and unpin clo…
gisripa 2c86106
CAT: fix NoAdditionalPropertiesValidator (#34709)
artem1205 365ca38
merge conflicts
jbfbell b81aa62
source recharge for some reason
jbfbell 61d96d1
delete file
jbfbell 79d6db0
passing tests
jbfbell a59b052
formatting
jbfbell e455a88
Merge branch 'master' into joseph.bell/32528/remove-clickhouse-normal…
jbfbell 5de537d
Merge branch 'master' of github.com:airbytehq/airbyte into joseph.bel…
jbfbell d5c1cca
PR Feedback non gradle
jbfbell eeae224
PR Feedback non gradle - 2
jbfbell b7c4b2d
unneccessary class
jbfbell 6448685
change jvm target
jbfbell bcfd84b
Merge branch 'master' of github.com:airbytehq/airbyte into joseph.bel…
jbfbell 05f3b7c
gradle changes
jbfbell 5b5efb1
Merge branch 'master' of github.com:airbytehq/airbyte into joseph.bel…
jbfbell 86bbd12
clean up thread count access
jbfbell 1e654f8
formatting
jbfbell 470b70b
update yaml and markdown
jbfbell 92c4ab1
Merge branch 'master' of github.com:airbytehq/airbyte into joseph.bel…
jbfbell 2139544
test updates
jbfbell c68774e
Merge branch 'master' of github.com:airbytehq/airbyte into joseph.bel…
jbfbell 541e694
formatting
jbfbell 9182df2
merge conflict
jbfbell 1011b79
disable ssh tests
jbfbell 50d7719
Merge branch 'master' of github.com:airbytehq/airbyte into joseph.bel…
jbfbell 64e6ad8
merge conflict
jbfbell 7b59ac6
Merge branch 'master' of github.com:airbytehq/airbyte into joseph.bel…
jbfbell db03685
merge conflicts
jbfbell c486e3e
java 21 upgrade
jbfbell b64108e
merge conflicts
jbfbell d38359c
Merge branch 'master' of github.com:airbytehq/airbyte into joseph.bel…
jbfbell 59219c6
java 21 upgrade
jbfbell 162543b
Merge branch 'master' of github.com:airbytehq/airbyte into joseph.bel…
jbfbell 40f9347
disable tests comment
jbfbell 4908a81
pr feedback
jbfbell 5b5303a
Merge branch 'master' of github.com:airbytehq/airbyte into joseph.bel…
jbfbell 32fcb0f
pr feedback
jbfbell da31776
formatting
jbfbell 0968210
merge conflicts
jbfbell 19b6ab4
fix strict encrypt tests
jbfbell 1fb15eb
Merge branch 'master' of github.com:airbytehq/airbyte into joseph.bel…
jbfbell 369ffdc
formatting
jbfbell fdb9188
Merge branch 'master' of github.com:airbytehq/airbyte into joseph.bel…
jbfbell 9ab52ae
clickhouse migration query
jbfbell f73622b
Merge branch 'master' of github.com:airbytehq/airbyte into joseph.bel…
jbfbell fbc5418
Merge branch 'master' of github.com:airbytehq/airbyte into joseph.bel…
jbfbell 890ef95
remove append option
jbfbell 65d4c11
Merge branch 'master' of github.com:airbytehq/airbyte into joseph.bel…
jbfbell f7f210f
Merge branch 'master' of github.com:airbytehq/airbyte into joseph.bel…
jbfbell 89ebbc7
use non local cdk version
jbfbell ce5564f
bump version
jbfbell 3bec74e
remove local version
jbfbell 91e7e6a
merge conflicts
jbfbell 376d151
use local again
jbfbell b79a4bf
cdk merge conflicts
jbfbell da2c3de
version bumps
jbfbell 78fe4d1
Merge branch 'master' of github.com:airbytehq/airbyte into joseph.bel…
jbfbell f79ba7e
Merge branch 'master' of github.com:airbytehq/airbyte into joseph.bel…
jbfbell fb95636
use non local version
jbfbell 97c34ed
Merge branch 'master' of github.com:airbytehq/airbyte into joseph.bel…
jbfbell File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
.../airbyte-cdk/core/src/main/java/io/airbyte/cdk/integrations/util/ConfiguredCatalogUtil.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package io.airbyte.cdk.integrations.util | ||
|
||
import io.airbyte.protocol.models.v0.ConfiguredAirbyteCatalog | ||
import org.apache.commons.lang3.StringUtils | ||
|
||
/** | ||
* For streams in [catalog] which do not have a namespace specified, explicitly set their namespace | ||
* to the [defaultNamespace] | ||
*/ | ||
fun addDefaultNamespaceToStreams(catalog: ConfiguredAirbyteCatalog, defaultNamespace: String?) { | ||
if (defaultNamespace == null) { | ||
return | ||
} | ||
// TODO: This logic exists in all V2 destinations. | ||
// This is sad that if we forget to add this, there will be a null pointer during parseCatalog | ||
for (stream in catalog.streams) { | ||
if (StringUtils.isEmpty(stream.stream.namespace)) { | ||
jbfbell marked this conversation as resolved.
Show resolved
Hide resolved
|
||
stream.stream.namespace = defaultNamespace | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
airbyte-cdk/java/airbyte-cdk/core/src/main/resources/version.properties
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
version=0.20.7 | ||
version=0.21.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
.../java/io/airbyte/cdk/integrations/destination/jdbc/typing_deduping/RawOnlySqlGenerator.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
package io.airbyte.cdk.integrations.destination.jdbc.typing_deduping | ||
|
||
import io.airbyte.cdk.integrations.destination.NamingConventionTransformer | ||
import io.airbyte.cdk.integrations.destination.jdbc.TableDefinition | ||
import io.airbyte.integrations.base.destination.typing_deduping.AirbyteType | ||
import io.airbyte.integrations.base.destination.typing_deduping.ColumnId | ||
import io.airbyte.integrations.base.destination.typing_deduping.StreamConfig | ||
import org.jooq.Condition | ||
import org.jooq.DataType | ||
import org.jooq.Field | ||
import org.jooq.SQLDialect | ||
import java.util.* | ||
|
||
/** | ||
* Some Destinations do not support Typing and Deduping but have the updated raw table format | ||
* SqlGenerator implementations are only for "final" tables and are a required input for | ||
* TyperDeduper classes. This implementation appeases that requirement but does not implement | ||
* any "final" table operations. | ||
*/ | ||
class RawOnlySqlGenerator(private val namingTransformer: NamingConventionTransformer) : | ||
jbfbell marked this conversation as resolved.
Show resolved
Hide resolved
|
||
JdbcSqlGenerator(namingTransformer) { | ||
override fun getStructType(): DataType<*>? { | ||
throw NotImplementedError("This Destination does not support final tables") | ||
} | ||
|
||
override fun getArrayType(): DataType<*>? { | ||
throw NotImplementedError("This Destination does not support final tables") | ||
} | ||
|
||
override fun getWidestType(): DataType<*>? { | ||
throw NotImplementedError("This Destination does not support final tables") | ||
} | ||
|
||
override fun getDialect(): SQLDialect? { | ||
throw NotImplementedError("This Destination does not support final tables") | ||
} | ||
|
||
override fun extractRawDataFields( | ||
columns: LinkedHashMap<ColumnId, AirbyteType>, | ||
useExpensiveSaferCasting: Boolean | ||
): List<Field<*>>? { | ||
throw NotImplementedError("This Destination does not support final tables") | ||
} | ||
|
||
override fun buildAirbyteMetaColumn(columns: LinkedHashMap<ColumnId, AirbyteType>): Field<*>? { | ||
throw NotImplementedError("This Destination does not support final tables") | ||
} | ||
|
||
override fun cdcDeletedAtNotNullCondition(): Condition? { | ||
throw NotImplementedError("This Destination does not support final tables") | ||
} | ||
|
||
override fun getRowNumber( | ||
primaryKey: List<ColumnId>, | ||
cursorField: Optional<ColumnId> | ||
): Field<Int>? { | ||
throw NotImplementedError("This Destination does not support final tables") | ||
} | ||
|
||
override fun existingSchemaMatchesStreamConfig( | ||
stream: StreamConfig, | ||
existingTable: TableDefinition | ||
): Boolean { | ||
throw NotImplementedError("This Destination does not support final tables") | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.