rename cols to cast
This commit is contained in:
Binary file not shown.
@@ -1,4 +0,0 @@
|
||||
id,title,category,created_at
|
||||
3.000000000000000000,BI с нуля,business,2023-03-01
|
||||
1.000000000000000000,SQL для начинающих,data,2023-01-01
|
||||
2.000000000000000000,Python для анализа данных,programming,2023-01-15
|
||||
|
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,6 @@
|
||||
id,user_id,course_id,enrolled_at
|
||||
5,4,3,2023-04-01
|
||||
2,1,2,2023-02-01
|
||||
4,3,2,2023-03-05
|
||||
1,1,1,2023-01-15
|
||||
3,2,1,2023-01-20
|
||||
|
@@ -1,6 +0,0 @@
|
||||
id,user_id,course_id,enrolled_at
|
||||
5.000000000000000000,4,3,2023-04-01
|
||||
2.000000000000000000,1,2,2023-02-01
|
||||
1.000000000000000000,1,1,2023-01-15
|
||||
3.000000000000000000,2,1,2023-01-20
|
||||
4.000000000000000000,3,2,2023-03-05
|
||||
|
Binary file not shown.
Binary file not shown.
@@ -1,7 +0,0 @@
|
||||
id,user_id,lesson_id,viewed_at
|
||||
5.000000000000000000,4,4,2023-04-02T10:00:00.000+03:00
|
||||
6.000000000000000000,4,5,2023-04-03T10:00:00.000+03:00
|
||||
1.000000000000000000,1,1,2023-01-16T10:00:00.000+03:00
|
||||
2.000000000000000000,1,2,2023-01-16T10:15:00.000+03:00
|
||||
3.000000000000000000,2,1,2023-01-21T09:00:00.000+03:00
|
||||
4.000000000000000000,3,3,2023-03-06T12:00:00.000+03:00
|
||||
|
@@ -0,0 +1,7 @@
|
||||
id,user_id,lesson_id,viewed_at
|
||||
1,1,1,2023-01-16T10:00:00.000+03:00
|
||||
2,1,2,2023-01-16T10:15:00.000+03:00
|
||||
3,2,1,2023-01-21T09:00:00.000+03:00
|
||||
5,4,4,2023-04-02T10:00:00.000+03:00
|
||||
6,4,5,2023-04-03T10:00:00.000+03:00
|
||||
4,3,3,2023-03-06T12:00:00.000+03:00
|
||||
|
Binary file not shown.
Binary file not shown.
@@ -1,6 +0,0 @@
|
||||
id,course_id,title,duration_min
|
||||
3.000000000000000000,2,Pandas,20
|
||||
5.000000000000000000,3,Метрики и дашборды,18
|
||||
4.000000000000000000,3,Основы BI,12
|
||||
2.000000000000000000,1,JOIN,15
|
||||
1.000000000000000000,1,SELECT и FROM,10
|
||||
|
@@ -0,0 +1,6 @@
|
||||
id,course_id,title,duration_min
|
||||
5,3,Метрики и дашборды,18
|
||||
4,3,Основы BI,12
|
||||
3,2,Pandas,20
|
||||
1,1,SELECT и FROM,10
|
||||
2,1,JOIN,15
|
||||
|
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,6 @@
|
||||
id,name,age,email,registration_date
|
||||
4,Diana,28,diana@mail.com,2023-03-01
|
||||
5,Ethan,35,ethan@gmail.com,2023-03-10
|
||||
3,Charlie,22,charlie@mail.com,2023-02-20
|
||||
2,Bob,30,bob@gmail.com,2023-02-05
|
||||
1,Alice,25,alice@mail.com,2023-01-10
|
||||
|
@@ -1,6 +0,0 @@
|
||||
id,name,age,email,registration_date
|
||||
5.000000000000000000,Ethan,35,ethan@gmail.com,2023-03-10
|
||||
2.000000000000000000,Bob,30,bob@gmail.com,2023-02-05
|
||||
3.000000000000000000,Charlie,22,charlie@mail.com,2023-02-20
|
||||
1.000000000000000000,Alice,25,alice@mail.com,2023-01-10
|
||||
4.000000000000000000,Diana,28,diana@mail.com,2023-03-01
|
||||
|
Binary file not shown.
Binary file not shown.
@@ -1,6 +1,6 @@
|
||||
user_id,course_id,enrolled_at
|
||||
1,2,2023-02-01T00:00:00.000+03:00
|
||||
1,1,2023-01-15T00:00:00.000+03:00
|
||||
4,3,2023-04-01T00:00:00.000+03:00
|
||||
2,1,2023-01-20T00:00:00.000+03:00
|
||||
3,2,2023-03-05T00:00:00.000+03:00
|
||||
1,2,2023-02-01T00:00:00.000+03:00
|
||||
1,1,2023-01-15T00:00:00.000+03:00
|
||||
|
Binary file not shown.
Binary file not shown.
@@ -1,7 +1,7 @@
|
||||
user_id,lesson_id,course_id,viewed_at
|
||||
1,2,1,2023-01-16T10:15:00.000+03:00
|
||||
1,1,1,2023-01-16T10:00:00.000+03:00
|
||||
4,4,3,2023-04-02T10:00:00.000+03:00
|
||||
3,3,2,2023-03-06T12:00:00.000+03:00
|
||||
2,1,1,2023-01-21T09:00:00.000+03:00
|
||||
4,5,3,2023-04-03T10:00:00.000+03:00
|
||||
1,2,1,2023-01-16T10:15:00.000+03:00
|
||||
1,1,1,2023-01-16T10:00:00.000+03:00
|
||||
|
Binary file not shown.
@@ -0,0 +1,4 @@
|
||||
id,title,category,created_at
|
||||
1,SQL для начинающих,data,2023-01-01
|
||||
2,Python для анализа данных,programming,2023-01-15
|
||||
3,BI с нуля,business,2023-03-01
|
||||
|
@@ -82,11 +82,11 @@ clickhouse_driver = "com.clickhouse.jdbc.ClickHouseDriver"
|
||||
clickhouse_tables = ["users", "courses", "lessons", "enrollments", "lesson_views"]
|
||||
|
||||
clickhouse_int_cols = {
|
||||
"users": ["user_id"],
|
||||
"courses": ["course_id"],
|
||||
"lessons": ["lesson_id", "course_id"],
|
||||
"enrollments": ["enrollment_id", "user_id", "course_id"],
|
||||
"lesson_views": ["view_id", "user_id", "lesson_id"]
|
||||
"users": ["id"],
|
||||
"courses": ["id"],
|
||||
"lessons": ["id", "course_id"],
|
||||
"enrollments": ["id", "user_id", "course_id"],
|
||||
"lesson_views": ["id", "user_id", "lesson_id"]
|
||||
}
|
||||
|
||||
print("\nClickHouse")
|
||||
|
||||
Reference in New Issue
Block a user