Skip to content

Commit 88d4363

Browse files
committed
Added app templates
1 parent 8134b8a commit 88d4363

12 files changed

Lines changed: 188 additions & 0 deletions

File tree

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"schema": {
3+
"fields": [{
4+
"name": "state",
5+
"type": "string"
6+
}, {
7+
"name": "bathrooms",
8+
"type": "double"
9+
}, {
10+
"name": "square_feet",
11+
"type": "double"
12+
}, {
13+
"name": "bedrooms",
14+
"type": "double"
15+
}, {
16+
"name": "security_deposit",
17+
"type": "double"
18+
}, {
19+
"name": "cleaning_fee",
20+
"type": "double"
21+
}, {
22+
"name": "extra_people",
23+
"type": "double"
24+
}, {
25+
"name": "number_of_reviews",
26+
"type": "double"
27+
}, {
28+
"name": "review_scores_rating",
29+
"type": "double"
30+
}, {
31+
"name": "room_type",
32+
"type": "string"
33+
}, {
34+
"name": "host_is_superhost",
35+
"type": "string"
36+
}, {
37+
"name": "cancellation_policy",
38+
"type": "string"
39+
}, {
40+
"name": "instant_bookable",
41+
"type": "string"
42+
}]
43+
},
44+
"rows": [["NY", 2.0, 1250.0, 3.0, 50.0, 30.0, 2.0, 56.0, 90.0, "Entire home/apt", "1.0", "strict", "1.0"]]
45+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
name: hello-mleap
2+
version: v1
3+
inputs: ./frame.airbnb.json
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
name: hello-mleap
2+
version: v1
3+
runtime: Mleap
4+
bundleFileName: airbnb.model.lr.zip
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
def handler(msg):
2+
"""
3+
Writes input argument back-out to the standard output returning input as
4+
output.
5+
6+
Generated by: `SQL Server Big Data Cluster`
7+
8+
:param msg: The message to echo.
9+
:type msg: str
10+
:return: The input message `msg` as output `out`.
11+
"""
12+
print(msg)
13+
out = msg
14+
return out
15+
16+
17+
if __name__ == '__main__':
18+
handler('Hello')
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
name: hello-python
2+
version: v1
3+
inputs:
4+
msg: hello
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: hello-python
2+
version: v1
3+
runtime: Python
4+
src: ./hello.py
5+
entrypoint: handler
6+
replicas: 1
7+
poolsize: 1
8+
inputs:
9+
msg: str
10+
output:
11+
out: str

samples/app-templates/r/hello.R

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#' Writes input argument back-out to the
2+
#' standard output returning input as output.
3+
#'
4+
#' Generated by: `SQL Server Big Data Cluster`
5+
#'
6+
#' @param msg A character message to echo.
7+
#' @return The input \code{msg} as output \code{out}.
8+
handler <- function(msg) {
9+
print(msg)
10+
out = msg
11+
out
12+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
name: hello-r
2+
version: v1
3+
inputs:
4+
msg: hello

samples/app-templates/r/spec.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: hello-r
2+
version: v1
3+
runtime: R
4+
src: ./hello.R
5+
entrypoint: handler
6+
replicas: 1
7+
poolsize: 1
8+
inputs:
9+
msg: character
10+
output:
11+
out: character
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
<?xml version="1.0"?>
2+
<DTS:Executable xmlns:DTS="www.microsoft.com/SqlServer/Dts"
3+
DTS:refId="Package"
4+
DTS:CreationDate="11/20/2018 3:58:23 PM"
5+
DTS:CreationName="Microsoft.Package"
6+
DTS:CreatorComputerName="BLIANG-DESKTOP"
7+
DTS:CreatorName="REDMOND\bilia"
8+
DTS:DTSID="{7C0751EA-999B-41E0-8CC8-05BE487E024E}"
9+
DTS:ExecutableType="Microsoft.Package"
10+
DTS:LastModifiedProductVersion="15.0.0900.40"
11+
DTS:LocaleID="1033"
12+
DTS:ObjectName="hello"
13+
DTS:PackageType="5"
14+
DTS:ProtectionLevel="0"
15+
DTS:VersionBuild="21"
16+
DTS:VersionGUID="{02130BCE-DADA-4DE8-9482-8091BE951AC8}">
17+
<DTS:Property
18+
DTS:Name="PackageFormatVersion">8</DTS:Property>
19+
<DTS:Variables>
20+
<DTS:Variable
21+
DTS:CreationName=""
22+
DTS:DTSID="{E7375C68-7DBC-4901-9697-78F9A53E6BD6}"
23+
DTS:IncludeInDebugDump="2345"
24+
DTS:Namespace="User"
25+
DTS:ObjectName="Message">
26+
<DTS:VariableValue
27+
DTS:DataType="8"
28+
xml:space="preserve"></DTS:VariableValue>
29+
</DTS:Variable>
30+
</DTS:Variables>
31+
<DTS:Executables>
32+
<DTS:Executable
33+
DTS:refId="Package\Expression Task"
34+
DTS:CreationName="Microsoft.ExpressionTask"
35+
DTS:Description="Expression Task"
36+
DTS:DTSID="{86B3286B-A73A-4CF8-927B-832952DED85A}"
37+
DTS:ExecutableType="Microsoft.ExpressionTask"
38+
DTS:LocaleID="-1"
39+
DTS:ObjectName="Expression Task"
40+
DTS:ThreadHint="0">
41+
<DTS:Variables />
42+
<DTS:ObjectData>
43+
<ExpressionTask
44+
Expression="@[User::Message] = &quot;hello&quot;" />
45+
</DTS:ObjectData>
46+
</DTS:Executable>
47+
</DTS:Executables>
48+
<DTS:DesignTimeProperties><![CDATA[<?xml version="1.0"?>
49+
<!--This CDATA section contains the layout information of the package. The section includes information such as (x,y) coordinates, width, and height.-->
50+
<!--If you manually edit this section and make a mistake, you can delete it. -->
51+
<!--The package will still be able to load normally but the previous layout information will be lost and the designer will automatically re-arrange the elements on the design surface.-->
52+
<Objects
53+
Version="8">
54+
<!--Each node below will contain properties that do not affect runtime behavior.-->
55+
<Package
56+
design-time-name="Package">
57+
<LayoutInfo>
58+
<GraphLayout
59+
Capacity="4" xmlns="clr-namespace:Microsoft.SqlServer.IntegrationServices.Designer.Model.Serialization;assembly=Microsoft.SqlServer.IntegrationServices.Graph">
60+
<NodeLayout
61+
Size="160,42"
62+
Id="Package\Expression Task"
63+
TopLeft="344,190" />
64+
</GraphLayout>
65+
</LayoutInfo>
66+
</Package>
67+
</Objects>]]></DTS:DesignTimeProperties>
68+
</DTS:Executable>

0 commit comments

Comments
 (0)