back to forum.

Topic: Changing data types in .csv, text inputs

Topic by
cjturner

2009-02-01
07:02

Changing data types in .csv, text inputs

When I load data samples from CSV or other text files, the column data types are always set to VARCHAR, and I am unable to perform numeric analysis (profiling) from the interface. I would like to be able to edit the metadata definition.

Reply by
kasper

2009-02-01
07:57
Actually the option is already there at an API level but not in the user interface.

It's not currently in the plans for DC 1.5 but on the other hand it's not such a biggie so if anyone wants to have a go I wont stop them. Otherwise I will implement it for 1.6.

Reply by
cjturner

2009-02-05
13:40
I reviewed the interface and I can see where a change might be made, but I also ended up with a cascade of requirements that probably require a high-level vision of where the project should go;

(1)load/save metadata defs
(2)load/save the data selection
(3)unify/align .dcp and.dcv files, and probably some other files I have not seen.

I kind of see a a final goal of DataCleaner to capture either an ETL process or a 'fixit-bot,' and my particular need seems to be a distraction from that mission.

Reply by
kasper

2009-02-05
14:14
A quick-and-dirty solution to the problem could be to just include a checkbox in the "Open CSV file" dialog that says "enable automatic narrowing and transformation of column types" and then pass "true" to "transformColumnTypes" parameter of DataContextFactory.createCsvDataContext(see javadoc here)...

Reply by
kasper

2009-02-05
21:03
I'm not sure if I understand the three ideas you posted, but I suggest you elaborate on it on the dev mailing list.

You need to be logged in to participate

In order to post your own comments on this topic, you need to be logged in.

Username:

Log in by clicking the login link at the top of the screen

 

Go back to forum.