Skip to content

Conversation

@nord-erik
Copy link
Contributor

@nord-erik nord-erik commented Oct 28, 2025

this commit introduces a new way to write from Spark SQL interval types to Neo4j duration type.
commit is additive, i.e. the previous method to write Neo4j duration type via custom struct is
still possible, and should therefore be backwards compatible.

part of CONN-341

class SparkToNeo4jDataConverter extends DataConverter[Value] {

override def convert(value: Any, dataType: DataType): Value = {
dataType match {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

looking into how to re-write this to still match on value (and incorporate below)

Copy link
Contributor Author

@nord-erik nord-erik Nov 10, 2025

Choose a reason for hiding this comment

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

... but I don't think it's important...

@nord-erik nord-erik force-pushed the en/feat-native-types branch 5 times, most recently from b8a5787 to 078fcf0 Compare November 7, 2025 08:27
@nord-erik nord-erik force-pushed the en/feat-native-types branch 3 times, most recently from ca3a137 to 175e0dd Compare November 10, 2025 16:00
@nord-erik nord-erik marked this pull request as ready for review November 11, 2025 09:53
@nord-erik nord-erik requested a review from a team as a code owner November 11, 2025 09:53
@nord-erik nord-erik force-pushed the en/feat-native-types branch 2 times, most recently from 45ca291 to 6961941 Compare November 24, 2025 15:53
@nord-erik nord-erik enabled auto-merge (squash) December 1, 2025 08:53
@nord-erik
Copy link
Contributor Author

When this is released, document in: neo4j/docs-spark#83

@nord-erik nord-erik force-pushed the en/feat-native-types branch from 6961941 to 13fb6da Compare December 1, 2025 13:38
@nord-erik nord-erik disabled auto-merge December 1, 2025 13:43
this commit introduces a new way to write from Spark SQL interval types to Neo4j duration type.
commit is additive, i.e. the previous method to write Neo4j duration type via custom struct is
still possible, and should therefore be backwards compatible.

Fixes CONN-341
@nord-erik nord-erik force-pushed the en/feat-native-types branch from 13fb6da to 69647b4 Compare December 8, 2025 16:14
@nord-erik nord-erik enabled auto-merge (squash) December 8, 2025 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants