Which software are you using? SDV Enterprise
Software Details (What is your SDV version? Python version?): 0.37, 8.10
Description
I have followed the instructions on docs.sdv.dev for MSSQL connections. I can connect, load the data. Can I read just few columns from a table instead of whole table? Also, exporting the systhesized data back to database, how to write on a new table, new database?
I am using AdventureWorks2019 dataset for testing on these three tables; Person.Person, Person.PersonPhone, Person.PhoneNumberType. Getting this error message:
sqlalchemy.exec.CompileError: in table PhoneNumberType, column Name. Canât generate DDL for NullType(). Did you forget to specify a type on this column?
I tried to set the sdtype of the column like
metadata.update_column(
column_name=âNameâ,
sdtype=âcategoricalâ,
table_name=âPhoneNumberTypeâ
)
but that did not resolve the issue. Then I removed the table from the metadata like:
metadata.remove_table(âPhoneNumberTypeâ)
but still getting the same error.
How do I define the âNameâ column type in DDL that is when it is creating a new table to insert synthesize data?
My output code is:
synthetic_data_custom={
fâ{table_name}_syntheticâ: df
for table_name, df in synthetic_data.items()
}
connector.export {
data=synthetic_data_custom,
mode=âwriteâ,
verbose=True
}
Additional Context
(Provide any other background that would be helpful. For example, what overall problem are you trying to solve?)
For additional resources see the API Docs.