Skip to content

Commit

Permalink
[INLONG-TEMP][SDK] TEST
Browse files Browse the repository at this point in the history
  • Loading branch information
ZKpLo committed Oct 14, 2024
1 parent 46d6881 commit d735201
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 12 deletions.
22 changes: 22 additions & 0 deletions inlong-sdk/transform-sdk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,28 @@
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>3.0.0</version>
</plugin>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>2.27.2</version>
<configuration>
<java>
<!-- 选择你使用的格式化规则 -->
<toggleOffOn>
<off>// spotless:off</off>
<on>// spotless:on</on>
</toggleOffOn>
</java>
</configuration>
<executions>
<execution>
<goals>
<goal>apply</goal>
</goals>
</execution>
</executions>
</plugin>

</plugins>
</pluginManagement>
</build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,20 @@
import java.math.BigDecimal;

/**
* AcosdFunction -> acosd(numeric)
* description:
* - Return NULL if 'numeric' is NULL;
* - Return the arc cosine of 'numeric' in units of degrees.
* AcosdFunction -> acosd(numeric) description: - Return NULL if 'numeric' is NULL; - Return the arc
* cosine of 'numeric' in units of degrees.
*/
@TransformFunction(names = {"acosd"}, parameter = "(Numeric numeric)", descriptions = {
"- Return \"\" if 'numeric' is NULL;",
"- Return the arc cosine of 'numeric' in units of degrees."
}, examples = {
"acosd(1) = 0.0",
"acosd(0) = 90.0",
"acosd(-1) = 180.0"
})
// spotless:off
@TransformFunction(names = {"acosd"},
parameter = "(Numeric numeric)", descriptions = {
"- Return \"\" if 'numeric' is NULL;",
"- Return the arc cosine of 'numeric' in units of degrees."
}, examples = {
"acosd(1) = 0.0",
"acosd(0) = 90.0",
"acosd(-1) = 180.0"
})
// spotless:on
public class AcosdFunction implements ValueParser {

private ValueParser numberParser;
Expand Down

0 comments on commit d735201

Please sign in to comment.