Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I'd like to load some small configuration table I have on BigQuery using seeds.
I did that successfully till now, but now I have a table with an array field.
I put the arrays in the usual BigQuery format ["blablabla"], but no luck.
I tried forcing the datatype in dbt_prject.yml, but I get a "ARRAY is not a valid value" error.
Did someone ever used seeding with structured fields?
Daniele
I don't think this is possible, unfortunately. From a little online research, this appears to be a joint limitation of:
the BigQuery LoadJobConfig API that dbt calls here
the CSV file format, which doesn't really have a way to specify a nested schema (related issue)
A long-term resolution to this may be support for JSON-formatted seeds (dbt#2365).
In the meantime, I recommend that you set the seed column type to string and convert it to an array (using json_extract_array) in a staging model.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I would like to know the option of converting oracle dump to sql file (for PostgreSQL database). Is it possible to get the DDL, DML, and the data as well in the SQL file?
Thanks in advance.
Years ago I wrote a little program explode to convert the classical dmp file to csv files for easy loading. However, this is not the way to go since those file formats are undocumented.
A much smarter route to get the table definitions and data from oracle to Postgres is to use the oracle foreign data wrapper in postgres.
This allows for native -Postgres- access on the oracle tables but in a smarter way than the oracle database links. Check the docs and see if it fits your use case. If so, it will take out a lot of the conversion work for you.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I am deploying an application at one of our vendor. We have few special character that needs to be removed using a function. Vendor is really slow with any changes that we request.
I have access to one of the configuration table that we use to save configuration table.
I want to save a SQL function in the table column that I will fetch at run-time and will execute it.
I am not sure if its a good programming practice. Please suggest if this should not be used then why or is there any other way to do it?
Database is SQL Server. Suggest if it's a good programming practice.
A better practice would be to write your function in such a way that you don't have to change it every time a new special character pops up.
Instead of writing a function that filters out a predefined set of special characters, why don't you write a function that allows a predefined set of non-special characters? Then you should never have to change it.
you can use a Computed column in sql server, for me it's not a good practice depending on the scenario that you are trying to achieve but I think this might help you
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I ended up with the following plus a few modifications:
NSArray *Quotes = #[#"test1",#"test2"];
NSString *Quoteselected = arc4random() % [quotes];
self.label.text = Quoteselected;
I found the error, which probably also caused the SIGARBT -my randomization created values bigger than what I had element for in the array - thereby making the code try to pick elements not existing.
thanks for all the help
I think this is what you look for:
http://www.raywenderlich.com/934/core-data-tutorial-for-ios-getting-started
This is called core data that comes with Objective-C. It is what I use for small, LOCAL database.
On the other hand, for small to medium size of database for a starter like you (I presume you just started making programs?) Check out ruby on rails and AFNetworking library. BTW, this is ONLINE or REMOTE databse. (Just saying, but in ruby on rails, database can be created with using command line, you'll know how simple it is)
http://guides.rubyonrails.org/getting_started.html
Two options, you can choose either one.
Assuming you're okay with typing out every quote, you could use a property list
plist tutorial
Unless it's a very large database
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
i'm wanting to write data into memory only for a temp time. the format is essentially the same as an sql table with say 5 columns and 1,000 rows, give or take. simply i want to store this data and run queries against it to make calculations, sorting it, querying it to then produce chart reports and excel data.
I looked at custom psobjects and then sql and i can't see why i'd use custom psobjects over sql, what do you think?
I also couldn't see that adding multiple rows as such, using psobjects was as straight forward as adding another row in sql.
thanks
steve
I guess it depends on what you're more comfortable with, but if you're going to do it in Powershell then using PS custom objects seems like a logical choice since the cmdlets were designed to work with those.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I am pretty new to CoreData Programming but would like to ask:
Do I need to create a database to use CoreData ? Can coredata operate on a simple flat file ?
Please provide suitable references & links.
Thanks in advance
Core Data provides four native types of persistent store:
SQLite
Binary
XML
In-Memory
These store types each offer different benefits and tradeoffs, and are described in “Persistent Store Features”. The Binary and XML stores are "atomic” stores—they must be read and written in their entirety, unlike the SQLite store which can be modified piecemeal, one record at a time if you wish.
Refer to the first link (pdf)