Skip to content

PHOENIX-7442 Apply Spotless to reformat the entire codebase #2024

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NihalJain
Copy link
Contributor

@NihalJain NihalJain commented Nov 6, 2024

  • Ran mvn spotless:apply to re-format the entire codebase
  • No manual code change in this commit

@NihalJain NihalJain marked this pull request as draft November 6, 2024 17:02
@NihalJain
Copy link
Contributor Author

Depends on #2023
Once that is merged we should rebase to master, re-run spotless and update code here.

@NihalJain
Copy link
Contributor Author

Requires #2023. Hence in DRAFT!

@NihalJain
Copy link
Contributor Author

TODO: Rebase before merge

@NihalJain
Copy link
Contributor Author

Depends on #2023 Once that is merged we should rebase to master, re-run spotless and update code here.

TODO: Rebase before merge

Done.

CC: @stoty

@NihalJain NihalJain marked this pull request as ready for review April 16, 2025 10:57
@stoty
Copy link
Contributor

stoty commented Apr 16, 2025

Thank you.
I suggest asking for reviews again on the last email thread.
We want maximum visibility for this.

@NihalJain
Copy link
Contributor Author

I suggest asking for reviews again on the last email thread.
We want maximum visibility for this

Sure let me ping once again.

if (this.servers.containsKey(loc)) {
Long time = this.servers.get(loc);
if (EnvironmentEdgeManager.currentTimeMillis() - time > maxServerCacheTTL) return true; // cache
// was
Copy link
Contributor Author

Choose a reason for hiding this comment

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

manually fix this

* "should" be, based on how it's used in the query. For example {@code foo < ? } would expect
* that the bind variable type matches or can be coerced to the type of foo. For (1),
* we check that the bind value has the correct type and for (2) we set the param
* Class that manages binding parameters and checking type matching. There are two main usages: 1)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

fix

}

/**
* Restrict view to be UPDATABLE if the view specification: 1. uses only the PK columns; 2. starts
Copy link
Contributor Author

Choose a reason for hiding this comment

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

fix

return plan.getEstimateInfoTimestamp();
}
@Override
public Long getEstimateInfoTimestamp() throws SQLException {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

note to self: checkpoint

@lfrancke
Copy link
Member

Thanks for this PR. I'm happy to spend some time reviewing it but I'm not sure where/how to start. I did look at 20 or so files and they look good. It's an honest question: Any suggestion how to really review this in a structured way? Or do you just look at a random subset of files and hope for the best.

@stoty
Copy link
Contributor

stoty commented Apr 23, 2025

Since this is an automated reformat, a complete a review is hopeless.
It's more like:

  • have all files been correctly reformatted ?
  • Are there any generated files, which may conflict with spotless ?

Once we decided to reformat, and decided on the rules, review for the big bang reformat step is more of a formality.

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