-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[Kernel] Clean up package organization of kernel-default
module.
#1954
Conversation
import io.delta.kernel.expressions.Expression; | ||
import io.delta.kernel.expressions.ExpressionEvaluator; | ||
import io.delta.kernel.expressions.Literal; | ||
import io.delta.kernel.types.*; | ||
import io.delta.kernel.types.BinaryType; |
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 don't have a checkstyle rule to collapse these together.
Please use |
Agree it is big odd, unfortunately |
import io.delta.kernel.types.StructField; | ||
import io.delta.kernel.types.StructType; | ||
|
||
import static java.lang.String.format; | ||
import static java.util.Objects.requireNonNull; | ||
import io.delta.kernel.defaults.internal.data.vector.VectorUtils; |
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.
nit: internal second?
kernel/kernel-defaults/src/test/java/io/delta/kernel/client/TestDefaultExpressionHandler.java
Outdated
Show resolved
Hide resolved
@@ -40,7 +42,10 @@ | |||
import io.delta.kernel.types.StructType; | |||
import io.delta.kernel.utils.CloseableIterator; | |||
import io.delta.kernel.utils.Utils; | |||
import static io.delta.kernel.utils.DefaultKernelTestUtils.getTestResourceFilePath; | |||
|
|||
import io.delta.kernel.defaults.utils.DefaultKernelTestUtils; |
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.
nit: no new line? we can't actually enforce this I think
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 modified the import order in Intellij to remove the blank line.
kernel/kernel-defaults/src/test/java/io/delta/kernel/defaults/integration/BaseIntegration.java
Show resolved
Hide resolved
.../kernel-defaults/src/test/java/io/delta/kernel/defaults/integration/TestDeltaTableReads.java
Show resolved
Hide resolved
kernel/kernel-defaults/src/test/scala/io/delta/kernel/DeletionVectorSuite.scala
Outdated
Show resolved
Hide resolved
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.
LGTM
Description
Rename the module
kernel-default
tokernel-defaults
.Rename package
io.delta.kernel
toio.delta.kernel.defaults
inkernel-defaults
module.Move non-public classes under the
io.delta.kernel.defaults.internal
package.Note: Reason for not using the
default
is because it is a keyword in Java and can't be part of the package namespace.How was this patch tested?
Updated the
kernel/examples
and ran thepython3 kernel/examples/run-kernel-examples.py --use-local
successfully.