-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: add option to disable field type inferencing #351
Comments
By now, you can force the type for a given column to be |
Turicas thank you. My request is related to command line use. Best regards |
Oh, sorry. Let's reopen it. |
Regarding to CLI: unfortunately not all CLI commands support forcing types. Some of them ( Let's say you have a file
Create the file
Then, execute the commands: rows csv2sqlite --schemas=schema.csv test.csv test-temp.sqlite
rows sqlite2csv test-temp.sqlite test test2.csv
rm test-temp.sqlite and use |
@aborruso if you think the field is being detected incorrectly (it was detected as |
hi @turicas my input is this example HTML <!DOCTYPE html>
<html>
<body>
<table id="results" border="0" class="regpub_dati c35">
<tbody>
<tr class="c28">
<th class="c27">Beneficiario</th>
<th class="c27">Comune</th>
<th class="c27">CAP</th>
<th class="c27">Provincia </th>
<th class="c27">Importo</th>
</tr>
<tr>
<td class="c31">RNDFNC60E16</td>
<td class="c31">RIPACANDIDA</td>
<td class="c31">85020</td>
<td class="c31">POTENZA</td>
<td class="c34">09269</td>
</tr>
<tr>
<td class="c31">RNDFNC60E16</td>
<td class="c31"></td>
<td class="c31"></td>
<td class="c31">POTENZA</td>
<td class="c34">05269</td>
</tr>
</tbody>
</table>
</body>
</html> If I run
The last field is a string and it becomes a float. I'm not able to create a PR and help you. But rows is really a great tool to convert almost everything to a usable table; my suggestion, my feature request is to add to the cli, an option like Thank you |
Hi,
I have an input HTML table in which a field has values as
06583
. If I convert this table to CSV, this value becomes6583.0
.It would be great to have a cli option to completely disable field type inferencing, and to have all output values as text field.
Thank you
The text was updated successfully, but these errors were encountered: