You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/StardustDocs/topics/gradleReference.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -153,6 +153,8 @@ dataframes {
153
153
}
154
154
```
155
155
156
+
Find full example code [here](https://github.com/zaleslaw/KotlinDataFrame-SQL-Examples/blob/master/src/main/kotlin/Example_3_Import_schema_via_Gradle.kt).
157
+
156
158
**NOTE:** This is an experimental functionality and, for now,
157
159
we only support four databases: MariaDB, MySQL, PostgreSQL, and SQLite.
FROM movies JOIN movies_directors ON movie_id = movies.id
72
-
JOIN directors ON directors.id=director_id LEFT JOIN movies_genres ON movies.id = movies_genres.movie_id
73
-
WHERE directors.first_name = "Quentin" AND directors.last_name = "Tarantino"
74
-
GROUP BY name, year, rank
75
-
ORDER BY year
68
+
constvalACTORS_IN_LATEST_MOVIES="""
69
+
SELECT a.first_name, a.last_name, r.role, m.name AS movie_name, m.year
70
+
FROM actors a
71
+
INNER JOIN roles r ON a.id = r.actor_id
72
+
INNER JOIN movies m ON m.id = r.movie_id
73
+
WHERE m.year > 2000
76
74
"""
77
75
```
78
76
77
+
Find full example code [here](https://github.com/zaleslaw/KotlinDataFrame-SQL-Examples/blob/master/src/main/kotlin/Example_2_Import_schema_annotation.kt).
78
+
79
79
### With Gradle Task
80
80
81
81
To generate a schema for an existing SQL table,
@@ -124,6 +124,8 @@ dataframes {
124
124
}
125
125
```
126
126
127
+
Find full example code [here](https://github.com/zaleslaw/KotlinDataFrame-SQL-Examples/blob/master/src/main/kotlin/Example_3_Import_schema_via_Gradle.kt).
128
+
127
129
After importing the data schema, you can start to import any data from SQL table or as a result of an SQL query
0 commit comments