-
Notifications
You must be signed in to change notification settings - Fork 0
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
[output-mapping] Split TableStructureValidator #341
Conversation
f30407d
to
2081605
Compare
if (!$this->hasNewNativeTypeFeature) { | ||
return $tableChangesStore; | ||
} | ||
if (!$schemaColumns) { | ||
return $tableChangesStore; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tyhle podmínky jsou tady zbytečně, tak jsem je do přepsanýho kódu vůbec nedával
ChangesStore totiž vstupuje jen do StoragePreparer a tam je podmínka stejná, takže tady to řešit nemusíme
2081605
to
567e297
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Přijde mi to super. Jen uprav prosím ty dvě chybové hlášky.
} | ||
throw new InvalidOutputException($e->getMessage(), $e->getCode(), $e); | ||
if ($this->table['isTyped'] === true) { | ||
throw new InvalidOutputException('Table is typed.'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
V té chybové hlášce by mělo být jméno nebo ID té tabulky.
public function validate(?array $schemaColumns): TableChangesStore | ||
{ | ||
if ($this->table['isTyped'] === false) { | ||
throw new InvalidOutputException('Table is not typed.'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
V té chybové hlášce by mělo být jméno nebo ID té tabulky.
upravil jsem ty error messages a vypnul jsem ještě Synapse testy |
https://keboola.atlassian.net/browse/PST-1775