Skip to content

Conversation

@disq
Copy link
Member

@disq disq commented May 16, 2023

No description provided.

@disq disq requested review from a team and yevgenypats and removed request for a team May 16, 2023 20:01
@cq-bot cq-bot added the gremlin label May 16, 2023
@disq disq marked this pull request as draft May 16, 2023 20:05
dbArr[i] = a.Value(i).ToTime(a.DataType().(*arrow.TimestampType).Unit).UTC()
continue
}
dbArr[i] = a.Value(i).ToTime(a.DataType().(*arrow.TimestampType).Unit).UTC().Format("2006-01-02 15:04:05.999999999")
Copy link
Member Author

@disq disq May 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gremlin time precision doesn't seem to allow us and ns tests so we stringify every timestamp except for cq_time. This is because if we do that to cq_time then DeleteStale as problems with the gremlingo.P.Lt operator when used on strings.

We also want to save the timestamp in UTC so a.ValueStr(i) wouldn't work here as there's no way to normalize the result.

@disq disq marked this pull request as ready for review May 16, 2023 20:50
@yevgenypats yevgenypats added the automerge Automatically merge once required checks pass label May 16, 2023
@kodiakhq kodiakhq bot merged commit 27fc337 into cloudquery:main May 16, 2023
@disq disq deleted the feat/gremlin-v3 branch May 17, 2023 08:08
kodiakhq bot pushed a commit that referenced this pull request May 18, 2023
🤖 I have created a release *beep* *boop*
---


## [2.1.0](plugins-destination-gremlin-v2.0.2...plugins-destination-gremlin-v2.1.0) (2023-05-18)


### Features

* **deps:** Upgrade to Apache Arrow v13 (latest `cqmain`) ([#10605](#10605)) ([a55da3d](a55da3d))
* **gremlin:** Add `complete_types` option ([#10846](#10846)) ([43166e1](43166e1)), closes [#10839](#10839)
* **gremlin:** Upgrade to SDK v3 ([#10821](#10821)) ([27fc337](27fc337))


### Bug Fixes

* **deps:** Update module github.com/aws/aws-sdk-go-v2/config to v1.18.25 ([#10786](#10786)) ([caca1a4](caca1a4))
* **deps:** Update module github.com/cloudquery/plugin-pb-go to v1.0.8 ([#10798](#10798)) ([27ff430](27ff430))
* **gremlin:** Upgrade gremlingo to official 3.6.3 ([#10824](#10824)) ([656f2a2](656f2a2))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants