Skip to content

Port pure utility classes with no Spark SQL dependency - #159

Merged
wchevreuil merged 3 commits into
apache:HBASE-30189from
wchevreuil:HBASE-30189
Aug 26, 2026
Merged

Port pure utility classes with no Spark SQL dependency#159
wchevreuil merged 3 commits into
apache:HBASE-30189from
wchevreuil:HBASE-30189

Conversation

@wchevreuil

Copy link
Copy Markdown
Contributor

No description provided.


import org.apache.yetus.audience.InterfaceAudience

@InterfaceAudience.Private

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: The original Bound.scala had some doc. For example inc. I let you decide if those add extra readability to the code.

import org.apache.yetus.audience.InterfaceAudience

@InterfaceAudience.Public
object HBaseSparkConf {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: The config comments could be useful.

import org.apache.yetus.audience.InterfaceAudience

@InterfaceAudience.Private
class NaiveEncoder extends BytesEncoder with Logging {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What is the purpose of the removal of debog logs? If you intend to drop logging then you'd probably want to remove the with Logging as well.

import org.apache.yetus.audience.InterfaceAudience

@InterfaceAudience.Private
class NaiveEncoder extends BytesEncoder with Logging {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Consider adding back the comments.

Bytes.putDouble(result, 1, value.asInstanceOf[Double])
result
case BinaryType =>
val v = value.asInstanceOf[Array[Byte]]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this intentional? Original had val v = value.asInstanceOf[Array[Bytes]] (Byte vs. Bytes)
Does it need a bugfix for the old class?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, this is a bug in the spark3 module. Will include a fix.

@wchevreuil
wchevreuil merged commit 2c15325 into apache:HBASE-30189 Aug 26, 2026
1 check passed
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.

2 participants