jon-wei commented on code in PR #15469:
URL: https://github.com/apache/druid/pull/15469#discussion_r1423019096


##########
server/src/main/java/org/apache/druid/catalog/model/facade/DatasourceFacade.java:
##########
@@ -38,10 +44,77 @@ public class DatasourceFacade extends TableFacade
 {
   private static final Logger LOG = new Logger(DatasourceFacade.class);
 
+  public static class ColumnFacade
+  {
+    public enum Kind
+    {
+      ANY,
+      TIME,
+      DIMENSION,
+      MEASURE
+    }
+
+    private final ColumnSpec spec;
+    private final String sqlType;
+
+    public ColumnFacade(ColumnSpec spec)
+    {
+      this.spec = spec;
+      if (Columns.isTimeColumn(spec.name()) && spec.dataType() == null) {
+        // For __time only, force a type if type is null.
+        this.sqlType = Columns.LONG;

Review Comment:
   No, this is using the native type



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to