-
Notifications
You must be signed in to change notification settings - Fork 300
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
Import multiple files to single table #75
Comments
Something like one of the following should work:
or
|
If you can make some assumptions about the file and any header rows, it's probably going to be faster to do this before the logs hit textql. Not sure how often you work with files like this, but it might be meaningful since you say the data is split over multiple files due to size. If none of the logs have headers, it could be as simple as using cat to join them into a new file, or pipe directly to textql. If your logs do have headers, you can use head and tail. I think the following example of piping them directly into textql should work in Unix or WSL/cygwin...
|
Is there a way to import multiple files in to the same table? My data is split in to multiple files due to its size. Running a command like this results in two tables:
textql -console -dlm=0x7c -header -sql "Select count() from myLog" myLog1.txt myLog2.txt
Running .schema in sqlite results in
Ideally there would be one table containing the data from both files.
Thanks!
The text was updated successfully, but these errors were encountered: