-
Notifications
You must be signed in to change notification settings - Fork 11
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
#74: an initial implementation of the Kinesis Connector Importer #77
#74: an initial implementation of the Kinesis Connector Importer #77
Conversation
src/main/scala/com/exasol/cloudetl/kinesis/KinesisImportQueryGenerator.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/exasol/cloudetl/kinesis/KinesisShardDataImporter.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/exasol/cloudetl/kinesis/KinesisShardDataImporter.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/exasol/cloudetl/kinesis/KinesisShardDataImporter.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/exasol/cloudetl/kinesis/KinesisPropertiesReader.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/exasol/cloudetl/kinesis/KinesisPropertiesReader.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/exasol/cloudetl/kinesis/KinesisImportQueryGenerator.scala
Show resolved
Hide resolved
src/main/scala/com/exasol/cloudetl/kinesis/KinesisShardsMetadataReader.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/exasol/cloudetl/kinesis/KinesisShardDataImporter.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/exasol/cloudetl/kinesis/KinesisShardDataImporter.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/exasol/cloudetl/kinesis/KinesisShardDataImporter.scala
Show resolved
Hide resolved
src/main/scala/com/exasol/cloudetl/kinesis/KinesisShardsMetadataReader.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/exasol/cloudetl/kinesis/KinesisShardsMetadataReader.scala
Show resolved
Hide resolved
src/main/scala/com/exasol/cloudetl/kinesis/KinesisShardDataImporter.scala
Show resolved
Hide resolved
src/main/scala/com/exasol/cloudetl/kinesis/KinesisShardDataImporter.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/exasol/cloudetl/kinesis/KinesisShardsMetadataReader.scala
Show resolved
Hide resolved
src/main/scala/com/exasol/cloudetl/kinesis/KinesisImportQueryGenerator.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/exasol/cloudetl/kinesis/KinesisUserProperties.scala
Outdated
Show resolved
Hide resolved
src/test/scala/com/exasol/cloudetl/kinesis/KinesisUserPropertiesTest.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/exasol/cloudetl/kinesis/KinesisShardsMetadataReader.scala
Show resolved
Hide resolved
src/main/scala/com/exasol/cloudetl/kinesis/KinesisShardsMetadataReader.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/exasol/cloudetl/kinesis/KinesisShardsMetadataReader.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/exasol/cloudetl/kinesis/KinesisShardsMetadataReader.scala
Outdated
Show resolved
Hide resolved
72c5b06
to
e9b971e
Compare
src/it/scala/com/exasol/cloudetl/kinesis/KinesisAbstractIntegrationTest.scala
Outdated
Show resolved
Hide resolved
src/it/scala/com/exasol/cloudetl/kinesis/KinesisImportQueryGeneratorIT.scala
Outdated
Show resolved
Hide resolved
src/it/scala/com/exasol/cloudetl/kinesis/KinesisImportQueryGeneratorIT.scala
Show resolved
Hide resolved
src/it/scala/com/exasol/cloudetl/kinesis/KinesisAbstractIntegrationTest.scala
Show resolved
Hide resolved
src/it/scala/com/exasol/cloudetl/kinesis/KinesisImportQueryGeneratorIT.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/exasol/cloudetl/kinesis/KinesisClientFactory.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/exasol/cloudetl/kinesis/KinesisClientFactory.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/exasol/cloudetl/kinesis/KinesisUserProperties.scala
Outdated
Show resolved
Hide resolved
src/it/scala/com/exasol/cloudetl/kinesis/KinesisAbstractIntegrationTest.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/exasol/cloudetl/kinesis/KinesisShardDataImporter.scala
Show resolved
Hide resolved
src/main/scala/com/exasol/cloudetl/kinesis/KinesisUserProperties.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/exasol/cloudetl/kinesis/KinesisShardDataImporter.scala
Outdated
Show resolved
Hide resolved
src/test/scala/com/exasol/cloudetl/kinesis/KinesisShardDataImporterTest.scala
Outdated
Show resolved
Hide resolved
src/test/scala/com/exasol/cloudetl/common/AbstractPropertiesTest.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/exasol/cloudetl/kinesis/KinesisUserProperties.scala
Outdated
Show resolved
Hide resolved
src/test/scala/com/exasol/cloudetl/common/AbstractPropertiesTest.scala
Outdated
Show resolved
Hide resolved
src/main/scala/com/exasol/cloudetl/kinesis/KinesisImportQueryGenerator.scala
Outdated
Show resolved
Hide resolved
src/it/scala/com/exasol/cloudetl/kinesis/KinesisAbstractIntegrationTest.scala
Outdated
Show resolved
Hide resolved
src/it/scala/com/exasol/cloudetl/kinesis/KinesisAbstractIntegrationTest.scala
Outdated
Show resolved
Hide resolved
src/it/scala/com/exasol/cloudetl/kinesis/KinesisImportQueryGeneratorIT.scala
Show resolved
Hide resolved
src/it/scala/com/exasol/cloudetl/kinesis/KinesisShardDataImporterIT.scala
Outdated
Show resolved
Hide resolved
src/it/scala/com/exasol/cloudetl/kinesis/KinesisShardDataImporterIT.scala
Outdated
Show resolved
Hide resolved
src/it/scala/com/exasol/cloudetl/kinesis/KinesisShardsMetadataReaderIT.scala
Show resolved
Hide resolved
src/test/scala/com/exasol/cloudetl/kinesis/KinesisShardDataImporterTest.scala
Outdated
Show resolved
Hide resolved
Provide credentials as properties and run an import query. | ||
|
||
**Attention! Providing credentials via propeties is | ||
deprecated and will be removed in future releases.** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a deprecation warning to the central README too. Prominently, so that users have no excuse to not read it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will do it later
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Great work! Thanks for getting this implemented and finalized!
@@ -109,7 +111,7 @@ These plugins help with project development. | |||
| [SBT Git][sbt-git-link] | A plugin for Git integration, used to version the release jars | BSD 2-Clause License | | |||
|
|||
[travis-badge]: https://img.shields.io/travis/exasol/cloud-storage-etl-udfs/master.svg?logo=travis | |||
[travis-link]: https://travis-ci.org/exasol/cloud-storage-etl-udfs | |||
[travis-link]: https://travis-ci.com/exasol/cloud-storage-etl-udfs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
CREATE OR REPLACE JAVA SET SCRIPT KINESIS_METADATA (...) | ||
EMITS (KINESIS_SHARD_ID VARCHAR(130), SHARD_SEQUENCE_NUMBER VARCHAR(2000)) AS | ||
%scriptclass com.exasol.cloudetl.kinesis.KinesisShardsMetadataReader; | ||
%jar /buckets/bfsdefault/kinesis/cloud-storage-etl-udfs-<VERSION>.jar; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this will not work. The version is obtained using git describe
. So every commit has a version, e.,g tag-commitNumberSince-sha
.
Also, I think it will be too much. User can obtain the latest released jar from github releases.
src/it/scala/com/exasol/cloudetl/kinesis/KinesisImportQueryGeneratorIT.scala
Show resolved
Hide resolved
c2f226f
to
2d12b55
Compare
Adds an initial implementation using AWS SDK, unit tests and JSON API for deserializing Kinesis Stream content. Added users guide, system requirements and design documentation. Applied pull request reviews. Co-Authored-By: Muhammet Orazov <m.orazow@gmail.com>
Porting the project to Java 11 due to an introduction of Exasol docker test-containers framework for integration testing. Integration tests are based on the communication between Exasol test-containers and Localstack with Kinesis Service. Adds Mockito Extension because we were getting NullPointerExceptions when mocking the final methods of a class. We learned that by default mockito does not support mocking final methods. In order to enable it, mockito extension should be added to the test resources. Apply suggestions from code review. References: * https://github.com/exasol/exasol-testcontainers * https://www.testcontainers.org/modules/localstack/ * https://github.com/mockito/mockito/wiki/What%27s-new-in-Mockito-2#mock-the-unmockable-opt-in-mocking-of-final-classesmethods Co-Authored-By: Sebastian Bär <sebastian.baer@exasol.com>
…se Delta format requires older version.
2d12b55
to
a5f3b6b
Compare
Fixes #74