-
Notifications
You must be signed in to change notification settings - Fork 509
[FOLLOW-UP] Format Spark Integration code by javafmtAll #291
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
Conversation
I also tried to run |
Can you just leave the description of the changes alone? 🙏 Makes git log so terrible to look at 😢 |
override def listTables(namespace: Array[String]): Array[Identifier] = ??? | ||
override def listTables(namespace: Array[String]): Array[Identifier] = { | ||
if (namespace.length > 1) { | ||
throw new ApiException("Unity Catalog does not support nested namespace.") |
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.
- "nested namespaces" (plural)
- Can you add what the
namespace
is in the exception
Nested namespaces are not supported: [namespace]
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.
done.
if (namespace.length > 1) { | ||
throw new ApiException("Unity Catalog does not support nested namespace.") | ||
} | ||
val response: ListTablesResponse = tablesApi.listTables(this.name, namespace.head, 0, null) |
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.
What do you think about introducing local variables with names for the input arguments, i.e. catalogName
, schemaName
, maxResults
and pageToken
? Java doesn't support named arguments unfortunately. I think it would make code comprehension a bit better (unless you're in IntelliJ IDEA and gets all this for free 😉 )
A bit weird to see null
among the input arguments, isn't it?
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.
ah I see. Sure done. This seems to be more readable.
|
connectors/spark/src/test/java/io/unitycatalog/connectors/spark/CredentialTestFileSystem.java
Show resolved
Hide resolved
This is hard to review because it also changes the indentation. Please don't do so as this project does not share the same code style standard with Apache Spark. |
![]() @cloud-fan the main page documentation says to format the code by |
Description of changes
[FOLLOW-UP] Format Spark Integration code by javafmtAll.