Skip to content

SPARKC-504: Save null UDTs - #1228

Closed
acustiq wants to merge 11 commits into
apache:b3.0from
acustiq:SPARKC-504
Closed

SPARKC-504: Save null UDTs#1228
acustiq wants to merge 11 commits into
apache:b3.0from
acustiq:SPARKC-504

Conversation

@acustiq

@acustiq acustiq commented Feb 6, 2020

Copy link
Copy Markdown

No description provided.

@datastax-bot

Copy link
Copy Markdown

Hi @acustiq, thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign Spark Cassandra Connector CLA. It's all electronic and will take just minutes.

@datastax-bot

Copy link
Copy Markdown

Thank you @acustiq for signing the Spark Cassandra Connector CLA.

msmygit and others added 2 commits March 16, 2020 17:59
@RussellSpitzer

Copy link
Copy Markdown
Member

Sorry, I really messed up the master branch so a rebase will be necessary. If you could please rebase on b3.0 and I will review as soon as possible.

columnValues(i) = converters(i).convert(columnValues(i))
struct.newInstance(columnValues: _*)
case None =>
case _ =>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe i'm just paranoid, but should we do None | null? I may just be paranoid (this wouldn't be the first time...)

@acustiq acustiq Mar 30, 2020

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I would think that the _ wildcard symbol catches both None and null as it matches anything:

case _ => // Wild card pattern -- matches anything

Source: https://docs.scala-lang.org/tutorials/FAQ/finding-symbols.html

@RussellSpitzer

Copy link
Copy Markdown
Member

All tests pass! Thanks so much for your pr, please let me know you response to my above comment. I'll change the target of this pr to b3.0 to make sure it gets in the next release.

@RussellSpitzer
RussellSpitzer changed the base branch from master to b3.0 March 30, 2020 22:00
@RussellSpitzer

Copy link
Copy Markdown
Member

Ah we have a few of the master commits (just docs) got dragged in, could you please rebase on b3.0?

@acustiq

acustiq commented Mar 31, 2020

Copy link
Copy Markdown
Author

@RussellSpitzer please close this PR in favor of #1241 which has this change rebased on b3.0 .

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.

4 participants