Skip to content

Conversation

@jonknight73
Copy link
Contributor

No description provided.

* @return The statements required to deploy the table and its indexes.
*/
public Collection<String> tableDeploymentStatements(Table table) {
Builder<String> statements = ImmutableList.<String>builder();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Remove unnecessary type

view.getName() +
" AS (" +
convertStatementToSQL(view.getSelectStatement()) +
")";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Remove unnecessary StringBuilder.

result.append(" ").append(defaultNullOrder());

return result.toString().trim();
return (getSqlFrom(currentOrderByField) + " " + defaultNullOrder()).trim();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Remove unnecessary StringBuilder.

// MySql supports no ON criteria and ON TRUE, but the other platforms
// don't, so just keep things simple.
result.append(String.format(" ON 1=1"));
result.append(" ON 1=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.

Remove redundant String.format

* Produce SQL for getting the row number of the row in the partition
*
* @return a string representation of the SQL for finding the last day of the month.
* @return a string representation of the SQL for getting the row number of the row in the partition.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Previous change had cut and pasted the wrong JavaDocs without updating it.

* @param addColumn instance of {@link AddColumn} to visit.
*/
public void visit(AddColumn addColumn);
void visit(AddColumn addColumn);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Remove redundant public modifier from interface

@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 4 Code Smells

75.4% 75.4% Coverage
4.0% 4.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants