Table factory now uses "smart" flag.
diff --git a/src/main/java/net/hydromatic/optiq/impl/csv/CsvTableFactory.java b/src/main/java/net/hydromatic/optiq/impl/csv/CsvTableFactory.java
index 9614fda..a93fbf5 100644
--- a/src/main/java/net/hydromatic/optiq/impl/csv/CsvTableFactory.java
+++ b/src/main/java/net/hydromatic/optiq/impl/csv/CsvTableFactory.java
@@ -43,7 +43,11 @@
     final File file = new File(fileName);
     final RelProtoDataType protoRowType =
         rowType != null ? RelDataTypeImpl.proto(rowType) : null;
-    return new CsvTable(file, protoRowType);
+    if (smart != null && smart) {
+      return new CsvSmartTable(file, protoRowType);
+    } else {
+      return new CsvTable(file, protoRowType);
+    }
   }
 }