xiedeyantu commented on code in PR #4893:
URL: https://github.com/apache/calcite/pull/4893#discussion_r3144561867


##########
site/_docs/adapter.md:
##########
@@ -33,7 +33,7 @@ presenting the data as tables within a schema.
 * [Druid adapter](druid_adapter.html) (<a href="{{ site.apiRoot 
}}/org/apache/calcite/adapter/druid/package-summary.html">calcite-druid</a>)
 * [Elasticsearch adapter](elasticsearch_adapter.html)
   (<a href="{{ site.apiRoot 
}}/org/apache/calcite/adapter/elasticsearch/package-summary.html">calcite-elasticsearch</a>)
-* [File adapter](file_adapter.html) (<a href="{{ site.apiRoot 
}}/org/apache/calcite/adapter/file/package-summary.html">calcite-file</a>)
+* [File adapter](file_adapter.html) (<a href="{{ site.apiRoot 
}}/org/apache/calcite/adapter/file/package-summary.html">calcite-file</a>), 
including support for custom CSV delimiters

Review Comment:
   I think we can remove ", including support for custom CSV delimiters".



##########
example/csv/src/main/java/org/apache/calcite/adapter/csv/CsvScannableTable.java:
##########
@@ -58,7 +58,7 @@ public class CsvScannableTable extends CsvTable
     return new AbstractEnumerable<@Nullable Object[]>() {
       @Override public Enumerator<@Nullable Object[]> enumerator() {
         return new CsvEnumerator<>(source, cancelFlag, false, null,
-            CsvEnumerator.arrayConverter(fieldTypes, fields, false));
+            CsvEnumerator.arrayConverter(fieldTypes, fields, false), ',');

Review Comment:
   Can we add a default parameter of ',' without modifying so many 
constructors, and have the constructors without the "char separator" also call 
the constructors with the "char separator"?



-- 
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]

Reply via email to