|
3 | 3 | from sqlalchemy.sql import compiler |
4 | 4 |
|
5 | 5 | import pydruid.db |
6 | | -from pydruid.db import exceptions |
7 | 6 |
|
8 | 7 | RESERVED_SCHEMAS = ["INFORMATION_SCHEMA"] |
9 | 8 |
|
@@ -63,25 +62,18 @@ def visit_CHAR(self, type_, **kwargs): |
63 | 62 | visit_TEXT = visit_CHAR |
64 | 63 |
|
65 | 64 | def visit_DATETIME(self, type_, **kwargs): |
66 | | - raise exceptions.NotSupportedError("Type DATETIME is not supported") |
| 65 | + return "LONG" |
67 | 66 |
|
68 | 67 | def visit_TIME(self, type_, **kwargs): |
69 | | - raise exceptions.NotSupportedError("Type TIME is not supported") |
70 | | - |
71 | | - def visit_BINARY(self, type_, **kwargs): |
72 | | - raise exceptions.NotSupportedError("Type BINARY is not supported") |
73 | | - |
74 | | - def visit_VARBINARY(self, type_, **kwargs): |
75 | | - raise exceptions.NotSupportedError("Type VARBINARY is not supported") |
| 68 | + return "LONG" |
76 | 69 |
|
77 | 70 | def visit_BLOB(self, type_, **kwargs): |
78 | | - raise exceptions.NotSupportedError("Type BLOB is not supported") |
79 | | - |
80 | | - def visit_CLOB(self, type_, **kwargs): |
81 | | - raise exceptions.NotSupportedError("Type CBLOB is not supported") |
| 71 | + return "COMPLEX" |
82 | 72 |
|
83 | | - def visit_NCLOB(self, type_, **kwargs): |
84 | | - raise exceptions.NotSupportedError("Type NCBLOB is not supported") |
| 73 | + visit_CLOB = visit_BLOB |
| 74 | + visit_NCLOB = visit_BLOB |
| 75 | + visit_VARBINARY = visit_BLOB |
| 76 | + visit_BINARY = visit_BLOB |
85 | 77 |
|
86 | 78 |
|
87 | 79 | class DruidDialect(default.DefaultDialect): |
|
0 commit comments