Skip to content
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 - Support for treat values as null flag #334

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

ErikZigo
Copy link
Contributor

@ErikZigo ErikZigo commented Nov 21, 2024

@ErikZigo ErikZigo changed the title Erik pst 1468 Output Mapping - Support for treat values as null flag Nov 21, 2024
@@ -2276,4 +2469,47 @@ private function getTableIdFromJobDetail(array $jobData): string

self::fail(sprintf('Cannot detect tableId from %s job', $operationName));
}

private function findTableCreateJobForTable(string $tableId, array $jobsIds): ?array
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JobIds jsou v poradi, v jakem Finder nasel soubory na disku. Ted tam neni sort a lokalne a na CI to jde v jinem poradi. Proto to musim vyhledavat.

@ErikZigo ErikZigo marked this pull request as ready for review November 21, 2024 14:55
@ErikZigo
Copy link
Contributor Author

ErikZigo commented Nov 21, 2024

Sakra mám tam renonc. Ono to bude fungovat jen pro tabulky, které byly založené už dříve. U těch, které založil OM před samotným importem ne. To musím upravit tu podmínku a testy. Náhodou jsem si toho všiml v docker-bundle :)

$source->getDestination()->getTableName(),
));
}
$loadOptions['treatValuesAsNull'] = $treatValuesAsNullConfiguration;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Posila se vzdy, i pri zalozeni tabulky z CSV. To ted nicemu nevadi, protoze ten endpoint dovoluje extraKeys.

@ErikZigo
Copy link
Contributor Author

@ondrajodas uz je to ready

@@ -49,7 +49,6 @@
</testsuite>
<testsuite name="new-native-types">
<file>tests/Writer/TableDefinitionV2Test.php</file>
<file>tests/TableLoaderTest.php</file>
Copy link
Contributor Author

@ErikZigo ErikZigo Nov 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neni potreba, protoze to co to testovalo jsem presunul do TableCreator a ma to vlastni testy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant